• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Application-managed persistence context in EJB

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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

 
There is no "i" in denial. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic