Hi
     I was also facing a simlar problem... I think this is a bug with the
     weblogic server. I think this issue relates to the following issue
     mentioned the service pack 5 of weblogic server

     ISSUE 31736:
     Fixed a problem with doing multiple finder calls in a single transaction.

     I feel u should try installing SP5 as this removes the problem
regards
______________________________________________________
Bikram Singh Bajwa
Electronic Commerce Group
L&T Information Technology Limited, Pune.
Contact Numbers : 020-5511262-321 (Office)
                          020-5813977       (Resi)
Alternate e-Mail  : [EMAIL PROTECTED]






Jerson Chua <[EMAIL PROTECTED]> on 31-08-2000 07:42:14 PM

Please respond to A mailing list for Enterprise JavaBeans development
      <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: ECG Subscription/LTITLPUN)

Subject:  Re: Transaction



Hi Dave...
The Session bean is stateless.  The Entity bean is bean managed. The entity bean
is
properly implemented (ejbload and ejbstore).
All methods' transaction attribute are set to requires (this is tentative),
Isolation
level is set to serializable.

here's a pseudo code

// eb.xxx's original value is 111

class StatelessSession {

        methodA() {
                eb1 = ebhome.findByPK(id);
                eb1.setXXX(222);
                System.out.println(eb1.getXXX()); // returns 222

                // just tried this after my original post
                eb2 = ebhome.findByPK(id);
                System.out.println(eb2.getXXX()); // returns 111 - PROBLEM

                return methodB(id);
        }

        methodB(id) {
                eb3 = ebhome.findByPK(id);
                System.out.println(eb3.getXXX()); // returns 111 - PROBLEM
                return eb3.getYYY(); // return a value object which contains
subset of the entity
bean's atrributes
        }
}

Is it because the isolation level is serializable? I think the change made in
methodA
should reflect in methodb since both methods are under the same transactional
context.

Am I missing something? please guide me.

thanks in advanced.
Jerson


--- Dave Wolf <[EMAIL PROTECTED]> wrote:
> Can I get a little better description?  Is this BMP or CMP?  Is methodA()
> calling methodB() or is the client calling methodB() right after methodA().
> What Tx level are both beans set to?  I assume we have a session bean which
> contains methodA() and methodB()?  Stateful or stateless?
>
> Dave Wolf
> Internet Applications Division
> Sybase
>
>
> > -----Original Message-----
> > From: A mailing list for Enterprise JavaBeans development
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Jerson Chua
> > Sent: Thursday, August 31, 2000 5:45 AM
> > To: [EMAIL PROTECTED]
> > Subject: Transaction
> >
> >
> > Hi...
> > I've a methodA which modifies the value of an entity bean. After
> > the modification is
> > performed, a methodB is called which finds for the same entity
> > bean and retrieves the
> > modified attributes.  My problem is the changes made on methodA
> > does not reflect to the
> > entity bean in the methodB.
> >
> > thanks in advanced.
> >
> > Jerson
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > 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".
> >
> >
>
> ===========================================================================
> 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".
>


__________________________________________________
Do You Yahoo!?
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".

===========================================================================
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