Hi,

I am using Jboss-3.2.1 and EJB2.0
I have an entity bean and using this entity bean in some other session beans.
The transaction attribute type is  "Reuqired" in entity bean.
I want to use transaction attribute as "Required" in some cases and in other 
cases
I need to use different transaction say "RequiresNew" i.e. I want create a new 
instance of entity bean
for each transaction. How can I configure my entity bean with 2 different 
behaviors.
Is there any way that I can configure to work my entity bean with diff 
behaviors when I call entity bean in session bean.


Ex:

Let say entity bean as "A? and session beans are "B" and "C".

Case (1): B is calling A(entity bean) 
In this case I am running the entity bean under transaction "Required" 
attribute.


Case (2): C is calling A(entity bean) 
In this case I want to run entity bean under transaction "RequiresNew" 
attribute i.e. basically  I want to create a new transaction for each remote 
request.

Any help please.

Thanks.



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3861936#3861936

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3861936


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to