You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by william kane <wi...@gmail.com> on 2006/06/20 11:54:49 UTC
Routing logic using jms:endpoint
Hi,
I am trying to use servicemix-jms component as consumer that will read
messages from a external JMS queue and route the messages to a provider
component that will invoke a webservice.
I have used xbean.xml( for my jms:endpoint) and jbi.xml the create my su and
sa.
Can anyone please let me know the attribute that i need to set in
jms:endpoint that will specfy the name of the destination component to
which the NMR should route the message?
Thanks in advance,
William kane
Re: Routing logic using jms:endpoint
Posted by william kane <wi...@gmail.com>.
Thanks Guillaume for that clarification.
On 6/20/06, Guillaume Nodet <gn...@gmail.com> wrote:
>
> On 6/20/06, william kane <wi...@gmail.com> wrote:
> >
> > Thanks Guillaume,
> > Please let me know the following my understanding as stated below is
> > right.
> >
> > 1. JMS component picks up messages from the Queue based on the queue
> > name specified in the jmsProviderDestinationName attribute of the
> > jms:endpoint
>
>
> Right. You can also specify a jndiDestinationName
>
> 2. Messages are routed to a provider service endpoint (specified
> > using targetInterfaceName/targetService/targetEndpoint attirbute in
> the
> > jms:endpoint) the thru the NMR .
>
>
> Right. If you ommit them, the service / endpoint attributes will be used.
> See http://servicemix.goopen.org/site/servicemix-jms.html
>
> Cheers,
> Guillaume Nodet
>
> Thanks again,
> > William
> >
> > On 6/20/06, Guillaume Nodet <gn...@gmail.com> wrote:
> > >
> > > You can specify either targetInterfaceName or targetService (plus
> > optional
> > > targetEndpoint), which will identify the target interface / service /
> > > endpoint. If you do not specify these, the component will assume that
> > > exchanges should be sent to the service/endpoint name specified on the
> > > jms:endpoint.
> > > Note that a jbi exchange is not sent to a component but to a jbi
> > endpoint
> > > (which may be selected implicitly if you use an interface or a service
> > > name).
> > >
> > > See http://servicemix.goopen.org/site/servicemix-jms.html (sorry, but
> we
> > > currently have problems with code examples on the web site...)
> > >
> > > Cheers,
> > > Guillaume Nodet
> > >
> > > On 6/20/06, william kane <wi...@gmail.com> wrote:
> > > >
> > > > Hi,
> > > > I am trying to use servicemix-jms component as consumer that will
> read
> > > > messages from a external JMS queue and route the messages to a
> > provider
> > > > component that will invoke a webservice.
> > > > I have used xbean.xml( for my jms:endpoint) and jbi.xml the create
> my
> > su
> > > > and
> > > > sa.
> > > > Can anyone please let me know the attribute that i need to set in
> > > > jms:endpoint that will specfy the name of the destination component
> > to
> > > > which the NMR should route the message?
> > > > Thanks in advance,
> > > > William kane
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Re: Routing logic using jms:endpoint
Posted by Guillaume Nodet <gn...@gmail.com>.
On 6/20/06, william kane <wi...@gmail.com> wrote:
>
> Thanks Guillaume,
> Please let me know the following my understanding as stated below is
> right.
>
> 1. JMS component picks up messages from the Queue based on the queue
> name specified in the jmsProviderDestinationName attribute of the
> jms:endpoint
Right. You can also specify a jndiDestinationName
2. Messages are routed to a provider service endpoint (specified
> using targetInterfaceName/targetService/targetEndpoint attirbute in the
> jms:endpoint) the thru the NMR .
Right. If you ommit them, the service / endpoint attributes will be used.
See http://servicemix.goopen.org/site/servicemix-jms.html
Cheers,
Guillaume Nodet
Thanks again,
> William
>
> On 6/20/06, Guillaume Nodet <gn...@gmail.com> wrote:
> >
> > You can specify either targetInterfaceName or targetService (plus
> optional
> > targetEndpoint), which will identify the target interface / service /
> > endpoint. If you do not specify these, the component will assume that
> > exchanges should be sent to the service/endpoint name specified on the
> > jms:endpoint.
> > Note that a jbi exchange is not sent to a component but to a jbi
> endpoint
> > (which may be selected implicitly if you use an interface or a service
> > name).
> >
> > See http://servicemix.goopen.org/site/servicemix-jms.html (sorry, but we
> > currently have problems with code examples on the web site...)
> >
> > Cheers,
> > Guillaume Nodet
> >
> > On 6/20/06, william kane <wi...@gmail.com> wrote:
> > >
> > > Hi,
> > > I am trying to use servicemix-jms component as consumer that will read
> > > messages from a external JMS queue and route the messages to a
> provider
> > > component that will invoke a webservice.
> > > I have used xbean.xml( for my jms:endpoint) and jbi.xml the create my
> su
> > > and
> > > sa.
> > > Can anyone please let me know the attribute that i need to set in
> > > jms:endpoint that will specfy the name of the destination component
> to
> > > which the NMR should route the message?
> > > Thanks in advance,
> > > William kane
> > >
> > >
> >
> >
>
>
Re: Routing logic using jms:endpoint
Posted by william kane <wi...@gmail.com>.
Thanks Guillaume,
Please let me know the following my understanding as stated below is right.
1. JMS component picks up messages from the Queue based on the queue
name specified in the jmsProviderDestinationName attribute of the
jms:endpoint
2. Messages are routed to a provider service endpoint (specified
using targetInterfaceName/targetService/targetEndpoint attirbute in the
jms:endpoint) the thru the NMR .
Thanks again,
William
On 6/20/06, Guillaume Nodet <gn...@gmail.com> wrote:
>
> You can specify either targetInterfaceName or targetService (plus optional
> targetEndpoint), which will identify the target interface / service /
> endpoint. If you do not specify these, the component will assume that
> exchanges should be sent to the service/endpoint name specified on the
> jms:endpoint.
> Note that a jbi exchange is not sent to a component but to a jbi endpoint
> (which may be selected implicitly if you use an interface or a service
> name).
>
> See http://servicemix.goopen.org/site/servicemix-jms.html (sorry, but we
> currently have problems with code examples on the web site...)
>
> Cheers,
> Guillaume Nodet
>
> On 6/20/06, william kane <wi...@gmail.com> wrote:
> >
> > Hi,
> > I am trying to use servicemix-jms component as consumer that will read
> > messages from a external JMS queue and route the messages to a provider
> > component that will invoke a webservice.
> > I have used xbean.xml( for my jms:endpoint) and jbi.xml the create my su
> > and
> > sa.
> > Can anyone please let me know the attribute that i need to set in
> > jms:endpoint that will specfy the name of the destination component to
> > which the NMR should route the message?
> > Thanks in advance,
> > William kane
> >
> >
>
>
Re: Routing logic using jms:endpoint
Posted by Guillaume Nodet <gn...@gmail.com>.
You can specify either targetInterfaceName or targetService (plus optional
targetEndpoint), which will identify the target interface / service /
endpoint. If you do not specify these, the component will assume that
exchanges should be sent to the service/endpoint name specified on the
jms:endpoint.
Note that a jbi exchange is not sent to a component but to a jbi endpoint
(which may be selected implicitly if you use an interface or a service
name).
See http://servicemix.goopen.org/site/servicemix-jms.html (sorry, but we
currently have problems with code examples on the web site...)
Cheers,
Guillaume Nodet
On 6/20/06, william kane <wi...@gmail.com> wrote:
>
> Hi,
> I am trying to use servicemix-jms component as consumer that will read
> messages from a external JMS queue and route the messages to a provider
> component that will invoke a webservice.
> I have used xbean.xml( for my jms:endpoint) and jbi.xml the create my su
> and
> sa.
> Can anyone please let me know the attribute that i need to set in
> jms:endpoint that will specfy the name of the destination component to
> which the NMR should route the message?
> Thanks in advance,
> William kane
>
>