2 Replies Latest reply on Aug 6, 2003 9:18 AM by Steven Segers

    Posting on Queue from within an EJB

    Steven Segers Newbie

      I would like to know the correct way to post a messages on a queue (or topic) from withing the Container.
      If I want the messages to be enrolled in the container transaction I sould pass false to createQueueSesson.
      What is the correct ConnectionFactory to use (ConnectionFactory, XAConnectionFactory or JmsXA)?
      Should a Connection/Session/Sender be created/destroyed for each transaction or can they be reused across transactions?
      When using JmsXA, it seems that you are not allowed to call stop/close on a Connection; is that correct.
      I think it would be usefull if the JBoss manual provided an example of posting a message from within a bean.