1 2 Previous Next 19 Replies Latest reply on May 17, 2016 9:14 AM by Tom Jenkinson

    Use JMS integration classes for MessageListener

    Alexis Hassler Apprentice

      Hi,

       

      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