File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes EJBObject.getPrimaryKey() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJBObject.getPrimaryKey() " Watch "EJBObject.getPrimaryKey() " New topic


Srikanth Basa
Ranch Hand

Joined: Jun 06, 2005
Posts: 241
Given that this method is supposed to be called on an Entity Bean only, why didn't the EJB architecture team consider exposing sub-interfaces like EntityBeanEJBObject, SessionBeanEJBObject ? so that the getPrimaryKey() method can be called only from EntityBeanEJBObject and not from others (any thoughts) ?
Joseph Sweet
Ranch Hand

Joined: Jan 29, 2005
Posts: 327
Backward compatibility.

We must know, we will know. -- David Hilbert
I agree. Here's the link:
subject: EJBObject.getPrimaryKey()
Similar Threads
Regarding Classic Custom Tags
return type from abstract schema type
holdsLock() method in Thread class
How could this be possible