0 Replies Latest reply on Jun 30, 2003 12:12 AM by ccalandreau

    ejbLoad and ClassCastException

    ccalandreau Newbie


      I have a BMP entity bean Hotel.
      In the ejbLoad() method, I use the expression
      HotelPK pk = (HotelPK) this.context.getPrimaryKey();
      to get the primary key of the instance.
      But I obtain a ClassCastException saying that this.context.getPrimaryKey() returns a java.util.Vector
      (and I can enumerate over the elements of this Vector, they have the type HotelPK).

      Thanks you