You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by jcamus <jc...@parkeon.com> on 2009/08/26 17:09:48 UTC
How to process messages from a JMS provider into SMX?
Hi,
I need to have the following architecture :
FilePoller -> CamelRouting -> JMS Provider -> <XXX>
The <XXX> is a component that will regularly get the messages into the JMS
queue and process them.
How to do that into SMX ? Must I have a Bean-SE component with dedicated
java code to manage that ? Or is a specific component already done for that?
More generally, how into SMX is managed messages into a JMS queue? How can
we simply process messages into a SMX JMS queue?
Thanks for your help.
--
View this message in context: http://www.nabble.com/How-to-process-messages-from-a-JMS-provider-into-SMX--tp25151415p25151415.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
RE: How to process messages from a JMS provider into SMX?
Posted by Madesclair Vivian <vm...@sopragroup.com>.
Hello,
I think this is because the JMS BC enable access to external queues.
To call external service you should use CXF BC. The EIP Pipeline convert InOnly into InOut and forward the result of the InOut to an InOnly target.
Regards
Vivian
-----Message d'origine-----
De : jcamus [mailto:jcamus@parkeon.com]
Envoyé : jeudi 27 août 2009 08:43
À : users@servicemix.apache.org
Objet : Re: How to process messages from a JMS provider into SMX?
Thanks for this quick answer!
By the way I just saw that SMX manages JMS internally for each endpoint defined. So why using JMS as a BC component into the SMX? it seems useless, isn'it? Maybe if I just used the following it should be ok :
FilePoller -> Camel routing -> Transformation -> EIP Pipeline -> Bean Se to call external services
Then this flow is asynchronous with the Pipeline and each message is kept until processed even if SMX is restarted? I am right?
Regards.
--
View this message in context: http://www.nabble.com/How-to-process-messages-from-a-JMS-provider-into-SMX--tp25151415p25167070.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How to process messages from a JMS provider into SMX?
Posted by Gert Vanthienen <ge...@gmail.com>.
L.S.,
When the JMS or JCA flow are enabled, you'll get a queue per endpoint
indeed. Whether or not these are persistent, needs to be configured
http://servicemix.apache.org/6-configuring-servicemix.html. However,
using this approach, every MessageExchange will get
serialized/deserialized on every send. If you want to ensure that
messages are being saved intermediately while processing, I would
personally recommend you to stick to your original approach with the
jms consumer/provider endpoint or add jms endpoints in your camel
route to get the same result, without the overhead of sending all
messages over JMS. This will also get you ready for ServiceMix 4
where we no longer have the JMS flow.
Regards,
Gert Vanthienen
------------------------
Open Source SOA: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/
2009/8/27 jcamus <jc...@parkeon.com>:
>
> Thanks for this quick answer!
> By the way I just saw that SMX manages JMS internally for each endpoint
> defined. So why using JMS as a BC component into the SMX? it seems useless,
> isn'it? Maybe if I just used the following it should be ok :
>
> FilePoller -> Camel routing -> Transformation -> EIP Pipeline -> Bean Se to
> call external services
>
> Then this flow is asynchronous with the Pipeline and each message is kept
> until processed even if SMX is restarted? I am right?
>
> Regards.
>
>
> --
> View this message in context: http://www.nabble.com/How-to-process-messages-from-a-JMS-provider-into-SMX--tp25151415p25167070.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
Re: How to process messages from a JMS provider into SMX?
Posted by jcamus <jc...@parkeon.com>.
Thanks for this quick answer!
By the way I just saw that SMX manages JMS internally for each endpoint
defined. So why using JMS as a BC component into the SMX? it seems useless,
isn'it? Maybe if I just used the following it should be ok :
FilePoller -> Camel routing -> Transformation -> EIP Pipeline -> Bean Se to
call external services
Then this flow is asynchronous with the Pipeline and each message is kept
until processed even if SMX is restarted? I am right?
Regards.
--
View this message in context: http://www.nabble.com/How-to-process-messages-from-a-JMS-provider-into-SMX--tp25151415p25167070.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How to process messages from a JMS provider into SMX?
Posted by Chris Custine <ch...@gmail.com>.
I'm not entirely sure I understand your desired flow, but it seems like you
could do this one of two ways. You could easily define the entire route in
Camel and use the file and JMS components. Alternatively, you could use the
servicemix-file endpoint to send to the Camel route, and then from the camel
route back to servicemix and use the servicemix-jms provider endpoint to put
the message on the queue.
If you need another peice that reads the messages and does processing, you
use the servicemix-jms consumer endpoint and send it to a servicemix-bean
endpoint or whatever suits you.
Let me know if I misunderstood the question.
Chris
--
Chris Custine
FUSESource :: http://fusesource.com
My Blog :: http://blog.organicelement.com
Apache ServiceMix :: http://servicemix.apache.org
Apache Directory Server :: http://directory.apache.org
On Wed, Aug 26, 2009 at 9:09 AM, jcamus <jc...@parkeon.com> wrote:
>
> Hi,
> I need to have the following architecture :
>
> FilePoller -> CamelRouting -> JMS Provider -> <XXX>
>
> The <XXX> is a component that will regularly get the messages into the JMS
> queue and process them.
> How to do that into SMX ? Must I have a Bean-SE component with dedicated
> java code to manage that ? Or is a specific component already done for
> that?
> More generally, how into SMX is managed messages into a JMS queue? How can
> we simply process messages into a SMX JMS queue?
>
> Thanks for your help.
>
>
> --
> View this message in context:
> http://www.nabble.com/How-to-process-messages-from-a-JMS-provider-into-SMX--tp25151415p25151415.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>