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