[jboss-user] [JNDI and Naming] - How to obtain ejb reference in AS6?
Hua Liang
do-not-reply at jboss.com
Fri Apr 13 05:18:17 EDT 2012
Hua Liang [https://community.jboss.org/people/kingpmp] created the discussion
"How to obtain ejb reference in AS6?"
To view the discussion, visit: https://community.jboss.org/message/729803#729803
--------------------------------------------------------------
Here is the JNDI tree view:
h1. 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
[https://community.jboss.org/message/729803#729803]
Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120413/cb445291/attachment.html
More information about the jboss-user
mailing list