public TCKResourceEventHandlerImpl(BootstrapContext ctx, TCKResourceAdaptorInterface raInterface) { this.raInterface = raInterface; this.sleeEndpoint = ctx.getSleeEndpoint(); eventLookup = ctx.getEventLookupFacility(); }
private void initializeNamingContext() throws NamingException { SleeContainer container = SleeContainer.lookupFromJndi(); ResourceAdaptorEntity resourceAdaptorEntity = ((ResourceAdaptorEntity) container.getResourceAdaptorEnitity(this.bootstrapContext.getEntityName())); ResourceAdaptorTypeID raTypeId = resourceAdaptorEntity.getInstalledResourceAdaptor() .getRaType() .getResourceAdaptorTypeID(); // TODO: need to comeup w/ generic way to add JNDI interface. This code is moving // from the ServiceContainer to here this.acif = new AsteriskActivityContextInterfaceFactoryImpl(resourceAdaptorEntity.getServiceContainer(), this.bootstrapContext.getEntityName()); resourceAdaptorEntity.getServiceContainer() .getActivityContextInterfaceFactories().put(raTypeId, this.acif); resourceAdaptorEntity.getServiceContainer().registerWithJndi("slee/resources", "asteriskacif", this.acif); }
String entityName = bootstrapContext.getEntityName();
public void entityCreated(BootstrapContext bootstrapContext) throws ResourceException { logger.debug("TTSResourceAdaptor.entityCreated() called."); this.bootstrapContext = bootstrapContext; this.sleeEndpoint = bootstrapContext.getSleeEndpoint(); this.eventLookup = bootstrapContext.getEventLookupFacility(); }
public void init(BootstrapContext bootstrapContext) throws javax.slee.resource.ResourceException { // TODO Auto-generated method stub this.bootstrapContext = bootstrapContext; this.sleeEndpoint = bootstrapContext.getSleeEndpoint(); this.eventLookup = bootstrapContext.getEventLookupFacility(); factory = new ManagerConnectionFactory(MAGIIP,MAGILogin,MAGIPassword); state = ResourceAdaptorState.UNCONFIGURED; }