public Schema getSchema() { schema = (Schema)getApplicationData(SCHEMA); if(schema == null) { schema = new Schema(container.getEjbModule().getServiceName().getCanonicalName()); putApplicationData(SCHEMA, schema); } return schema; }
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); }
ObjectName ejbModName = EJBModuleFactory.getEJBModuleName(ejbModule.getServiceName()); String ejbName = metaData.getEjbName(); String jndiName = metaData.getJndiName();
ObjectName ejbModName = getObjectName(unit, ejbModule.getServiceName().getCanonicalName()); String ejbName = metaData.getEjbName(); String jndiName = metaData.getJndiName();
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); }