[jboss-jira] [JBoss JIRA] (REMJMX-104) Xnio Options passed in environment are not passed down

Brad Maxwell (JIRA) issues at jboss.org
Thu Sep 17 19:31:00 EDT 2015


     [ https://issues.jboss.org/browse/REMJMX-104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brad Maxwell updated REMJMX-104:
--------------------------------
    Description: 
XNIO options are not passed down when specified in the environment, preventing the client from specifying things such as SSL_ENABLED=false
 
{code}
        JMXServiceURL jmxUrl = new JMXServiceURL(url);
        Hashtable env = new Hashtable();
        env.put("org.xnio.Options.SSL_ENABLED","false");
        String[] credentials = new String[] { user, pass }; 
        env.put(JMXConnector.CREDENTIALS, credentials);
        this.jmxConnector = JMXConnectorFactory.connect(jmxUrl, env);
{code}

  was:
XNIO options are not passed down when specified in the environment, preventing the client from specifying things such as SSL_ENABLED=false
 
{code}
        JMXServiceURL jmxUrl = new JMXServiceURL(url);
        Hashtable env = new Hashtable();
        env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.rmi.registry.RegistryContextFactory");
        env.put("org.xnio.Options.SSL_ENABLED","false");
        String[] credentials = new String[] { user, pass }; 
        env.put(JMXConnector.CREDENTIALS, credentials);
        this.jmxConnector = JMXConnectorFactory.connect(jmxUrl, env);
{code}



> Xnio Options passed in environment are not passed down
> ------------------------------------------------------
>
>                 Key: REMJMX-104
>                 URL: https://issues.jboss.org/browse/REMJMX-104
>             Project: Remoting JMX
>          Issue Type: Bug
>          Components: Connection
>    Affects Versions: 1.1.3.Final
>            Reporter: Brad Maxwell
>            Assignee: Darran Lofthouse
>
> XNIO options are not passed down when specified in the environment, preventing the client from specifying things such as SSL_ENABLED=false
>  
> {code}
>         JMXServiceURL jmxUrl = new JMXServiceURL(url);
>         Hashtable env = new Hashtable();
>         env.put("org.xnio.Options.SSL_ENABLED","false");
>         String[] credentials = new String[] { user, pass }; 
>         env.put(JMXConnector.CREDENTIALS, credentials);
>         this.jmxConnector = JMXConnectorFactory.connect(jmxUrl, env);
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list