Methods Summary |
---|
public void | activateEndpoints(java.util.Iterator endpoints)Activates multiple end points in JBI
if (endpoints != null) {
while(endpoints.hasNext()) {
ServiceEndpoint endpoint = (ServiceEndpoint)endpoints.next();
jbiContext.activateEndpoint(
endpoint.getServiceName(), endpoint.getEndpointName());
}
}
|
private void | debug(java.util.logging.Level logLevel, java.lang.String msgID)
logger.log(logLevel, msgID);
|
public Bridge | getBridge()
return bridge;
|
public javax.jbi.messaging.DeliveryChannel | getDeliveryChannel()
return seDeliveryChannel;
|
public static com.sun.enterprise.jbi.serviceengine.core.JavaEEServiceEngineContext | getInstance()
return serviceEngineContext;
|
public javax.jbi.component.ComponentContext | getJBIContext()Returns the context provided by the JBI environment to the
service engine
return jbiContext;
|
public EndpointRegistry | getRegistry()Gets the ServiceEndpoint Registry
return endpointRegistry;
|
public com.sun.enterprise.jbi.serviceengine.work.WorkManagerImpl | getWorkManager()
return workManager;
|
public void | initialize()
endpointRegistry = EndpointRegistry.getInstance();
config = new ComponentConfiguration();
workManager = new WorkManagerImpl(config);
bridge = config.getBridge();
bridge.initialize();
|
public boolean | isServiceMix()
String ESBRuntimeProp = System.getProperty("com.sun.enterprise.jbi.se.esbruntime");
if(ESBRuntimeProp != null && ESBRuntimeProp.equalsIgnoreCase("servicemix")) {
return true;
}
return false;
|
public boolean | isSunESB()
/*
if(jbiContext == null ||
!"com.sun.jbi.framework.ComponentContext".equals(jbiContext.getClass().getName())) {
return false;
}
*/
String ESBRuntimeProp = System.getProperty("com.sun.enterprise.jbi.se.esbruntime");
if(ESBRuntimeProp != null && !ESBRuntimeProp.equalsIgnoreCase("sunesb")) {
return false;
}
return true;
|
public void | setJBIContext(javax.jbi.component.ComponentContext context)
jbiContext = context;
seDeliveryChannel = jbiContext.getDeliveryChannel();
debug(Level.FINE, "Delivery Channel is : " + seDeliveryChannel);
|