On Mon, Apr 7, 2008 at 5:51 PM, Andrea Zoppello <[EMAIL PROTECTED]> wrote:

> Yes it's ok,
>
> But i need to understand this also for my code generator too:
>
> suppose i've my bean configured as:
>
>
> <beans xmlns:bean="http://servicemix.apache.org/bean/1.0";>
>
>  <bean:endpoint service="test:endpoint" endpoint="endpoint"
> bean="#listenerBean"/>
>
>  <bean id="listenerBean"
> class="org.apache.servicemix.bean.beans.ListenerBean"/>
>
> </beans>
>
>
> It's uri in nmr is "service:test:endpoint" right??? so for example i could
> use "test:endpoint" as a destinationService attribute in
> another endpoint right???


Well, the URI is not the definite data that's used to route the exchange.
I think we could reuse the ExchangeTarget from servicemix-eip maybe ?
Anyway, the endpoint above could be addressed using:
   service:test:endpoint
or
  endpoint:test:endpoint:endpoint
Both would be valid, and the second one is unique in the NMR (because you
could define several endpoints with the same service name).



>
>
> Is there already a JIRA on the porting or should i open a new one, i'll
> attach my BeanTransformComponentSupport
> so you can look at it.


There's none yet, so please create it.


>
> Andrea
>
>
> Guillaume Nodet ha scritto:
>
>  This property should be already set.  This is done in servicemix-common
> > AsyncBaseLifeCycle class IIRC, so you should not worry about this one.
> >
> > On Mon, Apr 7, 2008 at 4:58 PM, Andrea Zoppello <[EMAIL PROTECTED]>
> > wrote:
> >
> >
> >
> > > Hi All,
> > >
> > > I'm trying to develop a base smx bean deployable pojos reflecting the
> > > features of the old
> > > TransformComponentSupport class.
> > >
> > > It seems to be very easy, but i still have two problems that i do not
> > > understand very well
> > >
> > > 1) when i'm going to deploy a smx-bean, which value have the service
> > > and
> > > the endpoint attributes??
> > > One of the problem i've is on that line of TransformComponentSupport:
> > >
> > > outExchange.setProperty(JbiConstants.SENDER_ENDPOINT, getService() +
> > > ":" +
> > > getEndpoint());
> > >
> > > Any idea??
> > >
> > > Obviousvly if i'll sove my problem i'm going to contribute my class to
> > > smx
> > > community :-)
> > >
> > > Andrea
> > >
> > >
> > >
> >
> >
> >
> >
> >
>
>


-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Reply via email to