public interface DestroyDestinationUtil
Since the JMS architecture has no function to destroy the destinations and the destruction is done in the implementation level, we can not have a destroy function in the Queue Channel (since it uses the high level JMS functions). Thus, we should provide another way to destroy it. Our solution is to have a class that do the destruction and we pass it to the channel. When the time comes, the channel will call the destroy function of the instance it has.
|Modifier and Type||Method and Description|
Destroy the given Destination which have been created by the given connection.
void destroyDestination(javax.jms.Connection connection, javax.jms.Destination destinationName) throws javax.jms.JMSException
connection- used to create the destination.
destinationName- the name of the destination that should be distract.