1 Reply Latest reply on Aug 5, 2009 10:52 AM by Peter Johnson

    problem parsing datasources

    Asd Asd Newbie

      Using JBOSS 5.1 and trying to parametrize e.g. datasource name, I get this log:

      21:25:16,455 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=${jboss.ds.name}' to JNDI name 'java:${jboss.ds.name}'


      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>

      and I start jboss instance with this line:


      ./run.sh -c all -Djboss.ds.name=mydatasourcename

      thanks all