1 Reply Latest reply on Nov 9, 2009 11:08 AM by jaikiran pai

    How to make mdb pass jms message to the correct stateful bea

    mariqn nenchev Novice

      Hi,
      I do not know if this is the right forum to ask but let me try.
      So, i have MDB that receives different kind of messages and must pass them to the appropriate stateful bean that is retrieved from jboss cache by someId.
      So how to implement that? When the MDB receives JMSMessage i do not know for which stateful bean this message is. Could i set in some way the stateful bean id (used for caching) when i send the message and after that in my MDB just to get the id from the message and retrieve the correct stateful bean and pass the message to it in order to be processed?
      jmsmessage has setIntProperty method could i use it to pass the id, or this is not right?