[jboss-user] [jBPM] - Re: Write records on jBoss datasource using hibernate

Maciej Swiderski do-not-reply at jboss.com
Fri Jan 4 10:43:42 EST 2013


Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: Write records on jBoss datasource using hibernate"

To view the discussion, visit: https://community.jboss.org/message/787632#787632

--------------------------------------------------------------
alright in hibernate.cfg.xml remove following entries

<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://10.21.101.175:3306/jbpm5</property>
<property name="connection.pool_size">5</property>


and then add this one:

<property name="hibernate.connection.datasource">java:/jdbc/jbpm-ds</property>

another thing is that your persistence.xml has some weird configs like on one missing the provider element on the other data source element. Might be good to configure it in consistent way to avoid troubles with it. Unless you have done that on purpose that I am not aware of  :) 

HTH
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/787632#787632]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130104/0c5912dd/attachment.html 


More information about the jboss-user mailing list