dcsimg
javax.transaction.RollbackException
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Piet_Boeykens
Posted On:   Friday, July 5, 2002 12:34 AM

Hi, The problem : I have a method in a session bean that executes set-methods on 2 BMP entity beans. Before the execution of these methods I open a new usertransaction. After the methods I close the transaction with the commit()-method. The commit-statement activates the persistency manager of my application server (JBoss) and executes the ejbStore-methods of the entity-beans. So far so good. When one of the ejbStore methods fails because of a database exception the commit-instruction throws a javax.transaction.RollbackException. This exception does'nt containt the original database exception. My question : Is there anoth   More>>

Hi,

The problem :

I have a method in a session bean that executes set-methods on 2 BMP entity
beans.

Before the execution of these methods I open a new usertransaction.

After the methods I close the transaction with the commit()-method.

The commit-statement activates the persistency manager of my application server
(JBoss) and executes the ejbStore-methods of the entity-beans. So far so good.

When one of the ejbStore methods fails because of a database exception the commit-instruction
throws a javax.transaction.RollbackException.

This exception does'nt containt the original database exception.


My question :

Is there another possibility to view my database exception in the session bean
after the commit ?


Additonal information :

For my beans I use the required transaction attribute.


Thanx for your help,

Piet

   <<Less
About | Sitemap | Contact