2 Replies Latest reply on Nov 17, 2003 2:59 AM by finn

    Bean not found when invoking find directly after create

    finn Newbie

      I have the following problem with my client server solution.

      1. The server receives a message and creates an entity bean representing the message.
      2. The server notifies the client that a new message is available.
      3. The client connects and downloads all available messages.

      My problem is that the server creates a new bean in stage 1 and shortly after, the client connects and a finder method is invoked. However, the finder method will not return the bean that was created in stage one. The time between 1 and 3 can be fairly short but it works if I manually add a one second delay.
      Why will the finder method not find the entity bean directly after I have created it??? I did not expect this behaviour at all.

      Thanks in advance,