| Transactions [message #387785] |
Wed, 13 May 2009 06:57  |
Yolanda Messages: 5 Registered: July 2009 |
Junior Member |
|
|
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.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01936 seconds