1 2 Previous Next 21 Replies Latest reply on Jan 22, 2018 5:05 AM by Tom Jenkinson

    Use JMS integration classes for MessageListener

    Alexis Hassler Apprentice



      I've started to use the integration classes for JMS (package org.jboss.narayana.jta.jms). That's very nice, as it allow to use very easily Narayana with a JMS MessageProducer or a JMS MessageConsumer. But there's no integration provided for MessageListener.

      I would like to implement a transactional listener, just like a MDB without Java EE, EJBs or JCA. I found 2 solutions :

      - make horrible hacks, with reflection,

      - or develop my own set of ConnectionFactoryProxy, ConnectionProxy, SessionProxy, with a MessageConsumerProxy and a MessageListenerProxy

      Is there any other solution ?

      BTW, it would be nice to see the feature integrated in the JMS integration classes.

        1 2 Previous Next