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);