Here's my guess: leave the connection alone in the ejbLoad method.
It is still needed by the container to commit the transaction after your
method
returns.

Frank

> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Michael McElligott
> Sent: Wednesday, July 05, 2000 3:00 PM
> To: [EMAIL PROTECTED]
> Subject: Continuously getting RollbackException...?
>
>
> Hey everyone - I'm stumped here.  I keep getting a
> RemoteException when trying to access a business
> method of an entity bean.  The nested exception is a
> RollbackException, possibly due to a transaction time
> out (at least that's what the error message says).
> Strangely enough, all of my variables are loaded with
> the correct information and no error occurs in the EJB
> itself - just the client.  The lookup appears to be
> fine, the ejbLoad() returns correctly and the instance
> variables are all populated.  My business method,
> getFirstName() has TX_REQUIRED set and is
> container-managed (entity bean).  However, I get a
> RollbackException each time..  A couple possibly
> relevant points:
>
> 1.  On the ejbLoad I'm cleaning up my resources (rs,
> pstmt and conn)
>
> 2.  I'm not referencing transactions anywhere in the
> code at all (which I thought was how I was *supposed*
> to do it).
>
> TIA for any helpful hints from people who have seen
> this before.  Probably something simple and stupid
> that I'm not doing, but I can't figure it out (so
> far)..
>
> Mike
>
>
> __________________________________________________
> Do You Yahoo!?
> Send instant messages & get email alerts with Yahoo! Messenger.
> http://im.yahoo.com/
>
> ==============================================================
> =============
> 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".

Reply via email to