Wrox Home  
Search P2P Archive for: Go

  Return to Index  

enterprise_java_beans thread: confusion in entity bean


Message #1 by "ramy" <ramymoneiry@h...> on Sun, 9 Sep 2001 03:07:05
Dear ramy,

  The ejb server creates multiple ejb objects for
multiple clients at the same point of time. Suppose
one ejb object creates a entity bean with primary key
1 . After this if any other client tries to create
another entity bean with 1 it will throw duplicate key
exception but he  can find it by calling
findbyprimarykey method. Or multiple clients can share
the same entity bean(same primary key) at the same
point of time by creating different ejb objects for
itself. But the thing is that the concurrency is
managed by the containter or the database level. We
dont worry about it. This is relevent to Weblogic5.1.

Thanks,
Indranil.


  Return to Index