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".