The Transaction should be performed in the session bean only.I dont know how
the container handle transaction for a servlet. Since you are writing the
critical code in the servlet.
Regards
Ashwani Kalra
E-Comm Group
NIIT Ltd. India
> ----------
> From: Dheeraj Goswami (CTS)[SMTP:[EMAIL PROTECTED]]
> Reply To: A mailing list for Enterprise JavaBeans development
> Sent: Thursday, July 13, 2000 10:46 AM
> To: [EMAIL PROTECTED]
> Subject: Regarding EJB Record Access Locking
>
> Hi friends,
> My problem is, I m accessing a perticular row thru entity bean, in a
> session
> bean, if during the transaction, if i fire a stored procedure thru a
> servlet
> then this servlet is either able to update that same row( this is the case
> when i update thru SQL prompt ) or if not able to, then it does not throw
> any exception and quitely returns, means it seems that there is no effect
> of
> bean's transaction. I tried this with both programmatic transaction( using
> javax.jts.UserTransaction ) and declarative transaction with the titest
> isolation level ie TRANSACTION_SERIALIZABLE and transaction attribute as
> TX_REQUIRED. How does entity bean support record level locking??
>
> How can I, let the servlet know if it is not able to update( I always do
> printStackTrace() in all exceptions so...)
>
> Any idea how to tackle this prob??
>
> thanx in advance
>
> Dheeraj Goswami
> Programmer Analyst
> Cognizant Technology Solutions India Ltd
> Phone - 6691960, 6691960, Extn - 2277
> [ A ship is safest at the harbour but it's not where it is supposed to be
> ]
>
> ==========================================================================
> =
> 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".
>
===========================================================================
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".