use of com.sun.messaging.jmq.jmsserver.core.Subscription in project openmq by eclipse-ee4j.
the class SubscriptionIterator method next.
/**
* Caller must catch RuntimeException and getCause
*/
@Override
public Object next() throws RuntimeException {
try {
String dname = dis.readUTF();
String clientID = dis.readUTF();
if (clientID.length() == 0) {
clientID = null;
}
Subscription sub = Subscription.findDurableSubscription(clientID, dname);
count_read++;
return sub;
} catch (IOException e) {
count_read = -1;
throw new RuntimeException(e);
}
}
Aggregations