The method will accept the argument javax.jms.Queue which is another form of javax.jms.Destination.
However the method will not accept the MQQueue.
The difference is that you explicitely cast your result to MQQueue where we left it as a javax.jms.Queue.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum