I don't know if this is your problem, but several app server vendors have
implemented the same bug, wherein they do not call ejbLoad until an entity
bean is enlisted in a transaction.  This is incorrect behavior on the part
of these servers, but you can work around the problem by setting the
transaction attribute on your methods to TX_REQUIRED.


>From: Michael McElligott <[EMAIL PROTECTED]>
>Reply-To: A mailing list for Enterprise JavaBeans development
><[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Null references from entity bean
>Date: Fri, 30 Jun 2000 13:06:47 -0700
>
>Hey everyone.  I've been slowly getting closer and
>closer to getting the J2EE reference implemenation to
>work on a home-developed entity bean.  My latest
>problem is that my entity bean is returning null for
>getFirstName(), getLastName(), etc.  I used the poor
>man's debugger and printed to System.out as the
>callback methods of the bean got called and though it
>appears the findByPrimaryKey(String) is being called,
>the ejbLoad() function is not.
>
>Any ideas?  Thanks in advance.
>
>Mike
>
>__________________________________________________
>Do You Yahoo!?
>Get Yahoo! Mail - Free email you can access from anywhere!
>http://mail.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".
>

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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".

Reply via email to