EJB design: ejbFindByXXX() gives TransactionRolledbackException
- Posted by: Anil Kumar
- Posted on: April 23 2001 04:07 EDT
I am trying to implement an ejbFindByXXX(String xxx) method in a BMP entity bean. When I test the bean, the method returns an Enumeration as expected. But when I try to call the business methods with the Remote reference (obtained out of the elements in the Enumeraton), I get the TransactionRolledBack exception.
- ejbFindByXXX() gives TransactionRolledbackException by Richard Kenyon on April 23 2001 06:56 EDT
- ejbFindByXXX() gives TransactionRolledbackException by Tony Brookes on April 23 2001 11:46 EDT
- ejbFindByXXX() gives TransactionRolledbackException by qing yan on April 23 2001 11:47 EDT
I think the enumeration only contains the Primary Keys. You'll have to do a findByPrimaryKey on each element of the enumeration to get the remote interface.
I may be wrong on this...
You're right Rick, it returns Primary keys. Sucks a bit really, but that's how it is.
The client should receive remote ref. from ejbFindByXXX(),
something else wrong here..