View RSS Feed


Java Naming and Directory Interface (JNDI) tutorials and examples.

  1. Locating EJB Home Interface

    by , 01-02-2012 at 07:21 PM
    Home interface of EJB can be located by an EJB client via standard JNDI API. To make available the home interfaces of its deployed beans EJB is considered responsible, using JNDI. JNDI namespace of a client can be configured to consider the EJBs home interfaces which are installed on other hosts or containers.

    Java Code: This is the code to locate EJB Home Interface
    import java.util.Collection;
    import java.util.Iterator;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;

    Updated 01-14-2012 at 07:20 PM by JNDI