This week's book giveaways are in the iOS and Features new in Java 8 forums. We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line! See this thread and this one for details.
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