users@glassfish.java.net

Re: How to programmatically deplyo a J2EE module?

From: Lukas Jungmann <Lukas.Jungmann_at_Sun.COM>
Date: Fri, 25 May 2007 17:29:05 +0200

glassfish_at_javadesktop.org wrote:
> Hi,
>
> I need to deploy a war, ear or ejb (and ideally an jar containing a jax-ws service) on glassfish programmatically. After deplyoment I need access to the URL under wich the web service is now available.
>
> I found some interfaces in the javadoc but no implementatins of them.
>
> So what's the expected way to do this? Is there a tutorial/example?
>

Maybe I don't get why do you need it but can't you just rely on the
specs which say that the URL for this web service:

@WebService()
public class MyService {...}

will be http://<host:port>/<contextRoot>/MyServiceService and for the
following one:

@WebService(serviceName="MyService")
public class MyService {...}

it will be http://<host:port>/<contextRoot>/MyService ?

--lj

> thanks in advance
> [Message sent by forum member 'wierob' (wierob)]
>
> http://forums.java.net/jive/thread.jspa?messageID=218887
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>