If you have these kinds of complex requirements it is probably better to use
EJB container-managed persistence contexts.
The basic pattern is to have an SFSB driving the conversation, that owns an
extended PC. If you call methods of SLSB DAOs in the same txn, the extended PC
will propoagate. If
"[EMAIL PROTECTED]" wrote : If you have these kinds of complex requirements it
is probably better to use EJB container-managed persistence contexts.
|
| The basic pattern is to have an SFSB driving the conversation, that owns an
extended PC. If you call methods of SLSB DAOs in the same txn,
"t.skultinas" wrote : I have missed the point how SFSB Business component
owning EM can control SLSB DAO which also contains EM. Or this EM from Business
SFSB should be passed to DAO SLSB?
The PC is propagated with the transaction context. As long as you hit the SFSB
first, and pick up the exte
Gavin, thanks for advice, I'll test the PC is propagation with the transaction
context.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946280#3946280
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946280
Check the EJB spec for the rules.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946312#3946312
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946312
---
All the adv
"[EMAIL PROTECTED]" wrote : Check the EJB spec for the rules.
Gavin, your suggested persistence context propagation pattern is a little bit
complex in my case. ex. I have business components as SB that should not be
depended on Persistence API and DAO components which hides Persistence API as
S
Any ideas except application managed entity managers?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946815#3946815
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946815
---
Well, you knocked my idea on the head, in my view prematurely :-)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946851#3946851
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946851
---