users@glassfish.java.net

Re: Environment per Webapplication deployment

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Wed, 23 May 2007 11:29:31 -0700

glassfish_at_javadesktop.org wrote On 05/21/07 04:23,:

>Hi,
>I would like to switch from tomcat to glassfish, mainly using it as a servlet container. I read here
>http://forums.java.net/jive/thread.jspa?messageID=206772&#206772
>that there is ongoing work to support deployment specific configuration of web applications (without repackageing them).
>But as I read here:
>http://forums.java.net/jive/thread.jspa?messageID=85039&tstart=0
>http://forums.java.net/jive/thread.jspa?threadID=19592
>http://forum.java.sun.com/thread.jspa?threadID=5020966
>there is still missing support for setting configuration parameters for each deployment. (Seriously, repackaging is not a real option)
>
>Did I miss the place where I can configure the JNDI context for each deployment without hassling around with config files in the war?
>
>Or am I completely misguided and this is not the way to go for configuring bootstrap values for web applications? (In fact it's part of the tomcat tutorial http://tomcat.apache.org/tomcat-5.5-doc/config/context.html#Environment%20Entries )
>
>Any feedback or ideas are very appreciated!
>
>

See

  https://glassfish.dev.java.net/issues/show_bug.cgi?id=2439
  ("Add support for context.xml")

Let us know if this addresses your requirements.

Thanks,


Jan