*
* @exception AdminException If an error is raised by the administration operation.
* @exception ConnectException If the admin connection is not established.
*/
public Subscription getSubscription(String subName) throws AdminException, ConnectException {
GetSubscriptionRep reply = (GetSubscriptionRep) doRequest(new GetSubscription(proxyId, subName));
Subscription sub = new Subscription(subName, reply.getTopicId(), reply.getMessageCount(), reply.getDurable());
return sub;
}