Hello: I'm using jboss as a first approach to adopt java in my company with excellent results. I'm developing a SAP-Java webapp which is using a JNDI variable to determine the enviroment where SAP connections are taken from (DVT, QAT and PRT). To isolate this behavior I used a env-entry inside my web.xml descriptor file.
anonymous wrote : <env-entry> | <env-entry-name>SAPEnv</env-entry-name> | <env-entry-type>java.lang.String</env-entry-type> | <env-entry-value>DVT</env-entry-value> | </env-entry> The problem I'm facing is that everytime I deploy my application on each server I have to edit this value to point the correct SAP environment. My question is, how can I define a value inside server configuration, so I can't depend on web.xml to taje this value (I guess is JNDI related stuff, but I haven't find it googling)? I tried putting jboss-service.xml into ${jboss.server.default}/deploy using the example in http://wiki.jboss.org/wiki/Wiki.jsp?page=JNDIBindingServiceMgr And I didn't get success trying to lookup for urls/jboss-home. If this is the correct path, can somebody tell me how to get this value. Any help would be really appreciated. Regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955315#3955315 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955315 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user