3 Replies Latest reply on Dec 12, 2008 10:48 AM by Andy Taylor

    JMS session transaction not managed by container?

    Aleksander Lech Newbie

      I cant send a JMS message when specyfying transactional attribute when creating session.

      Heres the code, maybe You could help:

      publicvoid notifyGeofencingMgr() {
       try {
       Connection jmsConn = connectionFactory.createConnection();
       javax.jms.Session jmsSession = jmsConn.createSession(true, javax.jms.Session.AUTO_ACKNOWLEDGE);
       TextMessage msg = jmsSession.createTextMessage();
       MessageProducer sender = jmsSession.createProducer(geofencingMgrQueue);
       } catch (JMSException e) {
       log.error("Unable to send JMS message", e);

      This method is one the session bean bussiness method which is included in UT. The message does not go to MDB when using transactional JMS session (jmsConn.createSession(true, javax.jms.Session.AUTO_ACKNOWLEDGE)). Any ideas?