The scoped-context will not work if a client invoke an EJB deployed at EAP6 with that context

Solution Verified - Updated -


  • A standalone client use the following code but get a IllegalStateException: EJBCLIENT000025
Properties properties = new Properties();
properties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
properties.put("org.jboss.ejb.client.scoped.context", "true");
properties.put("remote.connections", "one");
properties.put("", "host1");
properties.put("", "4447");
Context context = new InitialContext(properties);
ejb = (EJBRemote) context.lookup(JNDI);
  • A standalone client does not connect to the host(s) given in the properties of the scoped context


  • JBoss Enterprise Application (EAP) 6.x

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