• Post Reply Bookmark Topic Watch Topic
  • New Topic

Commit Options in EJB3  RSS feed

 
Marco Barenkamp
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

since EJB3 is completely different from CMP, I was wondering whether
the Commit Options of an AppServer (A,B and C) are still used,because
EJB3 itself has locking possibilities. Otherwise, the ejbLoad and ejbPost methods can still be used (annotated).

Any ideas?
 
Gustavo Sobral
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Marco!

I don't know if I will help you...Hope so...

I'm working on a project which is based on ADF Faces + EJB 3.0 (Session and Entity beans) and we decided to use CMP, but controlling transactions manually, in the business tier. The presesntation tier (ADF) accesses business tier through Session beans facades, which instantiates business objects (100 POJOs), which finally deal with persistence tier (EJB entity beans).

The manual transaction control is accomplished by annotating transaction management type in session facade bean:



The business objects are then responsible for invoking user transaction begin(), Commit() or rollback() methods.

FYI, we are using JDeveloper 10g (10.1.3) and Oracle Application Server 10g 10.1.3 for both development and production deployment.

Hope this helps you.

Sorry for my poor English.

Best Regards,

Gustavo
S�o Paulo - Brasil
 
Mike Keith
author
Ranch Hand
Posts: 304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Marco Barenkamp:
Hi,

since EJB3 is completely different from CMP, I was wondering whether
the Commit Options of an AppServer (A,B and C) are still used,because
EJB3 itself has locking possibilities. Otherwise, the ejbLoad and ejbPost methods can still be used (annotated).

Any ideas?


Hi Marco,

No, the commit options are not appropriate for the Java Persistence API. There is no defined pooling of entities, and caching is not defined in any prescriptive sense.

-Mike
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!