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
>
>