aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Application-managed persistence context in EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Application-managed persistence context in EJB" Watch "Application-managed persistence context in EJB" New topic
Author

Application-managed persistence context in EJB

Oliver Chua
Greenhorn

Joined: Feb 27, 2004
Posts: 29
Hi,

I'm following Mikalai Zaikin's SCBCD reviewer.
I'm trying to create an application-managed persistenace context in an EJB.

As far as I understood it, in EJB, for application-managed persistenace context,
the transaction-demarcation is still done by the container.
However, my test using Jboss is not being committed.

It stops at prePersist, and without any errors.
The test fails when it tries to retrieve the newly inserter

Could anybody give a clue why the transaction is not being committed?
Thanks!

Below are the files involved:

persistence.xml


Session Bean


Entity


Tester
Oliver Chua
Greenhorn

Joined: Feb 27, 2004
Posts: 29
Hi,

This seems to be a case of server caching.
It's now working.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Application-managed persistence context in EJB