[jboss-user] [JCA/JBoss] - problem parsing datasources

Smin3r do-not-reply at jboss.com
Wed Aug 5 08:50:25 EDT 2009


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

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4248115#4248115

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4248115



More information about the jboss-user mailing list