Discussions

EJB programming & troubleshooting: Remote interface and Bean class

  1. Remote interface and Bean class (1 messages)

    Hi

    I have some get and set methods in my remote interface.
    For accessing these methods,Do I need to create the instance of the remote interface inside the bean class?
    Thanks
    Selvaraj
  2. Remote interface and Bean class[ Go to top ]

    Hi,
             Your remote interface will be implemented by the
    ejb container as EJB object.To call the get/set methods
    from client you have to get the Home object reference by
    JNDI lookup,once you get the Home object reference you can
    call create method of the Home object,which will return the EJB object reference.By using this you can call all business methods exposed by the Remote interface.
    Bye
    Rama