-
1. Re: Concurrent calls on stateful session bean
milowe Mar 3, 2004 3:29 AM (in response to chetana_vir)This is not allowed (EJB prohibits concurrent access to bean instances).
You could try to re-design your solution, maybe add an extra layer. -
2. Re: Concurrent calls on stateful session bean
chetana_vir Mar 4, 2004 6:36 AM (in response to chetana_vir)Hi milowe,
then what is the use of retrieving EJBObject from the SessionContext object. I think weblogic server allows concurrent calls to stateful bean. Does jboss doesn't support or it is not allowed at all. I am new to ejb please give me clear information.
chetana -
3. Re: Concurrent calls on stateful session bean
milowe Mar 4, 2004 7:01 AM (in response to chetana_vir)Its an EJB spec thing menaing its by default not allowed by any app server. Any client can have any number of EJBs references. Any single EJB instance can never accept concurrent calls to its business methods.
You are talking about the EJBObject from SessionContext in the tricky sequence :
EJB A -> EJB B -> EJB A
There are other cases when you want to pass a reference as a method argument or result.