3 Replies Latest reply on Jul 18, 2002 10:44 PM by sweetfa

    Problem with local interface

    pouly

      Hello

      I have made a session bean and a entity bean i can use
      the entity bean from the session with the remote interface
      but when i want to use the local interface by this instruction in the session bean

      Context ctx = new InitialContext();
      Object gpsHome = ctx.lookup("GpsPoint");
      GpsPointLocalHome home =(GpsPointLocalHome)gpsHome;

      The session bean jump to this exception:
      13:34:03,800 INFO [STDOUT] Exception$Proxy468

      And dont make the cast.

      Someone have a solution tanks.

      in attachment the ejb-jar.xml



        • 1. Re: Problem with local interface
          sweetfa

          Firstly, you need to look up the local home. This will mean defining a local jndi name in your ejb-jar.xml.

          Also, you will most likely need reference links to the Entity bean within your session bean definition in ejb-jar.xml.

          • 2. Re: Problem with local interface
            sweetfa

            Firstly, you need to look up the local home. This will mean defining a local jndi name in your ejb-jar.xml.

            Also, you will most likely need reference links to the Entity bean within your session bean definition in ejb-jar.xml.

            • 3. Re: Problem with local interface
              sweetfa

              Firstly, you need to look up the local home. This will mean defining a local jndi name in your ejb-jar.xml.

              Also, you will most likely need reference links to the Entity bean within your session bean definition in ejb-jar.xml.