users@glassfish.java.net

Re: [EJB] How to change URL path to WAR module?

From: Sahoo <Sahoo_at_Sun.COM>
Date: Sat, 18 Apr 2009 11:14:46 +0530

You can specify the context-root for each web app in your
META-INF/application.xml of your ear file. Do a search for some example
of the same. It's simple.

Sahoo

glassfish_at_javadesktop.org wrote:
> Hello. I have created an enterprise application using NetBeans (which comes with GlassFish). I created an EJB module (MyApp-ejb) and WAR (MyApp-war) module for my application.
>
> When running my application, I have to navigate my browser to http://localhost:8080/MyApp-war. I just wonder if it is possible to change the URL path to http://localhost:8080/MyApp?
>
> I just think the path with "-war" at the end is a bit ugly. :P
>
> Thank you very much.
> [Message sent by forum member 'graphitecube' (graphitecube)]
>
> http://forums.java.net/jive/thread.jspa?messageID=342645
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>