This content has been marked as final.
Show 5 replies
-
1. Re: SessionBean.getPrimaryKey()
juha Jan 27, 2004 6:36 AM (in response to jmiddleton)Please try it with latest released versions (3.2.3), and if the issue exists report it as a bug.
-
2. Re: SessionBean.getPrimaryKey()
jmiddleton Jan 27, 2004 9:37 AM (in response to jmiddleton)I download the 3.2.3 version and this bug continue.
There is something in the configuration that is wrong? -
3. Re: SessionBean.getPrimaryKey()
juha Jan 27, 2004 12:11 PM (in response to jmiddleton)No, it should throw an exception as per the javadoc.
-
4. Re: SessionBean.getPrimaryKey()
jmiddleton Jan 27, 2004 12:25 PM (in response to jmiddleton)I don't know what happend. You can tell me which is the class that implement EJBObject in JBOSS? Maybe there is something wrong there.
-
5. Re: SessionBean.getPrimaryKey()
juha Feb 7, 2004 2:17 AM (in response to jmiddleton)This is implemented in the StatelessSessionInterceptor:
else if (m.equals(GET_PRIMARY_KEY)) { return ctx.getValue(InvocationKey.JNDI_NAME); }
Which seems wrong according to the Javadoc:/** * Obtain the primary key of the EJB object. * * This method can be called on an entity bean. An attempt to invoke this method on a session * bean will result in RemoteException. * * @return The EJB object's primary key. * @exception java.rmi.RemoteException - Thrown when the method failed due to a system-level failure. */
So I would qualify it as a bug in JBoss.