1 Reply Latest reply on Mar 29, 2003 4:40 PM by Adrian Brock

    Transferring EntityBean to client

    Rikard Eriksen Newbie

      Hi! Is it possible in any way to transfer an EntityBean to a client? If so, could you please provide me with a link ot two to documentation about this? Thanks!

        • 1. Re: Transferring EntityBean to client
          Adrian Brock Master

          What do you mean by transfer?

          It is possible for a client to get a reference
          to an entity bean.

          InitialContext ctx = new InitialContext();
          EntityHome home = (EntityHome) ctx.lookup("jndiName");
          Entity bean = home.findByPrimaryKey("Seeker");
          bean.remove(); // :-)

          I would recommend you research Session facades
          and transactional assembly.