JBoss Community

How to obtain ejb reference in AS6?

created by Hua Liang in JNDI and Naming - View the full discussion

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!

Reply to this message by going to Community

Start a new discussion in JNDI and Naming at Community