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, 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