[jboss-user] [jBPM] New message: "Re: TaskService issue"
Santanu Saraswati
do-not-reply at jboss.com
Fri Jan 15 07:18:42 EST 2010
User development,
A new message was posted in the thread "TaskService issue":
http://community.jboss.org/message/520272#520272
Author : Santanu Saraswati
Profile : http://community.jboss.org/people/saraswati.santanu
Message:
--------------------------------------------------------------
I believe, if you need to use jta transaction manager and data source in a server managed environment then this configuration is not good. You should not give db driver, db url etc to hibernate. They should be configured in the server. And the data source and tx manager configured in server should be provided to hibernate.
So instead of the following:
<property name="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost/mydb</property>
<property name="hibernate.connection.username">username</property>
<property name="hibernate.connection.password">password</property>
you should be using something like:
*+<property name="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</property>+*
*+<!--Provide the actual data source name you have configured here-->
+*
*+<property name="connection.datasource">java:comp/jdbc/MySQLDataSource</property>+*
*+<property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>+*
*+<!--Provide the actual tx manager name you have configured here-->
<property name="jta.UserTransaction">java:comp/UserTransaction</property>+*
Give the actual datasource and tx manager JNDI name that you configured.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/520272#520272
More information about the jboss-user
mailing list