Yep, that works. I don't think I would have
ever figured that out just from the JBI spec.
Pretty neat. It's a way for a component to query
for another component's endpoint, just based on
an XML fragment whose content is agreed upon by
consenting components (although the Relax NG
schema suggests a standard form). Thanks!

--
John Sloan           |  email [EMAIL PROTECTED]
Avaya Inc.           |  voice  +1 303 538 2746
1300 West 120th Ave. | office           B1-C46
Westminster CO 80234-2701 USA 

 

> -----Original Message-----
> From: Guillaume Nodet [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 19, 2006 2:51 PM
> To: [email protected]
> Subject: Re: Dynamic Endpoints vs. AbstractServiceEndpoint
> 
> To use dynamic endpoints, your component has to first resolve an
> endpoint reference using an EPR fragment.
>     ServiceEndpoint se = context.resolveEndpointReference(epr);
> This internally creates an 
> o.a.s.jbi.servicedesc.DynamicEndpoint class.
> You can use this endpoint as a target for a JBI exchange.
>    exchange.setEndpoint(se);
> ServiceMix accepts such endpoints as targets and will route your
> exchange to the resolved endpoint.  Such resolution will be performed
> by calling the resolveEndpointReference of installed components (see
> o.a.s.jbi.framework.Registry#resolveEndpointReference).
> 
> Cheers,
> Guillaume Nodet
> 
> On 4/19/06, Sloan, John L (John) <[EMAIL PROTECTED]> wrote:
> >
> > I've been toying with dynamic endpoints [ "JBI 1.0",
> > 5.4.4 and elsewhere ]. It looks like Broker.resolveAddress()
> > requires that dynamic endpoints be an instanceof the
> > ServiceMix-specific AbstractServiceEndpoint, and not an
> > instanceof ExternalEndpoint. The latter jives with my
> > understanding of 5.4.4, but Listing 2 of 5.4.4
> > would certainly lead me to believe that a JBI ESB
> > should be able to route with dynamic endpoints that
> > implement ServiceEndpoint. However, I've been confused
> > in the past, and am sure to be confused again in the
> > future, so it's likely I'm confused now.
> >
> > Any insight?
> >
> > --
> > John Sloan           |  email [EMAIL PROTECTED]
> > Avaya Inc.           |  voice  +1 303 538 2746
> > 1300 West 120th Ave. | office           B1-C46
> > Westminster CO 80234-2701 USA
> >
> >
> 
> 

Reply via email to