| Author |
Question on Extended Persistence context
|
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8446
|
|
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
Posts: 41
|
|
|
Yes. That is correct. It on the JPA spec section 5.6.2
|
 |
Mihai Radulescu
Ranch Hand
Joined: Sep 18, 2003
Posts: 912
|
|
Hi,
The extend persistence context can be used only from the Stateful Bean.
Regards,
Mihai
|
SCJP, SCJD, SCWCD
|
 |
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8446
|
|
|
Interesting to try that in a Stateless bean and see what happens. Will do that today!
|
 |
Mihai Radulescu
Ranch Hand
Joined: Sep 18, 2003
Posts: 912
|
|
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
|
 |
 |
|
|
subject: Question on Extended Persistence context
|
|
|