1 Reply Latest reply on Mar 29, 2003 4:40 PM by adrian.brock

    Transferring EntityBean to client

    seeker

      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

          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.

          Regards,
          Adrian