ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » JBOSS and MQ

Post new topic  Reply to topic
 JBOSS and MQ « View previous topic :: View next topic » 
Author Message
Glen Shubert
PostPosted: Tue Sep 02, 2008 12:52 pm    Post subject: JBOSS and MQ Reply with quote

Apprentice

Joined: 16 May 2001
Posts: 42
Location: TSYS - Columbus, GA

Can anyone tell me how to set up JBOSS MQ to be able to disconnect from the queue manager? I don't know anything about JBOSS, but we have an application that is using over 2048 connections from approx 5 app servers. The developers claim that they have to use persistent sessions. When they hit max connections, We end up bouncing the queue manager. How does JBOSS perform the connect and disconnect?

Thanks in advance,

Glen Shubert
_________________
Glen Shubert
Associate Director
MQSeries Technical Support
TSYS
Back to top
View user's profile Send private message Send e-mail Visit poster's website
fjb_saper
PostPosted: Tue Sep 02, 2008 3:45 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

JBoss is not any different from any other J2EE app server. There is somewhere in the JBoss documentation about using a different JMS provider links on how to create the relevant JBoss JNDI and pools.

Don't know anything about persistent sessions but if the resource (MQ) gets acquire in the lifetime of the session it it the responsability of the programmer who acquired the resource to release it.

Don't know why you have to recycle the qmgr... maybe because you are running with server connections? If in client connection just force shutdown the channel and restart it when all instances are in a stopped state.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Glen Shubert
PostPosted: Wed Sep 03, 2008 7:01 am    Post subject: Reply with quote

Apprentice

Joined: 16 May 2001
Posts: 42
Location: TSYS - Columbus, GA

You have to forgive me, I am an old mainframer.... They are using client connections to the server, starting x number of connections from their EJBs based upon the function. They will send one message across, then not use that connection again, but claim they need to keep the session up. When we force disconnect the channel, they have to restart their app servers. In order to clear up the connections, we end up having to restart the queue manager. Basically, I am trying to prove them wrong, and find a way for them to police their connections themselves.

Glen
_________________
Glen Shubert
Associate Director
MQSeries Technical Support
TSYS
Back to top
View user's profile Send private message Send e-mail Visit poster's website
zpat
PostPosted: Wed Sep 03, 2008 7:50 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

On a z/OS queue manager, one can now set an inactive disconnect interval on client channels to help with this.

However generally this is an application design issue, if their code issues MQCONN, then it must also issue MQDISC to release the channel.

Most multi-threaded adapters use some kind of handle management logic to maintain a pool of connections, that allow efficient re-use of open connections without excessive channel connections.

I would ration any given app server to 20 concurrent connections (and no creeping up), any more and they are not allowed to implement that design.

However you can't enforce this at the queue manager level, you just have to impose this as a condition of production readiness.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Wed Sep 03, 2008 7:32 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

In MQ 7.0 you can enforce this at the SVRCONN channel level. At all versions you can use a security exit to enforce this.

You don't need to restart the QM, Glen. FORCE STOP the SVRCONN channel. They will go from STOPPING to STOPPED. Then start the SVROCNN channel. That will blow away all the STOPPED instances and start you fresh.

Search here on TCP Keep Alive as well to help clean up truly orphaned connections.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Wed Sep 03, 2008 7:35 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Glen Shubert wrote:
When we force disconnect the channel, they have to restart their app servers.

They don't have any reconnect logic! Ask them what happens when the network blips - they gotta come in to restart their apps to recover? Tell them they need to code reconnect logic, and by the way not to drop into a tight loop trying to reconnect as fast as possible forever. Try a couple of time quickly to recover from blips, and then once every few seconds / minutes to recover from scheduled outages, channel restarts, etc.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Sep 04, 2008 4:11 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

And remind them that closing a connection does not really close it but release it to the pool, in an available state. If they acquire a connection (mqfactory.createConnection() ) they NEED to CLOSE that connection!!
Leaving that task to the garbage collector IS NOT AN OPTION!
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » JBOSS and MQ
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.