public Object getApplicationData(Object key) { return ejbModule.getModuleData(key); }
public void putApplicationData(Object key, Object value) { ejbModule.putModuleData(key, value); }
final StatelessSessionContainer container = (StatelessSessionContainer) ejbModule.getContainer(ejbName);
boolean iAmTheManager = !Boolean.TRUE.equals (ejbModule.getModuleData ("ShutdownInterceptorElected")); ejbModule.putModuleData ("ShutdownInterceptorElected", Boolean.TRUE); Collection containers = ejbModule.getContainers (); Iterator containersIter = containers.iterator (); while (containersIter.hasNext ()) ejbModule.getModuleData ("CleanShutDownInterceptor-" + otherContainer.getServiceName ().toString ()); if (inter == null)
public void create() throws Exception { super.create (); this.allowInvocations = false; this.allowRemoteInvocations = false; this.isDebugEnabled = log.isDebugEnabled (); ejbModuleName = ejbModule.getServiceName().toString(); // we register our inner-class to retrieve STATE notifications from our container // AttributeChangeNotificationFilter filter = new AttributeChangeNotificationFilter (); filter.enableAttribute ("State"); this.container.getServer (). addNotificationListener (this.container.getEjbModule ().getServiceName (), new CleanShutdownInterceptor.StateChangeListener (), filter, null); // we need a way to find all CleanShutDownInterceptor of an EjbModule // ejbModule.putModuleData ("CleanShutDownInterceptor-" + this.container.getServiceName ().toString (), this); }
public Schema getSchema() { schema = (Schema)getApplicationData(SCHEMA); if(schema == null) { schema = new Schema(container.getEjbModule().getServiceName().getCanonicalName()); putApplicationData(SCHEMA, schema); } return schema; }
final StatelessSessionContainer container = (StatelessSessionContainer) ejbModule.getContainer(ejbName);
ObjectName ejbModName = EJBModuleFactory.getEJBModuleName(ejbModule.getServiceName()); String ejbName = metaData.getEjbName(); String jndiName = metaData.getJndiName();
StatelessSessionContainer container = (StatelessSessionContainer)ejbModule.getContainer(ejbName);
ObjectName ejbModName = getObjectName(unit, ejbModule.getServiceName().getCanonicalName()); String ejbName = metaData.getEjbName(); String jndiName = metaData.getJndiName();
public Object getApplicationData(Object key) { return ejbModule.getModuleData(key); }
public void putApplicationData(Object key, Object value) { ejbModule.putModuleData(key, value); }
StatelessSessionContainer container = (StatelessSessionContainer)ejbModule.getContainer(ejbName);
public void create () throws Exception { super.create (); // we register our inner-class to retrieve STATE notifications from our container // AttributeChangeNotificationFilter filter = new AttributeChangeNotificationFilter (); filter.enableAttribute ("State"); // ************************************************************************ // NOTE: We could also subscribe for the container service events instead of the // ejbModule service events. This problem comes from beans using other beans // in the same ejbModule: we may receive an IllegalStateException thrown // by the Container implementation. Using ejbModule events solve this // problem. // ************************************************************************ this.container.getServer (). addNotificationListener (this.container.getEjbModule ().getServiceName (), new ProxyFactoryHA.StateChangeListener (), filter, null); }
final StatelessSessionContainer container = (StatelessSessionContainer) ejbModule.getContainer(ejbName);
StatelessSessionContainer container = (StatelessSessionContainer)ejbModule.getContainer(ejbName);
StatelessSessionContainer container = (StatelessSessionContainer)ejbModule.getContainer(ejbName);
StatelessSessionContainer container = (StatelessSessionContainer)ejbModule.getContainer(ejbName);
StatelessSessionContainer container = (StatelessSessionContainer)ejbModule.getContainer(ejbName);
StatelessSessionContainer container = (StatelessSessionContainer)ejbModule.getContainer(ejbName);