Hi!
I have following problem.
I am using queue to send and receive object messages - PTP messaging.
I am using shared QueueConnection - only one connection for vm.
For every send message I am opening/closing QueueSession.
To send message to queue and receive answer I do following steps:
0. open queue connection - ONE for vm
1. open queue session
2. get Queue
3. create TemporaryQueue - on this queue I am waiting for answer
4. send message to queue
5. wait for answer on temporary queue
6. close queue session
steps 1-6 are executed for single thread.
As I know all resources allocated by queue session should be closed when session is closed, so why I can still use temporary queue??? I need to delete it immediately when queue session is closed, but this queue is deleted only when queue connection is closed.
I tryed to invoke delete() method on temporary queue but it works only once, second execution (I am trying to delete another temp queue)throws following exception
Cannot delete the TemporaryQueue
org.jboss.mq.SpyJMSException: Cannot delete the TemporaryQueue
at org.jboss.mq.SpyTemporaryQueue.delete(SpyTemporaryQueue.java:42)
.......
linked exception is:
java.rmi.RemoteException: Cannot connect to the ConnectionReceiver/Server
at org.jboss.mq.il.oil.OILClientIL.createConnection(OILClientIL.java:115)
at org.jboss.mq.il.oil.OILClientIL.checkSocket(OILClientIL.java:97)
at org.jboss.mq.il.oil.OILClientIL.deleteTemporaryDestination(OILClientIL.java:64)
at org.jboss.mq.SpyTemporaryQueue.delete(SpyTemporaryQueue.java:40)
Any one knows how to delete not TemporaryQueue with out closing queue connection??
Thanks maciek
sounds like a bug. could you post a bug report to sf.net?? You get bonus points if the bug report includes a test case. :)