throw new IllegalStateException("Session is closed");
}
if (!dest.isTemporary())
{
throw new InvalidDestinationException("Destination:" + dest +
" is not a temporary destination");
}
ManagedDestination mDest = dm.getDestination(dest.getName(), dest.isQueue());
if (mDest == null)
{
throw new InvalidDestinationException("No such destination: " + dest);
}
if (dest.isQueue())
{
Binding binding = postOffice.getBindingForQueueName(dest.getName());