Bugs item #1005213, was opened at 2004-08-07 12:55 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1005213&group_id=22866
Category: JBossTX Group: v3.2 Status: Open Resolution: None Priority: 5 Submitted By: Michael Remijan (mjremijan) Assigned to: Nobody/Anonymous (nobody) Summary: EJB DB transactions differ from 3.2.3 to 3.2.5 and higher Initial Comment: I have a simple local stateless session bean that uses two local entity beans to insert data into two seperate tables in the database. I've used Xdoclet 1.2.0 to generate all the deployement descriptors and all methods have "transaction=required". In version 3.2.3 ***Using Tomcat 5 from the docs/examples/tomcat directory!!!!*** The session bean uses the two entity beans successfully. The data gets inserted and the code continues. In version 3.2.5 and later (I tried 4.0.0DR4 and 4.0.0RC1) the transaction management seems to differ. The problem I have is that create() method of the first local entity bean gets excecuted but after that the second entity bean is never called. Instead, JBoss just hangs until a transaction timeout occurs. ----------------- 12:39:33,017 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl [Format Id=257, GlobalId=ladybug//17, BranchQual=] timed out. status=STATUS_ACTIVE ----------------- I've attached a zip file which should have everything in it to reproduce this problem. Here are the steps: --------------------------------------------------- JBoss 3.2.3 (This version had no problems working) --------------------------------------------------- (1) Create a database in PostgreSQL: $ initdb DSR (2) Execute the sql statements in "build_tables.sql" to create the tables (3) Copy jcache.jar, jdbc-pg74.214.jdbc3.jar to $jboss_home/server/tomcat5/lib (4) Copy postgres-ds.xml and 0.0.1-dsr.ear to $jboss_home/server/tomcat5/deploy (5) Make sure PostgreSQL is stared then start jboss. $jboss_home/bin/run.bat -c tomcat5 (6) Open a browserr to http://localhost:8080/homsuite. (7) Click "Become a member" on the right hand side. Fill out the form. (8) After you click "register" the DB information will be inserted and you'll be automatically logged in. --------------------------------------------------- JBoss 3.2.5 (This version **has** the problem) --------------------------------------------------- (1) Create a database in PostgreSQL: $ initdb DSR (2) Execute the sql statements in "build_tables.sql" to create the tables (3) Copy jcache.jar, jdbc-pg74.214.jdbc3.jar to $jboss_home/server/default/lib (4) Copy postgres-ds.xml and 0.0.1-dsr.ear to $jboss_home/server/default/deploy (5) Make sure PostgreSQL is stared then start jboss. $jboss_home/bin/run.bat (6) Open a browserr to http://localhost:8080/homsuite. (7) Click "Become a member" on the right hand side. Fill out the form. (8) After you click "register" the DB information will **not** be inserted and the browser will wait forever because the JBoss transaction is hung up and will eventually time out. Thanks, Michael ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1005213&group_id=22866 ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
