when is a duplicate primary key exception thrown? Can 2 entity bean instances access the same primary key.If not why? Can different instances of the same entity bean access the same primary key? Bit confused regarding this please explain
Well, an exception is thrown when trying to insert a record inside the database and there already is a record with that primary key. 2 entity beans will access the same primary key in a clustered environment. Inside a single application server there will not be two beans representing the same record, though this might depend on the applications server.
...watch me...as I'm walking the path...
Joined: Oct 31, 2002
could u pls explainur reply in detail as to why in a clustered envo the same data can be accessed and y does it depend on app servers as to the data being accessed is same or not