List of usage examples for com.liferay.portal.kernel.util ServerDetector isWebLogic
public static boolean isWebLogic()
From source file:com.liferay.portlet.webproxy.WebProxyBasicAuthPortlet.java
License:Open Source License
@Override public void init() { try {/*from ww w .j av a 2s . c o m*/ super.init(); _enabled = true; } catch (Exception e) { if (_log.isWarnEnabled()) { _log.warn(e.getMessage()); } } if (!_enabled && ServerDetector.isWebLogic() && _log.isInfoEnabled()) { _log.info("WebProxyPortlet will not be enabled unless Liferay's " + "serializer.jar and xalan.jar files are copied to the " + "JDK's endorsed directory"); } }
From source file:com.liferay.util.axis.AxisServlet.java
License:Open Source License
@Override public void destroy() { if (ServerDetector.isWebLogic()) { doDestroy();// w w w. j a va2s . c o m } else { DestroyThread destroyThread = new DestroyThread(); destroyThread.start(); try { destroyThread.join(); } catch (InterruptedException ie) { throw new RuntimeException(ie); } Exception e = destroyThread.getException(); if (e != null) { if (e instanceof RuntimeException) { throw (RuntimeException) e; } else { throw new RuntimeException(e); } } } }
From source file:com.liferay.util.axis.AxisServlet.java
License:Open Source License
@Override public void init(ServletConfig servletConfig) throws ServletException { _servletConfig = servletConfig;/*from w w w . java 2s . c o m*/ if (ServerDetector.isResin() || ServerDetector.isWebLogic()) { doInit(); } else { InitThread initThread = new InitThread(); initThread.start(); try { initThread.join(); } catch (InterruptedException ie) { throw new ServletException(ie); } Exception e = initThread.getException(); if (e != null) { if (e instanceof ServletException) { throw (ServletException) e; } else { throw new ServletException(e); } } } }