Hi one our application we have MDB Bean,
In the ejbCreate I found JMS connection is bind to context object something like this.
ctx.bind(jndiName, MQQueueConnectionFactory);
ctx.bind(queueJndiName, Queue);
Then context is closed by calling the close method.
ejbRemove is kept empty.
In the effort to clean the code (MQ open connection reported in production) we are in the process of closing the MQ connection which are not in use.
Since the scope of queue object is only with in the ejbCreate. Is it valid to close the MQ connection before closing the context?
I am relativity new in the subject, any help would be highly appreciated.
Thanks
Arun
[ March 11, 2008: Message edited by: Arun Boraiah ]