aspose file tools
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
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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: EJBObject.getPrimaryKey()