7 Replies Latest reply on Nov 13, 2013 7:21 AM by João Duro

    How to add new topics to JCA binding programmatically

    João Duro Newbie

      Hi guys,

       

      Imagine a scenario where I have a service listening to a JCA binding which is using Activemq in a specific topic/destination (ex: "defaultTopic").

      After the deploy I want to be able to add topics/destinations dynamically (ex: have a RESTeasy binding that will add topics or destinations to the JCA binding) to that binding (ex: "TopicA", "TopicB", etc.). These new topics/destinations will then be redirected to a previously defined service.

       

      The question is, how can I add these new topics dynamically?

      How can I associate these new topics to a service?

      And how can I know in which topic was the message received in the service?