Discussions

EJB design: How to get the Primary Key Class of a local ejb...

  1. Hello,

    How to get the primary key class of a local ejb?
    With remote ejb, it is getEJBMetaData().getPrimaryKeyClass().
    But I can not find anything similar for EJBLocalHome.
    This is annoying when using reflection on local ejb.

    Thanks

    François
  2. Can't you use the getPrimaryKey() method of the EjbLocalObject? [EJBLocalObject.getPrimaryKey()]

    Senthil.