Methods Summary |
---|
public static ApplicationLoaderEventListenerImpl | getListener()
return listener;
|
public static com.sun.enterprise.deployment.ServiceRefPortInfo | getPortInfo(WSClientContainer container, javax.xml.namespace.QName portName)
return container.svcRef.getPortInfoByPort(portName);
|
public static boolean | isJBIRequest(java.lang.String delegateClassName)
return delegateClassName.equals("com.sun.enterprise.jbi.serviceengine." +
"bridge.transport.NMRServerConnection");
|
private static boolean | isPortJbiEnabled(com.sun.enterprise.deployment.ServiceRefPortInfo portInfo)
if(portInfo != null) {
String value = portInfo.getStubPropertyValue(JBI_ENABLED);
logger.log(Level.FINEST, "JBI_ENABLED flag value is : " + value);
return "true".equals(value);
} else {
// This means the deployer did not resolve the port to
// which this SEI is mapped, return false;
}
return false;
|
public static boolean | isServiceEngineEnabled()
return seEnabledFlag;
|
public static boolean | isServiceJBIEnabled(com.sun.enterprise.deployment.ServiceReferenceDescriptor desc)
if(isServiceEngineEnabled()) {
java.util.Set portsInfo = desc.getPortsInfo();
java.util.Iterator ports = portsInfo.iterator();
while(ports.hasNext()) {
ServiceRefPortInfo portDesc = (ServiceRefPortInfo)ports.next();
if(isPortJbiEnabled(portDesc))
return true;
}
}
return false;
|
public static void | setJBITransportFactory(com.sun.enterprise.deployment.ServiceRefPortInfo portInfo, java.lang.Object stubObj, boolean jbiEnabled)
if(isServiceEngineEnabled()) {
ServiceReferenceDescriptor serviceRef = portInfo.getServiceReference();
if(serviceRef != null && stubObj != null) {
if (isServiceEngineEnabled() &&
jbiEnabled &&
serviceRef.getMappingFileUri() != null) {
setTransportFactory((com.sun.xml.rpc.spi.runtime.StubBase)stubObj, portInfo);
}
}
} else {
logger.log(Level.INFO, "Java EE Service Engine's functionality is disabled");
}
|
private static void | setTransportFactory(com.sun.xml.rpc.spi.runtime.StubBase stubObj, com.sun.enterprise.deployment.ServiceRefPortInfo portInfo)
try {
// This is done to avoide classloader issues.
// Check out ServiceEngineRtObjectFactory for more details.
com.sun.xml.rpc.spi.runtime.ClientTransportFactory factory =
(com.sun.xml.rpc.spi.runtime.ClientTransportFactory)
ServiceEngineRtObjectFactory.getInstance().
getFacade().getTransportFactory(portInfo, true);
if (factory == null)
return ;
logger.log(Level.INFO, "Before setting setTransportFactory to NMR");
// Set JBI transport factory
stubObj._setTransportFactory(factory);
} catch(Exception e) {
// Do nothing.
if (logger.isLoggable(Level.WARNING)) {
logger.log(Level.WARNING,
"Error during setting of transport factory"+e.getMessage());
}
}
|