4 Replies Latest reply on Aug 5, 2009 8:35 AM by Asd Asd

    running JBOSS with custom parameters

    Asd Asd Newbie

      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.