ejbFindByXXX() gives TransactionRolledbackException

Discussions

EJB design: ejbFindByXXX() gives TransactionRolledbackException

  1. Hi,

    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.

    Any help?

    Regards,
    Anil
  2. 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...

    Cheers,
    Rick
  3. You're right Rick, it returns Primary keys. Sucks a bit really, but that's how it is.

    Chz

    Tony
  4. The client should receive remote ref. from ejbFindByXXX(),
    something else wrong here..