Uploaded image for project: 'EJB Client Library (AS7+)'
  1. EJB Client Library (AS7+)
  2. EJBCLIENT-86

Add Support for Integer Port Number with Scoped Contexts

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.0.16.Final, 1.0.22.Final, 2.0.0.Beta2

      When using scoped contexts in the EJB Client, the EJB lookup fails with an IllegalStateException ("No EJB receiver available for handling...") if the port number is an integer. Because this exception can be caused by so many things, it is difficult to diagnose this simple problem.

      The context should be able to handle a port number that is given as a string or an integer.

      The issue can be created with the properties below:

      Properties props = new Properties();
      props.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
      props.put("org.jboss.ejb.client.scoped.context", true);
      props.put("remote.connections", "main");
      props.put("remote.connection.main.host", <host>);
      props.put("remote.connection.main.port", 4447);
      props.put("remote.connection.main.username", <user>);
      props.put("remote.connection.main.password", <password>);
      props.put("remote.connection.main.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS", "false");
      props.put("remote.connection.main.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT", "false");
      props.put("remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED", "false");

      InitialContext context = new InitialContext(props);
      ...

              Unassigned Unassigned
              spaligo Steven Paligo (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: