karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Commented] (KARAF-1149) Karaf MBeanServer is not usable behind firewall
Date Fri, 10 Jun 2016 06:43:20 GMT

    [ https://issues.apache.org/jira/browse/KARAF-1149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15323968#comment-15323968

Jean-Baptiste Onofré commented on KARAF-1149:

Just tested on Docker without problem. Here's the details.

First, I started Karaf in docker with ports 1099 and 44444 published:

docker run -i -t -p 1099:1099 -p 44444:44444 --name karaf karaf

Then, I can use jconsole to connect to the MBean service using the following URL: {{service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root}}.

I also tried to publish all port randomly on docker using {{--publish-all=true}}:

docker run -i -t --publish-all=true --name karaf karaf

With {{docker ps}}, we can see the ports bound (in my case on 32768). Then I used the following
URL: {{service:jmx:rmi:///jndi/rmi://localhost:32768/karaf-root}} without problem.

> Karaf MBeanServer is not usable behind firewall
> -----------------------------------------------
>                 Key: KARAF-1149
>                 URL: https://issues.apache.org/jira/browse/KARAF-1149
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-management
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
> If network administrator opens the network ports to use Karaf MBean server (for instance,
by default, 1099 for the RMI Registry and 44444 for the RMI server), the JVM open random port
for JMX communication.
> It could be helpful to provide a JMX agent or at least to document how to use Karaf MBean
server behind firewalls.

This message was sent by Atlassian JIRA

View raw message