dev@glassfish.java.net

WebService ContextRootUri

From: Munaf Sahaf <munaf.sahaf_at_gmail.com>
Date: Mon, 29 Mar 2010 12:30:53 -0400

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