| Author |
Question on Extended Persistence context |
Jothi Shankar Kumar
Ranch Hand
Joined: Sep 26, 2006
Messages: 7086
|
posted
|
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
|
posted
|
|
Yes. That is correct. It on the JPA spec section 5.6.2
|
 |
Mihai Radulescu
Ranch Hand
Joined: Sep 18, 2003
Messages: 893
|
posted
|
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
|
posted
|
|
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
|
posted
|
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 |
 |
 |
|
|
|