4 Replies Latest reply on Mar 26, 2009 9:01 AM by timfox

    JMS Connection Pooling

      Want to implement JMS Connection Pooling in our application ,as the time taken to create a JMS connection varies considerably.
      If anyone came across good JMS connection pooling ,do shed some light on it.
      I am using Jakarta common pool framework to create a JMS Connections.
      Consider the below scenario
      From standalone java component, i want to send a JMS message to JBoss MOM.For that i get a connection from pooling framework .After sending the message,i return the connection object to the pooling framework,but that standalone java component did not return from the main method and it waits indefinitely for the connection object to get close. Is their any way around to solve this problem.
      if i close the connection ,the main method returns and the program terminate normally.
      I want a mechanism such that main method returns and terminate normally after sending a message and also at the same time ,i want to put back my live connection object to pooling framework.
      Thanks in advance
      Reply wud be appreciated

        • 1. Re: JMS Connection Pooling
          timfox

          If you use the JCA JMS managed connection factory - this will handle pooling for you automatically:

          http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossJMSRA

          • 2. Re: JMS Connection Pooling

            this is an old thread but could you please let me know if we can use the JCA JMS managed connection factory from a standalone java application ?

            • 3. Re: JMS Connection Pooling
              timfox

               

              "vandana_awat" wrote:
              this is an old thread but could you please let me know if we can use the JCA JMS managed connection factory from a standalone java application ?


              I answered this in a post I made a couple of hours ago.

              This is also answered on the wiki.

              BTW, the best place to ask JCA questions is the *JCA forum* not the JBoss Messaging forum.

              • 4. Re: JMS Connection Pooling
                timfox

                To summarise, AFAIK, JBoss JCA currently only works inside the app server/servlet engine, it does not work standalone on the client side.

                I believe the JCA team are currently working on providing a standalone JCA implementation that will work on the client side, but I'm not sure of that.

                The JCA team on the JCA forum will know more about that than me.