I'm not familiar with JBoss, but as I know, If you use JBoss as your tx manager, you should not create data sources by code, just config it in the JBoss way, and change your persistence.xml, just like what ram ram done.
<jta-data-source>java:/comp/env/worDS</jta-data-source>
<!-- TRANSACTION FOR JBOSS -->
<property name="hibernate.transaction.manager_lookup_class"
Hello,
I'm trying to persist my workflow into an oracle db, I want to use Jboss
transaction manager like you instead of bitronix. It doesn't work with
bitronix transaction manager !
Do you have the code that create your data source java:/comp/env/worDS and
the jndi.properties
With Bitronix I use
PoolingDataSource ds = new PoolingDataSource();
ds.setUniqueName("jdbc/DBD02");
ds.setClassName("oracle.jdbc.xa.client.OracleXADataSource");
ds.setMaxPoolSize(3);
ds.setAllowLocalTransactions(true);
ds.getDriverProperties().put("user", "XXX");
ds.getDriverProperties().put("password", "xxxx");
ds.getDriverProperties().put("URL",
"jdbc:oracle:thin:@gfxdevdb01.fr.world.xxx:1567:DBD02");
ds.init();
I did not find the code to create a jboss data source !
and in jndi.properties
java.naming.factory.initial=bitronix.tm.jndi.BitronixInitialContextFactory
Thank you very much for your help
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-Human-Task-Service-Persistence-tp1868778p2931851.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users