I am getting "javax.naming.NameNotFoundException: ProxyFactory not bound" when looking up one EJB from another EJB in JBoss.

Solution Unverified - Updated -

Issue

While using JBoss EAP 5. If we want to implement the following scenario:
FirstEJB running on Application Server A on Machine1.
SeconEJB running on Application Server B on Machine2.

Invoke on both the EJB's independantly are successful.

but while calling FirstEJB in SecondEJB, produces the following error:

Caused by: javax.naming.NameNotFoundException: ProxyFactory not bound
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
    at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
    at org.jnp.server.NamingServer.lookup(NamingServer.java:396

Environment

  • JBoss Enterprise Application Platform (EAP) 5.0.1.GA

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.