dev@glassfish.java.net

Re: WS JSR109 deployment. EJB vs WEB

From: Vijay Ramachandran <Vijay.Ramachandran_at_Sun.COM>
Date: Mon, 07 Aug 2006 08:46:58 -0700

Yes - there is no spec defined way to do this. So for a web endpoint, we
do http://host:port/<ctxt-root>/<url-pattern>. For ejb endpoint,
http://host:port/service-name/port. For ejb endpoints, you can override
the default URI by specifying endpoint-address-uri element in
sun-ejb-jar.xml

Hope this helps

Vijay

On Mon, 2006-08-07 at 03:30, Oleksiy Stashok wrote:
> Hi,
>
> ive taken simple ws example from J2EE-samples (endpoint.Hello), and
> found that if i deploy this WS as WEB app. - then its path is:
> * http://<host>:<port>/Hello/HelloService
> but if i add @Stateless annotation and deploy it as EJB - then path to
> WS is:
> http://<host>:<port>/HelloService/Hello
> is this correct behavior?
>
> WBR,
> Alexey.