cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arul Dhesiaseelan <a...@fluxcorp.com>
Subject Re: Multiple addresses for a service
Date Wed, 09 Apr 2008 18:58:31 GMT
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


Mime
View raw message