[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.rt.eclipselink] Transactions

Hello
I have a problem with transactions.
I need to invoke a method of a SessionBean within a preUpdate event of an Entity.
public void preUpdate(DescriptorEvent event) {
Object orrFacade = new InitialContext().lookup("OrrFacadeEJB");
BigDecimal data = ((OrrFacade)orrFacade).getDataFromDB();
}
But if I do it I obtain this exception: "javax.transaction.SystemException: Only one single phase commit resource may be enlisted in a transaction"
How could I do it?
Thanks for your help:
Yolanda.