5 Replies Latest reply on Jun 19, 2008 7:01 AM by Fabien Coppens

    Best practice for managing connections in JMS Publishers

    Fabien Coppens Newbie

      Hi all.
      Could I please get some pointers on best practices for managing connections in JMS publishers that send messages to JBoss Messaging ?
      I read on the Wiki that the JCA-managed connection factory caches connections, so is it ok to simply open and close a connection for each message ?
      Or should the publisher manage a single connection and implement the failsafe logic in case the TCP/IP connection is lost for various reasons like socket timeout, network down, server down, etc... ? Any examples or links to solutions in this case ?
      Thanks in advance.