The most intelligent Java IDE
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Reply Bookmark it! Watch this topic JavaRanch » Forums » Professional Certification » EJB Certification (SCBCD)
 
RSS feed
 
New topic
Author

Question on Extended Persistence context

Jothi Shankar Kumar
Ranch Hand

Joined: Sep 26, 2006
Messages: 7086

Guys,

Such a Persistencecontext is and should be used only in a Stateful Session Bean. Is this statement correct? Does the EJB 3.0 spec dictate like that?

SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Arun Rao
Ranch Hand

Joined: Jan 23, 2004
Messages: 40

Yes. That is correct. It on the JPA spec section 5.6.2
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Messages: 893

Hi,

The extend persistence context can be used only from the Stateful Bean.

Regards,
Mihai

SCJP, SCJD, SCWCD
Jothi Shankar Kumar
Ranch Hand

Joined: Sep 26, 2006
Messages: 7086

Interesting to try that in a Stateless bean and see what happens. Will do that today!

SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Messages: 893

Hi Jothi

The reason is the extended persistence context can exit only in the statefull benas is because the stale less can not take care of they status.

Regards,
Mihai



SCJP, SCJD, SCWCD
 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Professional Certification » EJB Certification (SCBCD)
 
RSS feed
 
New topic
IntelliJ open source

.