Announcement Announcement Module
Collapse
No announcement yet.
Messag-driven-channel-adapter and auto-startup Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Messag-driven-channel-adapter and auto-startup

    Hi,

    I use the jms:message-driven-channel-adapter, and it work correctly, but when I set auto-startup property to false, the it is not started (of course).
    Can anybody told me, how can I start the adapter manually?

    (In backets:
    Can anybody tell me an information source when I can found a bit more information about the spring integration elements and properties. I read the Reference Guide, but I feel somtimes it is not enough.)

    Thank you!
    Feri
    Last edited by take5; Dec 13th, 2010, 07:56 AM.

  • #2
    When you say manually do you mean JMX or through simple java code? I mean adapter is just a bean in Spring AC so you can get reference to it via ac.getBean(..) and execute start() method. You can do the same with JMX support provided with SI, you can also utilize ControlBus functionality available within SI to send a control Message to invoke a start() method.
    Could you provide more details?

    Comment


    • #3
      Messag-driven-channel-adapter and auto-startup

      Hi Oleg,

      Thank you your answer, it is work.

      The solution:

      Config
      Code:
      	<jms:message-driven-channel-adapter id="MdcaBean"
      		destination-name="${MQ_REPLAY_QUEUE}" 
      		connection-factory="connFactSAP"
      		channel="myInChannel" 
      		auto-startup="false" />
      Java
      Code:
              Object lBean = pAccCtx.getBean("MdcaBean");
              
              ((JmsMessageDrivenEndpoint)lBean).start();
      Thank you!
      Feri

      Comment

      Working...
      X