On Wednesday 09 April 2008, Arul Dhesiaseelan wrote:
> Daniel Kulp wrote:
> > On Wednesday 09 April 2008, Benson Margulies wrote:
> >> A bit of googling got me nowhere here.
> >>
> >> I want to publish a service on both a http: address and a local:
> >> address. Two jaxws:endpoints? Can they point to the same
> >> #implementation bean?
> >
> > Yep.   It's the same as if you did:
> >
> > MyThing thing = new MyThingImpl();
> > Endpoint.publish(address1, thing);
> > Endpoint.publish(address2, thing);
>
> Dan,
>
> Does this work?
>
> MyThing thing1 = new MyThingImpl();
> MyThing thing2 = new MyThingImpl();
>
> Endpoint.publish(address1, thing1);
> Endpoint.publish(address2, thing2);
>
> When I invoke the service at address1, it should invoke thing1 and
> address2 should invoke thing2.
>
> Thanks!
> Arul


Yep.   That's exactly how it's supposed to work.


-- 
J. Daniel Kulp
Principal Engineer, IONA
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to