protected DataSource getDatasource() throws IllegalArgumentException, NullPointerException, SLEEException, CreateException { ChildRelationExt cre = (ChildRelationExt) getDatasourceChildRelation(); SbbLocalObjectExt sbbLocalObject = cre.get(DATASOURCE_CHILD_NAME); if (sbbLocalObject == null) { sbbLocalObject = cre.create(DATASOURCE_CHILD_NAME); } return (DataSource) sbbLocalObject; }
protected DataSource getDatasource() throws IllegalArgumentException, NullPointerException, SLEEException, CreateException { ChildRelationExt cre = (ChildRelationExt) getDatasourceChildRelation(); SbbLocalObjectExt sbbLocalObject = cre.get(DATASOURCE_CHILD_NAME); if (sbbLocalObject == null) { sbbLocalObject = cre.create(DATASOURCE_CHILD_NAME); } return (DataSource) sbbLocalObject; }
protected CDRGenerator getCDRGenerator() throws IllegalArgumentException, NullPointerException, SLEEException, CreateException { ChildRelationExt cre = (ChildRelationExt) getCDRGeneratorChildRelation(); SbbLocalObjectExt sbbLocalObject = cre.get(CDRGEN_CHILD_NAME); if (sbbLocalObject == null) { sbbLocalObject = cre.create(CDRGEN_CHILD_NAME); } return (CDRGenerator) sbbLocalObject; }
protected AccountBalanceManagement getAccountManager() throws IllegalArgumentException, NullPointerException, SLEEException, CreateException { ChildRelationExt cre = (ChildRelationExt) getAccountBalanceManagementChildRelation(); SbbLocalObjectExt sbbLocalObject = cre.get(ABMF_CHILD_NAME); if (sbbLocalObject == null) { sbbLocalObject = cre.create(ABMF_CHILD_NAME); } return (AccountBalanceManagement) sbbLocalObject; }
protected RatingEngineClient getRatingEngineManager() throws IllegalArgumentException, NullPointerException, SLEEException, CreateException { ChildRelationExt cre = (ChildRelationExt) getRatingEngineChildRelation(); SbbLocalObjectExt sbbLocalObject = cre.get(RATING_CHILD_NAME); if (sbbLocalObject == null) { sbbLocalObject = cre.create(RATING_CHILD_NAME); } return (RatingEngineClient) sbbLocalObject; }
private HrSriClientSbbLocalObject getHrSriClientSbbLocalObject() { ChildRelationExt relation = getHrSriClientSbb(); HrSriClientSbbLocalObject ret = (HrSriClientSbbLocalObject) relation.get(ChildRelationExt.DEFAULT_CHILD_NAME); if (ret == null) { try { ret = (HrSriClientSbbLocalObject) relation.create(ChildRelationExt.DEFAULT_CHILD_NAME); } catch (Exception e) { if (this.logger.isSevereEnabled()) { this.logger.severe("Exception while trying to creat HrSriClientSbb child", e); } } } return ret; }
public void onStartServiceEvent(javax.slee.serviceactivity.ServiceStartedEvent event, ActivityContextInterface aci) { HSSClientChildSbbLocalObject child; try { child = (HSSClientChildSbbLocalObject) this.getHSSClientChildSbbChildRelation().create(ChildRelationExt.DEFAULT_CHILD_NAME); try { // Request alice PSI Activation child.getPSIActivation(PUBLIC_IDENTITY_PSI, DESTINATION_REALM, DESTINATION_HOST); // child.getIMSPublicIdentity(PUBLIC_IDENTITY, null, 0, DESTINATION_REALM, DESTINATION_HOST); if (tracer.isInfoEnabled()) { tracer.info("###### STEP 1 # Sent User-Data-Request to HSS for '" + PUBLIC_IDENTITY_PSI + "'"); } } catch (IOException ioe) { tracer.severe("Unable to send UDR.", ioe); } } catch (CreateException ce) { tracer.severe("Failed to create Child Relation.", ce); } }
/** * Event handler for {@link ServiceStartedEvent}. * * @param event * @param aci */ public void onServiceStartedEvent(ServiceStartedEvent event, ActivityContextInterface aci) { tracer.info("SIP JDBC Registrar starting..."); // start config mbean SIPRegistrarSbb.config.startService(); try { DataSourceChildSbbLocalInterface child = (DataSourceChildSbbLocalInterface) getChildRelation() .create(ChildRelationExt.DEFAULT_CHILD_NAME); child.init(); } catch (Exception e) { tracer.severe( "Exception initiating data source, SIP JDBC Registrar startup failed.", e); return; } tracer.warning("SIP JDBC Registrar started."); }
public void onTimerEvent(TimerEvent timer, SbbActivityContextInterface aci) { // detach from this activity, we don't want to handle any other event on // it aci.detach(this.sbbContextExt.getSbbLocalObject()); // get data needed to remove binding from aci RegistrationBindingData data = aci.getData(); if (data == null) { // another service's timer event, ignore return; } try { DataSourceChildSbbLocalInterface child = (DataSourceChildSbbLocalInterface) getChildRelation() .create(ChildRelationExt.DEFAULT_CHILD_NAME); child.removeBinding(data.getContact(), data.getAddress()); } catch (Exception e) { tracer.severe("Exception invoking data source child sbb.", e); return; } // end the activity try { ((NullActivity) aci.getActivity()).endActivity(); } catch (Exception e) { tracer.warning("failed to end binding aci", e); } }
.create(ChildRelationExt.DEFAULT_CHILD_NAME); child.getBindings(sipAddress); } catch (Exception e) { .create(ChildRelationExt.DEFAULT_CHILD_NAME); child.removeBindings(sipAddress, callId, cSeq); } catch (Exception e) { .create(ChildRelationExt.DEFAULT_CHILD_NAME); child.updateBindings(sipAddress, callId, cSeq, newContacts); } catch (Exception e) {