This seems very tricky situation.
I don't know whether i am right in design
But ideally one should not have any business processes in Entity bean.
All business processes should be in session beans (statefull or stateless).
If one wants to create another entity beans from one particular method of entity bean
then this method should be in session bean which controlling main entity bean.
In your case what you can do is call stateless session bean in method of main entity bean
control transaction in that stateless session bean.
I am not sure whether container will allow this.But can try this if design changes is not possible.
Please let me know you get any better solution.
Regards
Vaibhav
-----Original Message-----
From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, September 20, 2001 12:29 PM
To: Vaibhav Bhomkar
Subject: Re: Bean managed transaction
Thanks Vaibhav
But in my entity bean If I am inserting in three tables(BMP) and I want to
rollback some transaction and not all , how to handle this situation. Can I
control transaction im my BMP
Vaibhav Bhomkar
<Vaibhav.Bhomkar@ORIGIN To: [EMAIL PROTECTED]
INDIA.COM> cc:
Sent by: A mailing list Subject: Re: Bean managed transaction
for Enterprise
JavaBeans development
<[EMAIL PROTECTED]
COM>
09/20/2001 12:20 PM
Please respond to
Vaibhav Bhomkar
No as per EJB spec 1.1 this not allowed.Only Session beans are allowed to
have bean managed transaction.Stateless session bean can have BMT
but they need to start and end transaction in same method call.
-----Original Message-----
From: Manish Syal [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, September 20, 2001 12:15 PM
To: [EMAIL PROTECTED]
Subject: Bean managed transaction
Can Entity bean use bean managed transaction????
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
of the message "signoff EJB-INTEREST". For general help, send email
to
[EMAIL PROTECTED] and include in the body of the message "help".
