public void setSbbContext(SbbContext sbbContext) { this.sbbContext = sbbContext; this.logger = sbbContext.getTracer("Test"); }
public void setSbbContext(SbbContext context) { this.tracer = context.getTracer("CS-ABMF"); this.sbbContext = (SbbContextExt) context; }
public void setSbbContext(SbbContext sbbContext) { this.sbbContext = sbbContext; if (tracer == null) { tracer = sbbContext.getTracer(HSSClientParentSbb.class.getSimpleName()); } }
/** * Called when an sbb object is instantied and enters the pooled state. */ public void setSbbContext(SbbContext context) { this.sbbContext = context; this.tracer = context.getTracer(getClass().getSimpleName()); }
public void setSbbContext(SbbContext sbbContext) { this.sbbContext = sbbContext; this.logger = sbbContext.getTracer(ConfLegSbb.class.getSimpleName()); try { Context ctx = (Context) new InitialContext().lookup("java:comp/env"); // initialize media api mgcpProvider = (JainMgcpProvider) ctx.lookup("slee/resources/jainmgcp/2.0/provider/demo"); mgcpAcif = (MgcpActivityContextInterfaceFactory) ctx.lookup("slee/resources/jainmgcp/2.0/acifactory/demo"); } catch (Exception ne) { logger.severe("Could not set SBB context:", ne); } }
public void setSbbContext(SbbContext context) { this.sbbContext = context; this.tracer = sbbContext.getTracer(HttpClientNIODemoSbb.class .getSimpleName()); try { Context ctx = (Context) new InitialContext() .lookup("java:comp/env"); httpClientACIF = (HttpClientNIOActivityContextInterfaceFactory) ctx .lookup("slee/resources/http-client-nio/acifactory"); httpClientRA = (HttpClientNIOResourceAdaptorSbbInterface) ctx .lookup("slee/resources/http-client-nio/sbbinterface"); } catch (NamingException ne) { tracer.severe("Could not set SBB context:", ne); } }
public void setSbbContext(SbbContext sbbContext) { this.sbbContext = sbbContext; this.tracer = sbbContext.getTracer("MS-Control-DEMO"); try { Context ctx = (Context) new InitialContext() .lookup("java:comp/env"); sipRaSbbInterface = (SleeSipProvider) ctx .lookup("slee/resources/jainsip/1.2/provider"); sipRaAciFactory = (SipActivityContextInterfaceFactory) ctx .lookup("slee/resources/jainsip/1.2/acifactory"); msRaSbbInterface = (MsControlFactory) ctx .lookup("slee/resources/media/1.0/provider"); mscRaAciFactory = (MsActivityContextInterfaceFactory) ctx .lookup("slee/resources/media/1.0/acifactory"); } catch (Exception ne) { tracer.severe("Could not set SBB context:", ne); } }
public void setSbbContext(SbbContext context) { this.sbbContext = context; if (tracer == null) { tracer = sbbContext.getTracer(SimpleSip11B2BTestSbb.class .getSimpleName()); } try { final Context ctx = (Context) new InitialContext() .lookup("java:comp/env"); sipActivityContextInterfaceFactory = (SipActivityContextInterfaceFactory) ctx .lookup("slee/resources/jainsip/1.2/acifactory"); sipProvider = (SleeSipProvider) ctx .lookup("slee/resources/jainsip/1.2/provider"); } catch (NamingException e) { tracer.severe(e.getMessage(), e); } }
public void setSbbContext(SbbContext sbbContext) { this.sbbContext = sbbContext; this.tracer = sbbContext.getTracer("MS-Control-DEMO"); try { Context ctx = (Context) new InitialContext() .lookup("java:comp/env"); sipRaSbbInterface = (SleeSipProvider) ctx .lookup("slee/resources/jainsip/1.2/provider"); sipRaAciFactory = (SipActivityContextInterfaceFactory) ctx .lookup("slee/resources/jainsip/1.2/acifactory"); msRaSbbInterface = (MsControlFactory) ctx .lookup("slee/resources/media/1.0/provider"); mscRaAciFactory = (MsActivityContextInterfaceFactory) ctx .lookup("slee/resources/media/1.0/acifactory"); } catch (Exception ne) { tracer.severe("Could not set SBB context:", ne); } }
public void setSbbContext(SbbContext context) { // save the sbb context in a field this.sbbContext = context; // get the tracer if needed this.tracer = context.getTracer(WakeUpSbb.class.getSimpleName()); // get jndi environment stuff try { final Context myEnv = (Context) new InitialContext(); // slee facilities this.timerFacility = (TimerFacility) myEnv .lookup(TimerFacility.JNDI_NAME); this.nullACIFactory = (NullActivityContextInterfaceFactory) myEnv .lookup(NullActivityContextInterfaceFactory.JNDI_NAME); this.nullActivityFactory = (NullActivityFactory) myEnv .lookup(NullActivityFactory.JNDI_NAME); // the sbb interface to interact with SIP resource adaptor this.sipProvider = (SleeSipProvider) myEnv .lookup("java:comp/env/slee/resources/jainsip/1.2/provider"); } catch (Exception e) { tracer.severe("Failed to set sbb context", e); } }
public void setSbbContext(SbbContext context) { this.sbbContext = context; this.tracer = sbbContext.getTracer(getClass().getSimpleName()); try { Context myEnv = (Context) new InitialContext() .lookup("java:comp/env"); xmppSbbInterface = (XmppResourceAdaptorSbbInterface) myEnv .lookup("slee/resources/xmpp/2.0/xmppinterface"); xmppActivityContextInterfaceFactory = (XmppActivityContextInterfaceFactory) myEnv .lookup("slee/resources/xmpp/2.0/factoryprovider"); // env-entries username = (String) myEnv.lookup("username"); password = (String) myEnv.lookup("password"); tracer.info("setSbbContext() Retrieved uid[" + username + "]," + " passwd[" + password + "]"); } catch (NamingException ne) { tracer.severe("Could not set SBB context:" + ne.getMessage(), ne); } }
@Override public void setSbbContext(SbbContext context) { // TODO Auto-generated method stub super.setSbbContext(context); this.log = getSbbContext().getTracer("CallBlockingSbb"); }
public void setSbbContext(SbbContext sbbContext) { this.sbbContext = sbbContext; this.logger = sbbContext.getTracer(RecorderSbb.class.getSimpleName()); try { Context ctx = (Context) new InitialContext().lookup("java:comp/env"); // initialize SIP API provider = (SleeSipProvider) ctx.lookup("slee/resources/jainsip/1.2/provider"); addressFactory = provider.getAddressFactory(); headerFactory = provider.getHeaderFactory(); messageFactory = provider.getMessageFactory(); acif = (SipActivityContextInterfaceFactory) ctx.lookup("slee/resources/jainsip/1.2/acifactory"); // initialize media api mgcpProvider = (JainMgcpProvider) ctx.lookup("slee/resources/jainmgcp/2.0/provider/demo"); mgcpAcif = (MgcpActivityContextInterfaceFactory) ctx.lookup("slee/resources/jainmgcp/2.0/acifactory/demo"); timerFacility = (TimerFacility) ctx.lookup("slee/facilities/timer"); } catch (Exception ne) { logger.severe("Could not set SBB context:", ne); } }
public void setSbbContext(SbbContext sbbContext) { this.sbbContext = sbbContext; this.logger = sbbContext.getTracer(TTSSbb.class.getSimpleName()); try { Context ctx = (Context) new InitialContext().lookup("java:comp/env"); // initialize SIP API provider = (SleeSipProvider) ctx.lookup("slee/resources/jainsip/1.2/provider"); addressFactory = provider.getAddressFactory(); headerFactory = provider.getHeaderFactory(); messageFactory = provider.getMessageFactory(); acif = (SipActivityContextInterfaceFactory) ctx.lookup("slee/resources/jainsip/1.2/acifactory"); // initialize media api mgcpProvider = (JainMgcpProvider) ctx.lookup("slee/resources/jainmgcp/2.0/provider/demo"); mgcpAcif = (MgcpActivityContextInterfaceFactory) ctx.lookup("slee/resources/jainmgcp/2.0/acifactory/demo"); } catch (Exception ne) { logger.severe("Could not set SBB context:", ne); } }
public void setSbbContext(SbbContext context) { this.sbbContext = context; this.log = this.sbbContext.getTracer("SubscriptionProfileSbb"); try { //"If NamingException is thrown check jmx-console -> JNDIView -> // list or sbb-jar (check entity-bindning) for proper JNDI path!!!!" Context myEnv = (Context) new InitialContext().lookup("java:comp/env"); // Getting JAIN SIP Resource Adaptor interfaces fp = (SleeSipProvider) myEnv.lookup("slee/resources/jainsip/1.2/provider"); // To create Address objects from a particular implementation of JAIN SIP addressFactory = fp.getAddressFactory(); // To create Request and Response messages from a particular implementation of JAIN SIP messageFactory = fp.getMessageFactory(); // To allow SBB entities to interrogate the profile database to find // profiles that match a selection criteria profileFacility = (ProfileFacility) myEnv.lookup("slee/facilities/profile"); } catch (NamingException ne){ log.severe("COULD NOT LOCATE RESOURCE IN JNDI: Check JNDI TREE or entity-binding for proper path!!!", ne); } }
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(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) { super.setSbbContext(context); this.log = getSbbContext().getTracer("CallForwardingSbb"); // To create Header objects from a particular implementation of JAIN SIP headerFactory = getSipFactoryProvider().getHeaderFactory(); }
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(); }
@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(); }