What is meant by "on its context"? There are at least three explanations.
1. The term "on its context" should be replaced by "on its
EJB object". In this case, any attempt by a session bean to call getPrimaryKey() on its EJB object will result in java.rmi.RemoteException being thrown.
2. The term "on its context" should be replaced by "via its context". As you can get the EJB object via the context, then getPrimaryKey() can be called. The result will be the same, java.rmi.RemoteException will be thrown.
3. The term "on its context" remains, in which case it is a compilation error.