camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: Howto for MessageListenerProcessor
Date Wed, 29 Oct 2008 11:25:06 GMT
2008/10/29 hennejg <>:
> Hi,
> in this message
> the MessageListenerProcessor is mentioned as a possible way to feed messages
> received by an MDB into camel. However, I found it rather non-obvious how
> this is actually accomplished. Is there a brief howto or example of what to
> provide to the MLP constructor based on a given camel context?

We could do with a tutorial that shows how to invoke Camel from an MDB
- if you wanted to reuse an MDB application but just add some Camel

I've raised a JIRA to track this

Using trunk you can now create a JMS message listener as follows...

MessageListener listener =
CamelMessageListener.newInstance(camelContext, "direct:foo");

where "direct:foo" is whatever Camel URI you want to use to process
the incoming JMS message.

So you could wrap this up in a trivial MDB if you like to delegate
processing of the JMS message to some Camel rule.


Open Source Integration

View raw message