Package javax.slee

Examples of javax.slee.ActivityContextInterface.attach()


      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    // Attach our local interface to the new ActivityContextInterface
    // This makes this Sbb receive responses to the request
    ac.attach(sbbLocalObject);

    // Finally, send the request!
    try {
      ct.sendRequest();
    } catch (SipException e) {
View Full Code Here


      // Let us attach sbbLocalObject to Dialog to receive Bye latter
      try {

        ActivityContextInterface daci = activityContextInterfaceFactory
            .getActivityContextInterface(currentDialog);
        daci.attach(sbbContext.getSbbLocalObject());
      } catch (Exception e) {
        e.printStackTrace();
      }

      String sdp = new String(event.getResponse().getRawContent());
View Full Code Here

          .createNetworkConnection(ENDPOINT_NAME);

      try {
        ActivityContextInterface aci = mediaAcif
            .getActivityContextInterface(msConnection);
        aci.attach(sbbContext.getSbbLocalObject());
        aci.attach(getParentCmp());
      } catch (Exception e) {
        e.printStackTrace();
      }
View Full Code Here

      try {
        ActivityContextInterface aci = mediaAcif
            .getActivityContextInterface(msConnection);
        aci.attach(sbbContext.getSbbLocalObject());
        aci.attach(getParentCmp());
      } catch (Exception e) {
        e.printStackTrace();
      }

      log.info("Creating RTP connection [" + ENDPOINT_NAME + "]");
View Full Code Here

      linkActivity = mediaAcif.getActivityContextInterface(link);
    } catch (UnrecognizedActivityException ex) {
      ex.printStackTrace();
    }

    linkActivity.attach(getParentCmp());

    link.join(connection.getEndpoint(), ANNOUNCEMENT_ENDPOINT);
  }

  private void releaseMediaConnectionAndDialog() {
View Full Code Here

    try {
      ClientTransaction ct = sipProvider.getNewClientTransaction(request);
      ActivityContextInterface acIntf = activityContextInterfaceFactory
          .getActivityContextInterface(ct);
      SbbLocalObject mySelf = sbbContext.getSbbLocalObject();
      acIntf.attach(mySelf);
      dialog.sendRequest(ct);
    } catch (Exception e) { // This catches no less than 10 distinct
      // exception types...
      log.error("Exception in sendrequest", e);
      throw new SipException(
View Full Code Here

        .getSignalGenerator(announcementEndpoint);

    try {
      ActivityContextInterface generatorActivity = mediaAcif
          .getActivityContextInterface(generator);
      generatorActivity.attach(getSbbContext().getSbbLocalObject());

      String announcementFile = "file:" + this.getAudioFile();
      generator.apply(Announcement.PLAY,
          new String[] { announcementFile });
View Full Code Here

    MsSignalDetector dtmfDetector = msProvider
        .getSignalDetector(endpointName);
    try {
      ActivityContextInterface dtmfAci = mediaAcif
          .getActivityContextInterface(dtmfDetector);
      dtmfAci.attach(getSbbContext().getSbbLocalObject());
      dtmfDetector.receive(Basic.DTMF, connection, new String[] {});
    } catch (UnrecognizedActivityException e) {
    }
  }
View Full Code Here

      child.setParent(getSbbContext().getSbbLocalObject());

      // Attach child SBB to the activity context
      sipACI.attach(child);
      clientSipACI.attach(child);
      sipACI.attach(this.getSbbContext().getSbbLocalObject());

      // Send the INVITE request
      ct.sendRequest();
View Full Code Here

        .getSignalGenerator(announcementEndpoint);

    try {
      ActivityContextInterface generatorActivity = mediaAcif
          .getActivityContextInterface(generator);
      generatorActivity.attach(getSbbContext().getSbbLocalObject());

      String announcementFile = "file:" + audioFilePath;
      generator.apply(Announcement.PLAY,
          new String[] { announcementFile });
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.