[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How do I destroy a TemporaryQueue on the server?
Use a TemporaryQueue, naturally. But only the client/session creating the temporary queue can receive from it/delete it. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3847498#3847498 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3847498 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How do I destroy a TemporaryQueue on the server?
anonymous wrote : The session that creates the temporary queue must be the one that creates the receiver otherwise it won't work. | Well, how do you explain the fact that the design that I outlined below works for me? What is the right way of achieving the functionality that I need, i.e. - creating a new JMS queue for each new remote client - cleaning it up when the client disconnects (gracefully or ungracefully)? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3847061#3847061 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3847061 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How do I destroy a TemporaryQueue on the server?
If the server side is not closing its connections you've got a memory leak straight away. The session that creates the temporary queue must be the one that creates the receiver otherwise it won't work. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3846911#3846911 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3846911 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How do I destroy a TemporaryQueue on the server?
Darran, Adrian, thank you for your responses. They do shed some more light on the issue, however my main problem is still unresolved. Perhaps I didn't make myself clear, so let me try to do this one more time. My design: A single Jboss service, multiple remote clients. There is a 2-way communication between the service and each od the clients: client->server via RPC calls (using RMI Invoker), and server->client using JMS queue. I believe it's quite common to have such a design these days, right? When a client initiates the connection, the service creates a new TemporaryQueue and returns the name of this queue. Next, the client calls qsession.createQueue (..) with this same name. This works just fine. *** Please confirm that this a legitimate technique. *** Now, the problem that I'm trying to solve is that of a session resource clean-up. Since the server side service never closes its JVM JMS connection (and even JMS session), the temporary queue will never be destroyed. This would cause memory leaks. So, somehow the server has to destroy these temp queues. The only way of doing it cleanly is to call tempQueue.delete (), right? However, there is a catch. If I call delete () before the remote client has closed his connection, I get an exception as you can see in my previous message. So, this delete () calls has to be synchronized with the client closing his connection. The question is - how do I do that? The situation is even more complicated when using JMS over HTTP. In this case, it's the server side HTTP servlet that actually opens the JMS connection on behalf of the client. After poking around the Jboss JMS source code I haven't found any trace of session expiration mechanism in this servlet. (Should I file a bug for this separately?). In other words, if the client dies without explicitly closing the JMS connection, it seems that this connection on the server will never be closed, hence among other things the temp destination will remain locked forever. *** Please confirm or deny this *** Therefore, in this case, it's impossible to delete the temp queue calling delete method on it. To summarize, when using HTTP UIL, the temp queue remains locked forever if the client dies; when using UIL2, the connection is closed if the client dies, but still one must somehow synchronize the invocation of the tmpQueue.delete method on the server with the client connection closing. Please advise, Yuri View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3846684#3846684 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3846684 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How do I destroy a TemporaryQueue on the server?
anonymous wrote : I don't see how this answers my questions. Well one of your questions was: - anonymous wrote : Should I call tempQueue.delete () at all, or simply close all senders/receivers and hope that some sort of reference counting mechanism will destroy the queue? Partly you were asking if there is anything that will automatically delete the queue. anonymous wrote : Creates a TemporaryQueue object. Its lifetime will be that of the QueueConnection unless it is deleted earlier. The extract from the API tells you that the queue will be automatically deleted. So that is how it answers one of your questions. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3846325#3846325 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3846325 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How do I destroy a TemporaryQueue on the server?
You cannot delete a temporary destination while is has subscribers/listeners. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3846308#3846308 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3846308 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How do I destroy a TemporaryQueue on the server?
I'm aware of that, but I don't see how this answers my questions. I was trying to show that _I am_ trying to delete this topic earlier then closing the queue connection, but getting an exception. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3846164#3846164 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3846164 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How do I destroy a TemporaryQueue on the server?
>From the J2EE 1.3 API, this is the description of the 'createTemporaryQueue' method. Creates a TemporaryQueue object. Its lifetime will be that of the QueueConnection unless it is deleted earlier. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3846120#3846120 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3846120 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user