EJB programming & troubleshooting: Entity bean called from a session bean or from a client
I am using jboss 3.2.3.
- Posted by: Raffaello Bindi
- Posted on: June 21 2004 03:32 EDT
I have an entity bean (BMP) with setX(String value) and getX() methods.
I call it from a session bean SB and from a client CL.
1)I call setX(v1) from SB
2)I call getX() from SB and obtain v1
3)I call setX(v2) from SB
4)I call getX() from SB and obtain v2
5)I call getX() from CL and obtain v1
It seems that the client and the session bean are managing two different instances of the bean.
Is it possible? Can anyone help me?
- Entity bean called from a session bean or from a client by Luiz Santanna on June 21 2004 16:10 EDT
- Entity bean called from a session bean or from a client by Raffaello Bindi on June 22 2004 03:07 EDT
It seems you might have a transaction problem. After step #4 you probably haven't committed your changes.
It's just a guess. good luck and let us know how it goes!
The strange thing is that If I check the db after step 4 I obtain "v2" !!