I am using jboss 3.2.3.
Scenario:
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?
Discussions
EJB programming & troubleshooting: Entity bean called from a session bean or from a client
-
Entity bean called from a session bean or from a client (2 messages)
- Posted by: Raffaello Bindi
- Posted on: June 21 2004 03:32 EDT
Threaded Messages (2)
- 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
-
Entity bean called from a session bean or from a client[ Go to top ]
- Posted by: Luiz Santanna
- Posted on: June 21 2004 16:10 EDT
- in response to Raffaello Bindi
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!
Luiz. -
Entity bean called from a session bean or from a client[ Go to top ]
- Posted by: Raffaello Bindi
- Posted on: June 22 2004 03:07 EDT
- in response to Luiz Santanna
The strange thing is that If I check the db after step 4 I obtain "v2" !!