JBoss « Transaction « JPA Q&A





1. Controlling Jboss rollback after Hibernate exception    stackoverflow.com

HI All, I am trying to save name, address, email information using Hibernate...sometimes there is an exception thrown by Hibernate, this causes JBoss to rollback the full transaction! I do not want ...

2. Best way to manage transactions    stackoverflow.com

I've the JBoss and Hibernate based system. And I need to process two long operations. Operations can be probably longer than transaction's timeout. It operations are persists many-many entities, in two different ...

3. hibernate transaction safety (with, without JBoss)    stackoverflow.com

I am currently using just Hibernate and tomcat (no JBoss), and have hibernate transactions which I'm not clear on what transaction safety level I'm actually using, especially for those which read ...

4. Hibernate JBoss Transaction    coderanch.com

Thanks for the reply, yes, you are correct is it most assuredly some type of trouble with the Hibernate Transaction API and the JBoss EJB transaction manager. I am using CMT. What baffles me is the fact that Hibernate specifies that it is supposed to be working transparently with any App server's transaction. But it seems that it is in error? ...

5. jboss transactions and hibernate    coderanch.com

6. Jboss + Hibernate + unclosed Transaction Exception    coderanch.com

Hello Ranchers, i am getting following exception on server 08/06/2008 16:00:23,804 WARN [ConnectionManager] unclosed connection, forgot to call close() on your session? 08/06/2008 16:00:33,350 WARN [TransactionImpl] XAException: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=e5cen11uiadm200.east5.247realmedia.com/233365, BranchQual=, localId=233365] errorCode=XA_UNKNOWN(0) org.jboss.resource.connectionmanager.JBossLocalXAException: Trying to start a new tx when old is not complete! old: XidImpl[FormatId=257, GlobalId=e5cen11uiadm200.east5.247realmedia.com/233360, BranchQual=29, localId=233360], new XidImpl[FormatId=257, GlobalId=e5cen11uiadm200.east5.247realmedia.com/233365, BranchQual=1, localId=233365], flags 0 at org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource.start(TxConnectionManager.java:646) at org.jboss.tm.TransactionImpl$Resource.startResource(TransactionImpl.java:1952) at ...

7. Hibernate exception causes Jboss to rollback    coderanch.com

HI All, I am trying to save name, address, email information using Hibernate in 1 transactrion...sometimes there is an exception thrown by Hibernate, this causes JBoss to rollback the full transaction, even though I have a catch for the hibernate exception. I would like for just the bad data for example email to not be saved to the database and the ...

8. Rollback issue with Hibernate in JBoss    coderanch.com

Lets say i have 100 rows to insert and the 100th item has an error (eg a value to big for column). When the commit is executed an exception is thrown and rollback is called. However, the first 99 records are still being persisted to the database and not being rolledback. I am using an oracle database and running in a ...

9. Jboss / JTA / Multiple Database Configuration Example    forum.hibernate.org

Hello friends - For the life of me, I've been struggling to find a good example somewhere of a configuration example for setting up a situation using Hibernate to talk to multiple databases and wrap everything up in a JTA transaction. My business case is this: 1) Goto SqlServer. Get some values where exportedSw == false. 2) Based on those values, ...





10. Problems with Transactions and JBoss    forum.hibernate.org

Hi! I'm using JBoss 3.0.3 with Hibernate 2.1beta3 and Struts 1.1 The code tx = session.beginTransaction(); raises the following error: 2003-09-16 18:08:28,437 ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[action]: Servlet.service() for servlet action threw exception javax.servlet.ServletException: Could not find UserTransaction in JNDI: : UserTransaction not bound My jboss-service.xml looks like this: jboss.jca:service=RARDeployer jboss.jca:service=LocalTxCM,name=MySqlTestDS

17. SchemaUpdate with JBoss getting You cannot commit    forum.hibernate.org

Hey all- I am using Hibernate inside of JBoss. My hibernate.cfg.xml uses a datasource I have specified in JBoss. In my code I am trying to execute a SchemaUpdate execute on the config object to build the tables I have in my config, but not yet in my db. When it in JBoss I get this error: 11:43:52,659 INFO [Dialect] Using ...

18. Hibernate + JBoss + Transaction/Session scope    forum.hibernate.org

19. Configure JBoss to use JTA. Hibernate is configured as .har    forum.hibernate.org

Hibernate version: 2.1.6 Name and version of the database you are using: Oracle8 I have configured Hibernate in JBoss as a .har. All the hbm and DAO files are in the .har including the hibernate-service.xml in the META-INF folder. When a client makes a query request, the results are properly queried and send back to the client. But when trying to ...

20. Transaction XAException on JBoss-3.2.3    forum.hibernate.org

Author Message Mortiferatu Post subject: Transaction XAException on JBoss-3.2.3 Posted: Fri Nov 26, 2004 1:57 pm Newbie Joined: Fri Nov 26, 2004 1:27 pm Posts: 1 Hibernate version: Hibernate 2.1.6 using JBoss datasource (see mysql-ds.xml below) Mapping documents: See below please Code between sessionFactory.openSession() and session.close(): See below please Full stack trace of any exception that occurs: See below ...

21. Transaction problem Jboss + hibernate    forum.hibernate.org

Newbie Joined: Tue Dec 07, 2004 3:40 am Posts: 2 Hibernate version:2.1.7c Mapping documents: Code between sessionFactory.openSession() and session.close():see below Full stack trace of any exception that occurs: Name and version of the database you are using:PostgreSQL 7.3.1 windows The generated SQL (show_sql=true): Debug level Hibernate log excerpt: Hi, we started to use Jboss 3.2.6 with hibernate 2.1.7c. Everything is working ...

22. Hibernate3/JBoss4 JTA rollback not performed    forum.hibernate.org

Hi, I am using Hibernate inside the JBoss server. Referring to the Documentation, the following fragment of code (inside a Stateless Beans) should use the JTA without having code to deal with transactions. The method uses "RequiresNew". I was expecting hibernate not to store the dataset into the DB, but the user has been made persistent, although the Transaction is marked ...

23. Intercepting starting a transaction with Hibernate + JBoss    forum.hibernate.org

Hi, I am using the latest JBoss 4.0.3 final release with Hibernate 3.1 beta 3 embedded in my application. We use EJB3 session beans and I am using CMT with getCurrentSession(). I need to intercept the start of each database transaction and execute a stored-procedure call. I need to do this only when a new database transaction has been started. The ...

24. Hibernate and JBoss Transactions    forum.hibernate.org

25. bullshit JBoss JTA transactions with Hibernate persistance    forum.hibernate.org

I think I am fairly smart guy, but the transaction management in Hibernate with JBoss is ****** obscure. On a side note I am sick, sick, sick to death of smart ass authors and online article gurus writing a few paragraphs on how to do xyz with 'snippets'. Read my lips: POST A WORKING EXAMPLE (or get out of my google ...

26. Hibernate and JBOSS JTA    forum.hibernate.org

Author Message smithbstl Post subject: Hibernate and JBOSS JTA Posted: Fri Aug 04, 2006 5:31 pm Beginner Joined: Fri Jul 28, 2006 12:01 pm Posts: 21 Using Hibernate 3.1 with JBoss 4.0.4.GA and JTA transactions. I can only get the first transaction to successfully update the database. All subsequent transactions never make it to the database. Hiberate appears to ...

27. Transactions and JBoss    forum.hibernate.org

To answer my own question. From what I can tell if I use sessionFactory.getCurrentSession() it will retrive the session bounded to the JTA. Now I have my beans configured to use container managaged transations. So JBoss should create the JTA as configured and the getCurrentSession() will bind to it. No Idea if thats correct.

28. Optimistic locking & JBoss    forum.hibernate.org

Hibernate 3.1, Jboss 4.0.3SP1 I'm trying to get optimistic locking to work, but with no luck. I'm using Jboss cache 1.4. Configuration of cache and session factory: Code: LOCAL org.jboss.cache.JBossTransactionManagerLookup

29. getCurrentSession and Jboss/JTA    forum.hibernate.org

Newbie Joined: Wed Jun 20, 2007 8:22 pm Posts: 2 I am trying to have Jboss (4.2.2) and hibernate work together with JTA. I've poured through the hibernate and jboss wikis/forums/ref docs and I've seen this exception mentioned in some threads, but never resolved. I feel like I am just missing a simple setting or step. Any help would be appreciated. ...

30. JBoss. JTA transaction, hibernate    forum.hibernate.org

Author Message kadlecp Post subject: JBoss. JTA transaction, hibernate Posted: Wed Jan 23, 2008 3:54 pm Newbie Joined: Wed Jan 23, 2008 12:54 pm Posts: 3 Hello, I use JBoss-4.2.1.GA with default hibernate jars, hibernate-core 3.2.4.sp4, hibernate-entitymanager 3.2.1.GA, hibernate annotation 3.2.1.GA. I parallelly persist entities in a message driven bean in scope of one global JTA transaction. I have ...

31. JBoss Hibernate transaction problem    forum.hibernate.org

/** * An example business method * * @ejb.interface-method view-type = "remote" * @ejb.transaction type = "Required" * * @throws EJBException Thrown if method fails due to system-level error. */ ...

32. Problem with JBoss/Hibernate and non-JTA Transaction Manager    forum.hibernate.org

This has been posted on the JBoss forum as well, but we figured it would be worth posting it here as well in case anyone who's used Hibernate and JBoss had any suggestions. We are seeking advice for sharing 2nd-level cache between cluster nodes using Tomcat, Spring, and Hibernate. If you have been successful doing this, we'd appreciate hearing from you. ...

33. Two transactions in one session under JBoss    forum.hibernate.org

Newbie Joined: Thu Nov 20, 2008 3:30 pm Posts: 1 I need to implement two transactions in one session and all the time I get Session is Closed! exception while beginning the second transaction. I want to set the property hibernate.transaction.auto_close_session = false, but can not. We have Hibernate configured as mbean under Jboss and all hibernate properties are configured in ...

34. JBoss hibernate transaction commit    forum.hibernate.org

hi, i am struggling with hibernate operations in spring environment on a jboss 4 appserver. my problem is that i would like to see hibernate save() results immediately in the database, but i only see them if i shut down jboss. i have already tried getHibernateTemplate().flush(), setting flushmode to auto, etc. please help me if you have any ideas. i have ...

35. Hibernate pesistence causes JBoss to rollback    forum.hibernate.org

HI All, I am trying to save name, address, email information using Hibernate...sometimes there is an exception thrown by Hibernate, this causes JBoss to rollback the full transaction! I do not want this to happen, if there is a Hibernate exception saving email... then I just want the email bit to rollback not the entire, name, address, email to rollback -which ...