-
15. Re: How does property substitution work for the jboss-esb.xm
tschungelbuch Oct 16, 2008 12:42 PM (in response to tschungelbuch)It is a test environment but not default it has its own name.
I do not have a line like
JAVA_OPTS="$JAVA_OPTS -DSTX_AQ_USER=user_name" -
16. Re: How does property substitution work for the jboss-esb.xm
tschungelbuch Oct 16, 2008 12:55 PM (in response to tschungelbuch)Ok, I have changed now in run.conf the lines according to your line above and it work!
The bus came up with no error message.
How can I now move those property values into another configuration file? -
17. Re: How does property substitution work for the jboss-esb.xm
kconner Oct 16, 2008 1:00 PM (in response to tschungelbuch)Okay, so you had not been defining the properties.
We now know that property substitution works so if you define the MBean in the conf/jboss-service.xml, referring to your property file, then it should work. -
18. Re: How does property substitution work for the jboss-esb.xm
tschungelbuch Oct 16, 2008 1:14 PM (in response to tschungelbuch)Would the content of the property file be like:
STX_AQ_USER=user_name STX_AQ_PASSWORD=password STX_AQ_SERVER=db.int.server.com STX_AQ_INSTANCE=dbtest STX_AQ_SCHEMA=schema_name STX_AQ_PORT=1521 STX_AQ_DRIVER=thin
or likeJAVA_OPTS="$JAVA_OPTS -DSTX_AQ_USER=user_name" JAVA_OPTS="$JAVA_OPTS -DSTX_AQ_PASSWORD=password" JAVA_OPTS="$JAVA_OPTS -DSTX_AQ_SERVER=db.int.server.com" JAVA_OPTS="$JAVA_OPTS -DSTX_AQ_INSTANCE=dbtest" JAVA_OPTS="$JAVA_OPTS -DSTX_AQ_SCHEMA=schema_name" JAVA_OPTS="$JAVA_OPTS -DSTX_AQ_PORT=1521" JAVA_OPTS="$JAVA_OPTS -DSTX_AQ_DRIVER=thin"
And in which MBean do I have to include it? In the one below?<mbean code="org.jboss.varia.property.SystemPropertiesService" name="jboss:type=Service,name=SystemProperties"> <attribute name="URLList">
-
19. Re: How does property substitution work for the jboss-esb.xm
kconner Oct 16, 2008 1:29 PM (in response to tschungelbuch)That's the right MBean and, IIRC, it takes normal java property files so you first version should work.
The -D version is just for running java command lines. -
20. Re: How does property substitution work for the jboss-esb.xm
tschungelbuch Oct 16, 2008 2:03 PM (in response to tschungelbuch)Now it works...
But when I look at the beginning of this threat the only difference is that I write the name now in capitals and not in lower case and with underline instead of a dot.
Maybe you may tell whether there is something else there I have missed.
But anyhow, thank you very much for your support.
I wish you a nice day.
Kind regards
Tschungelbuch