@Override public void setSbbContext(SbbContext sbbContext) { this.sbbContext = (SbbContextExt) sbbContext; try { Context ctx = (Context) new InitialContext().lookup("java:comp/env"); this.mapAcif = (MAPContextInterfaceFactory) ctx.lookup("slee/resources/map/2.0/acifactory"); this.mapProvider = (MAPProvider) ctx.lookup("slee/resources/map/2.0/provider"); this.mapParameterFactory = this.mapProvider.getMAPParameterFactory(); this.logger = this.sbbContext.getTracer(AlertSbb.class.getSimpleName()); this.persistence = (PersistenceRAInterface) this.sbbContext.getResourceAdaptorInterface(PERSISTENCE_ID, PERSISTENCE_LINK); this.scheduler = (SchedulerRaSbbInterface) this.sbbContext.getResourceAdaptorInterface(SCHEDULER_ID, SCHEDULER_LINK); } catch (Exception ne) { logger.severe("Could not set SBB context:", ne); } }
@Override public void setSbbContext(SbbContext arg0) { sbbContextExt = (SbbContextExt) arg0; if (tracer == null) tracer = sbbContextExt.getTracer(getClass().getSimpleName()); jdbcRA = (JdbcResourceAdaptorSbbInterface) this.sbbContextExt .getResourceAdaptorInterface(jdbcRATypeID, jdbcRALink); jdbcACIF = (JdbcActivityContextInterfaceFactory) this.sbbContextExt .getActivityContextInterfaceFactory(jdbcRATypeID); }
public void setSbbContext(SbbContext context) { sbbContext = (SbbContextExt) context; if (tracer == null) { tracer = this.sbbContext.getTracer("RESTClientEnabler"); } this.httpClientActivityContextInterfaceFactory = (HttpClientActivityContextInterfaceFactory) sbbContext .getActivityContextInterfaceFactory(HttpClientActivityContextInterfaceFactory.RESOURCE_ADAPTOR_TYPE_ID); this.httpProvider = (HttpClientResourceAdaptorSbbInterface) sbbContext .getResourceAdaptorInterface( HttpClientResourceAdaptorSbbInterface.RESOURCE_ADAPTOR_TYPE_ID, "HttpClientResourceAdaptor"); }
public void setSbbContext(SbbContext context) { sbbContext = (SbbContextExt) context; if (tracer == null) { tracer = this.sbbContext.getTracer("RESTClientEnabler"); } this.httpClientActivityContextInterfaceFactory = (HttpClientActivityContextInterfaceFactory) sbbContext .getActivityContextInterfaceFactory(HttpClientActivityContextInterfaceFactory.RESOURCE_ADAPTOR_TYPE_ID); this.httpProvider = (HttpClientResourceAdaptorSbbInterface) sbbContext .getResourceAdaptorInterface( HttpClientResourceAdaptorSbbInterface.RESOURCE_ADAPTOR_TYPE_ID, "HttpClientResourceAdaptor"); }
@Override public void setSbbContext(SbbContext context) { sbbContextExt = (SbbContextExt) context; if (tracer == null) { tracer = sbbContextExt.getTracer("CS-JDBC"); } jdbcRA = (JdbcResourceAdaptorSbbInterface) this.sbbContextExt.getResourceAdaptorInterface(jdbcRATypeID, jdbcRALink); jdbcACIF = (JdbcActivityContextInterfaceFactory) this.sbbContextExt.getActivityContextInterfaceFactory(jdbcRATypeID); }
@Override public void setSbbContext(SbbContext sbbContext) { this.sbbContext = (SbbContextExt) sbbContext; try { Context ctx = (Context) new InitialContext() .lookup("java:comp/env"); this.mapAcif = (MAPContextInterfaceFactory) ctx .lookup("slee/resources/map/2.0/acifactory"); this.mapProvider = (MAPProvider) ctx .lookup("slee/resources/map/2.0/provider"); this.mapParameterFactory = this.mapProvider.getMAPParameterFactory(); this.mapErrorMessageFactory = this.mapProvider.getMAPErrorMessageFactory(); this.sccpParameterFact = new ParameterFactoryImpl(); // this.smppServerSessions = (SmppSessions) ctx // .lookup("slee/resources/smpp/server/1.0/provider"); this.persistence = (PersistenceRAInterface) this.sbbContext.getResourceAdaptorInterface(PERSISTENCE_ID, PERSISTENCE_LINK); this.logger = this.sbbContext.getTracer(this.className); itsMProcRa = (MProcRuleRaProvider) this.sbbContext.getResourceAdaptorInterface(MPROC_RATYPE_ID, MPROC_RA_LINK); } catch (Exception ne) { logger.severe("Could not set SBB context:", ne); } // TODO : Handle proper error }
public void setSbbContext(SbbContext context) { this.sbbContextExt = (SbbContextExt) context; this.tracer = sbbContextExt.getTracer("CS-Core"); this.timerFacility = this.sbbContextExt.getTimerFacility(); ResourceAdaptorTypeID raTypeID = new ResourceAdaptorTypeID("Diameter Ro", "java.net", "0.8.1"); this.roProvider = (RoProvider) sbbContextExt.getResourceAdaptorInterface(raTypeID, "DiameterRo"); //this.roAcif = (RoActivityContextInterfaceFactory) sbbContextExt.getActivityContextInterfaceFactory(raTypeID); this.avpFactory = this.roProvider.getRoAvpFactory(); }
public void setSbbContext(SbbContext sbbContext) { this.sbbContext = (SbbContextExt) sbbContext; this.logger = sbbContext.getTracer(this.loggerName); try { mapAcif = (MAPContextInterfaceFactory) this.sbbContext.getActivityContextInterfaceFactory(mapRATypeID); mapProvider = (MAPProvider) this.sbbContext.getResourceAdaptorInterface(mapRATypeID, mapRaLink); mapParameterFactory = mapProvider.getMAPParameterFactory(); } catch (Exception ne) { logger.severe("Could not set SBB context:", ne); } }
public void setSbbContext(SbbContext sbbContext) { this.sbbContext = (SbbContextExt) sbbContext; this.logger = sbbContext.getTracer("CAMEL-GW"); this.eventsSerializeFactory = new EventsSerializeFactory(); // CAP RA this.capAcif = (CAPContextInterfaceFactory) this.sbbContext.getActivityContextInterfaceFactory(capRATypeID); this.capProvider = (CAPProvider) this.sbbContext.getResourceAdaptorInterface(capRATypeID, capRaLink); this.capParameterFactory = this.capProvider.getCAPParameterFactory(); // HTTP-Client RA this.httpClientActivityContextInterfaceFactory = (HttpClientActivityContextInterfaceFactory) this.sbbContext .getActivityContextInterfaceFactory(httpClientRATypeID); this.httpClientProvider = (HttpClientResourceAdaptorSbbInterface) this.sbbContext.getResourceAdaptorInterface( httpClientRATypeID, httpClientRaLink); camelStatAggregator = CamelStatAggregator.getInstance(); this.timerFacility = this.sbbContext.getTimerFacility(); }
public void setSbbContext(SbbContext sbbContext) { this.sbbContext = (SbbContextExt) sbbContext; this.logger = sbbContext.getTracer(this.loggerName); try { mapAcif = (MAPContextInterfaceFactory) this.sbbContext.getActivityContextInterfaceFactory(mapRATypeID); mapProvider = (MAPProvider) this.sbbContext.getResourceAdaptorInterface(mapRATypeID, mapRaLink); mapParameterFactory = mapProvider.getMAPParameterFactory(); } catch (Exception ne) { logger.severe("Could not set SBB context:", ne); } }
public void setSbbContext(SbbContext context) { sbbContext = (SbbContextExt) context; sipActivityContextInterfaceFactory = (SipActivityContextInterfaceFactory) sbbContext .getActivityContextInterfaceFactory(sipRATypeID); sleeSipProvider = (SleeSipProvider) sbbContext .getResourceAdaptorInterface(sipRATypeID, sipRALink); addressFactory = sleeSipProvider.getAddressFactory(); headerFactory = sleeSipProvider.getHeaderFactory(); messageFactory = sleeSipProvider.getMessageFactory(); timerFacility = sbbContext.getTimerFacility(); }
@Override public void setSbbContext(SbbContext context) { // SLEE this.tracer = context.getTracer("SipRegistrar"); this.sbbContextExt = (SbbContextExt) context; this.nullActivityContextInterfaceFactory = this.sbbContextExt .getNullActivityContextInterfaceFactory(); this.activityContextNamingFacility = this.sbbContextExt .getActivityContextNamingFacility(); this.nullActivityFactory = this.sbbContextExt.getNullActivityFactory(); this.timerFacility = this.sbbContextExt.getTimerFacility(); // get SIP stuff this.sipRA = (SleeSipProvider) this.sbbContextExt .getResourceAdaptorInterface(sipRATypeID, sipRALink); this.messageFactory = this.sipRA.getMessageFactory(); this.headerFactory = this.sipRA.getHeaderFactory(); this.addressFactory = this.sipRA.getAddressFactory(); }
this.sleeSipProvider = (SleeSipProvider) this.sbbContext.getResourceAdaptorInterface(sipResourceAdaptorTypeID, "SipRA");