[JBoss-user] [Installation & Configuration] - Re: Deployment Descriptors & System Properties Subsitution

2004-06-25 Thread jardia
Hmmm,

did you actually test this in any of the standard deployment descriptors 
(application.xml, ejb-jar.xml, web.xml)?

I just tried it:

ejb-jar.xml

  |  
  |   testEnvEntry
  |   java.lang.String
  |   ${test.replaceme}
  |  
  | 
bean

  | System.out.println("!!! " + System.getProperty("test.replaceme"));
  | try
  | {
  |InitialContext ic = new InitialContext();
  |String test = (String)ic.lookup("java:comp/env/testEnvEntry");
  |System.out.println("!!! env entry = " + test);
  | }
  | catch(NamingException ne)
  | {
  |ne.printStackTrace();
  | }
  | 
run.bat

  | set JAVA_OPTS=%JAVA_OPTS% -Dtest.replaceme=REPLACED_VALUE
  | 
output

  | 15:36:39,171 INFO  [STDOUT] !!! REPLACED_VALUE
  | 15:36:39,171 INFO  [STDOUT] !!! env entry = ${test.replaceme}
  | 

The system property is set.
The reference to it in the deployment descriptor does not work.

Am i missing something?
Have others seen it work elswhere?
JBoss3.2.3

cheers


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839968#3839968

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839968


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: Deployment Descriptors & System Properties Subsitution

2004-06-09 Thread nrichards
Amazingly, it does work in most all the XML files.  I wouldn't recommend using it in 
your web.xml, but you certainly could if you wanted to.



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838247#3838247

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3838247


---
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user