"signoff EJB-INTEREST"
> -----Original Message-----
> From: Kumar, Udaya
> Sent: Monday, April 23, 2001 4:43 PM
> To: [EMAIL PROTECTED]
> Subject: "signoff EJB-INTEREST"
>
> "signoff EJB-INTEREST"
>
> > -----Original Message-----
> > From: krithikav [SMTP:[EMAIL PROTECTED]]
> > Sent: Monday, April 23, 2001 3:25 PM
> > To: [EMAIL PROTECTED]
> > Subject: Doubt in Transaction attributes
> > Importance: High
> >
> > Hi,
> > I have two queries.
> > 1.I read in a book that once we invoke a method on a bean with the
> > transaction attribute(TX_BEAN_MANAGED), then we cannot call another
> method
> > that would involve it in a different transaction(or no transaction). If
> we
> > try to do that a java.rmi.RemoteException will be thrown. But I was able
> > to
> > invoke methods of beans with transaction attribute(TX_BEAN_MANAGED,
> > TX_NOT_SUPPORTED, TX_REQUIRED etc) from a method of a bean with
> > transaction
> > attribute (TX_BEAN_MANAGED). Can you explain which is correct - what I
> > read
> > in the book or what worked programatically for me( I am just worried if
> I
> > have made any mistake in the program and thatz why it is working)
> >
> > 2. This query is related to the one above. A manual says that when a
> > bean(say BeanA) with transaction attribute TX_BEAN_MANAGED calls a
> method
> > of
> > another bean(say BeanB), the transaction context is only associated with
> > the
> > bean that started it(that is Bean A) and not with the calling thread and
> > it
> > will not be managed by the container of BeanB.
> > So I understood that the changes to the database from BeanB method will
> > always be committed even if the BeanA rollsback. However when I tried to
> > verify it through my program, the database changes from BeanB commits if
> > has
> > a transaction attribute (TX_NOT_SUPPORTED) and it is rolledback when it
> > has
> > a transaction attribute(TX_REQUIRED) if the BeanA rollsback. Does this
> > mean
> > that the BeanA's transaction context was propogated to BeanB?
> >
> > Regards,
> > Krithika
> >
> >
> ==========================================================================
> > =
> > 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".
> WARNING: The information in this message is confidential and may be
> legally
> privileged. It is intended solely for the addressee. Access to this
> message
> by anyone else is unauthorised. If you are not the intended recipient,
> any
> disclosure, copying, or distribution of the message, or any action or
> omission taken by you in reliance on it, is prohibited and may be
> unlawful.
> Please immediately contact the sender if you have received this message in
> error. Thank you.----------------- HCL Perot Systems
>
> ==========================================================================
> =
> 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".
WARNING: The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this message
by anyone else is unauthorised. If you are not the intended recipient, any
disclosure, copying, or distribution of the message, or any action or
omission taken by you in reliance on it, is prohibited and may be unlawful.
Please immediately contact the sender if you have received this message in
error. Thank you.----------------- HCL Perot Systems
===========================================================================
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".