users@glassfish.java.net

Re: java:comp/env problems

From: <glassfish_at_javadesktop.org>
Date: Mon, 03 Mar 2008 08:50:09 PST

Hi,

You just need to add an <env-entry> in web.xml. With most zip tools you can edit it in place without unzipping the .war. For this simple environment entry, don't use custom resource, or bean factory. If ant scripts to automate it if you want.

      <env-entry>
        <env-entry-name>solr/home</env-entry-name>
        <env-entry-type>java.lang.String</env-entry-type>
        <env-entry-value>/home/xxx/files</env-entry-value>
      </env-entry>

-cheng
[Message sent by forum member 'cf126330' (cf126330)]

http://forums.java.net/jive/thread.jspa?messageID=262014