Uploaded image for project: 'Remoting JMX'
  1. Remoting JMX
  2. REMJMX-86

RemotingConnector & VersionedConectionFactory need configurable connection, channel & versioned connection timeouts

    XMLWordPrintable

Description

    In [1] we have the following snippet of code which has a hardcoded value of 5 seconds.

    RemotingConnector.java
    // Now open the channel
            final IoFuture<Channel> futureChannel = connection.openChannel(serviceName, OptionMap.EMPTY);
            IoFuture.Status result = futureChannel.await(5, TimeUnit.SECONDS);
            if (result == IoFuture.Status.DONE) {
                channel = futureChannel.get();
            } else if (result == IoFuture.Status.FAILED) {
                throw new IOException(futureChannel.getException());
            } else {
                throw new RuntimeException("Operation failed with status " + result);
            }
    

    This should be a system property or the default value should be raised.

    [1] https://github.com/jbossas/remoting-jmx/blob/master/src/main/java/org/jboss/remotingjmx/RemotingConnector.java

    Attachments

      Issue Links

        Activity

          People

            rhn-support-bmaxwell Brad Maxwell
            rhn-support-mus Mustafa Musaji
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: