1 Reply Latest reply on Apr 15, 2012 9:01 PM by Hua Liang

    How to obtain ejb reference in AS6?

    Hua Liang Newbie

      Here is the JNDI tree view:

      Global JNDI Namespace

        +- lhserviceear (class: org.jnp.interfaces.NamingContext)
        |   +- TestService (class: org.jnp.interfaces.NamingContext)
        |   |   +- remote-com.realestate.prefund.service.ejb.RemoteTestservice (class: Proxy for: com.realestate.prefund.service.ejb.RemoteTestservice)
        |   |   +- remote (class: Proxy for: com.realestate.prefund.service.ejb.RemoteTestservice)

       

      Therefore, if I do a JNDI lookup as:

                    context.lookup("lhserviceear/TestService/remote");

       

      It returns a proxy instead of the acutal remote bean interface, which I need it to do remote method invocation.

       

      Any suggestions will be apprecitated!