And of course the answer is obvious:

anonymous wrote : 
  | //from ejbCreate()
  |  ConnectionFactory cFactory = (ConnectionFactory)
  |      jndi.lookup("java:comp/env/jms/myConnectionFactory");
  |  Connection connection = cFactory.createConnection();
  |  session_ = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
  | 

You are doing it wrong.

See my countless other posts about the correct usage of the connection pool
and why allocating a connection per bean doesn't scale (which you need unshared 
on the resource-ref to enable anyway).



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859341#3859341

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859341


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to