0 Replies Latest reply on Feb 21, 2013 8:18 AM by Jean-Yves Terrien

    multiples addComponent jmsComponentAutoAcknowledge problem.

    Jean-Yves Terrien Newbie

      I'm using SMX 4.4.1

       

      I have 2activemq brokers.

      one for persisted exchanges between bundles.

      another for exchanges with a partner application.

       

      in a bundle A the routebuilder configue are

      public void configure () {

      ....

      getContext (). addComponent ("jms" JmsComponent.jmsComponentAutoAcknowledge (factory));

      getContext (). addComponent ("local", JmsComponent.jmsComponentAutoAcknowledge (localFactory));

       

      and in the route I make a

      from ("file://path...")

      .to ("local:myqueues")

       

      the route starts without pb and operating normally.

       

      via JMX I can see that messages will accumulate in local:myqueues

       

      in another bunble B my configure route use the same code to add components

      public void configure () {

      ....

      getContext (). addComponent ("jms" JmsComponent.jmsComponentAutoAcknowledge (factory));

      getContext (). addComponent ("local", JmsComponent.jmsComponentAutoAcknowledge (localFactory));

       

      and in the route I make a

      from ("local:myqueues")

      .to ("file://path2..")

       

      the route remains GRACEPERIOD

      with the ERROR

        Bundle-hermes newspaper is waiting for dependencies

       

      I've tried to change the bundle A that works.

      I've added a route

      with

      from ("local:myqueues")

      and it does not start.

       

      Why, while the two components  like are added together in the register, one is found and not the other?