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

Solution Verified - Updated -

Issue

  • 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("remote.connection.one.host", "host1");
properties.put("remote.connection.one.port", "4447");
....
Context context = new InitialContext(properties);
ejb = (EJBRemote) context.lookup(JNDI);
ejb.doSomething();
  • A standalone client does not connect to the host(s) given in the properties of the scoped context

Environment

  • 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
Close

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