Package org.apache.savan.eventing.client

Examples of org.apache.savan.eventing.client.EventingClientBean


      break;
    }
  }
 
  private void doSubscribe (String ID) throws Exception {
    EventingClientBean bean = new EventingClientBean ();
   
    String subscribingAddress = null;
    if (SUBSCRIBER_1_ID.equals(ID)) {
            subscribingAddress = "http://" + serverIP + ":" + port + listner1AddressPart;
    } else if (SUBSCRIBER_2_ID.equals(ID)) {
            subscribingAddress = "http://" + serverIP + ":" + port + listner2AddressPart;
    }
 
    bean.setDeliveryEPR(new EndpointReference (subscribingAddress));
 
    //uncomment following to set an expiration time of 10 minutes.
//    Date date = new Date ();
//    date.setMinutes(date.getMinutes()+10);
//    bean.setExpirationTime(date);
View Full Code Here

TOP

Related Classes of org.apache.savan.eventing.client.EventingClientBean

Copyright © 2018 www.massapicom. 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.