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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content