dev@glassfish.java.net

Re: WebService ContextRootUri

From: Munaf Sahaf <munaf.sahaf_at_gmail.com>
Date: Tue, 6 Apr 2010 09:02:17 -0400

Anybody has any inputs on this...??

On Mon, Mar 29, 2010 at 12:30 PM, Munaf Sahaf <munaf.sahaf_at_gmail.com> wrote:

> Currently we map list of webservices to ContextRootUri in Glassfish server
> and the ContextRootUri is derived from <endpoint-address-uri> as the first
> token or endpoint-address-uri (tokenized by '/'), so if first token of
> endpoint-address-uri of two different webservices is same they are mapped to
> same ContextRootUri eg. endpoint-address-uri='Services/MyService1/test' and
> endpoint-address-uri='Services/MyService2/test2' both have ContextRootUri=
> 'Services' and althought they might be in different projects they end up
> being mapped to the same ContextRootUri (Services) on the Glassfish Server.
> Now if we undeploy any of these two services the Server calls the dispose()
> method on both these services which disables the sercurity on both the
> Services.
>
> Do we really have to use unique ContextRootUri for each Webservice project
> or can we change the ContextRootUri to use full endpoint-address-uri to map
> the services in Glassfish Server??
>
> Regards,
> Munaf
>