[jboss-user] [Installation, Configuration & DEPLOYMENT] - running JBOSS with custom parameters
Smin3r
do-not-reply at jboss.com
Tue Aug 4 06:42:41 EDT 2009
Hi guys!
I need to run a JBOSS instance passing custom parameters at startup.
In particular I've configured a mysql-ds.xml file in this way:
<local-tx-datasource>
<jndi-name>${jboss.ds.name}</jndi-name>
<connection-url>jdbc:mysql://127.0.0.1:3306/jbossdb</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>admin</user-name>
admin
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
<type-mapping>mySQL</type-mapping>
</local-tx-datasource>
starting JBOSS with line:
./run.sh -c all -Djboss.ds.name=mydatasourcename
and checking my ds by administration console I've found a datasource called: ${jboss.ds.name} instead of expected mydatasourcename.
Maybe it's not possible to parametrize all properties in configuration .xml files?
thanks all.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247811#4247811
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247811
More information about the jboss-user
mailing list