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.<br>
<br> <jta-data-source>java:/comp/env/worDS</jta-data-source><br><br> <!-- TRANSACTION FOR JBOSS --><br> <property name="hibernate.transaction.manager_lookup_class"<br><div id=":1yq">
value="org.hibernate.transaction.JBossTransactionManagerLookup" /><br>
</div><br>Do you use the whole JBoss AS or only its transaction manager? If the latter case, you can still use Bitronix datasource or others (like Apache Tomcat JDBC Connection Pool)<br><br>if using Bitronix you can config it like this: <a href="http://docs.codehaus.org/display/BTM/ResourceLoader2x">http://docs.codehaus.org/display/BTM/ResourceLoader2x</a><br>
if using Apache Tomcat JDBC Connection Pool, you can config it like this: <a href="http://people.apache.org/~fhanik/tomcat/jdbc-pool.html">http://people.apache.org/~fhanik/tomcat/jdbc-pool.html</a><br><br>All of these have no code, only config files.<br>
<br><div class="gmail_quote">On Thu, May 12, 2011 at 9:56 PM, loumimi <span dir="ltr"><<a href="mailto:moundir.jamal-ext@sgcib.com">moundir.jamal-ext@sgcib.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>
<br>
I'm trying to persist my workflow into an oracle db, I want to use Jboss<br>
transaction manager like you instead of bitronix. It doesn't work with<br>
bitronix transaction manager !<br>
<br>
Do you have the code that create your data source java:/comp/env/worDS and<br>
the jndi.properties<br>
With Bitronix I use<br>
PoolingDataSource ds = new PoolingDataSource();<br>
ds.setUniqueName("jdbc/DBD02");<br>
ds.setClassName("oracle.jdbc.xa.client.OracleXADataSource");<br>
ds.setMaxPoolSize(3);<br>
ds.setAllowLocalTransactions(true);<br>
ds.getDriverProperties().put("user", "XXX");<br>
ds.getDriverProperties().put("password", "xxxx");<br>
ds.getDriverProperties().put("URL",<br>
"jdbc:oracle:thin:@gfxdevdb01.fr.world.xxx:1567:DBD02");<br>
ds.init();<br>
I did not find the code to create a jboss data source !<br>
and in jndi.properties<br>
java.naming.factory.initial=bitronix.tm.jndi.BitronixInitialContextFactory<br>
<br>
Thank you very much for your help<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Drools-Human-Task-Service-Persistence-tp1868778p2931851.html" target="_blank">http://drools.46999.n3.nabble.com/Drools-Human-Task-Service-Persistence-tp1868778p2931851.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>唐睿 研发部<br>深圳市中昱达信息技术有限责任公司<br>电话:0755-26966586-804<br>传真:0755-26966586-802<br>手机:86-18688827156<br>网址:<a href="http://www.zyeeda.com/" target="_blank">www.zyeeda.com</a><br>
地址:深圳市罗湖区金塘街48号蔡屋围丽晶大厦南座1206(518010)<br><br>本邮件(包括任何附件)含有专供明确的个人和目的使用的机密信息,并受法律保护。如果您并非指定收件人,请立即删除此邮件及其附件(如有),并勿使用、披露、复制或分发此邮件或据此采取任何行动。<br><br>Copyright
© 2011 ZYEEDA CO., LTD. ALL RIGHTS RESERVED 中昱达公司 版权所有<br>