felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eoghan Glynn (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-1852) [karaf] admin:create should support a -r, --rmi-registry-port option to allow the RMI registry port to be configured
Date Fri, 06 Nov 2009 17:02:34 GMT

    [ https://issues.apache.org/jira/browse/FELIX-1852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12774316#action_12774316

Eoghan Glynn commented on FELIX-1852:

Actually it may be better if karaf itself managed the RMI port range, as it does for the SSH
port range.

So the option could be more like: "admin:create --own-rmi-port" to allow the child instance
have its own unique port, which is then allocated by karaf using the next port in sequence
within some range (with the next free port persisted in the instance.properties)

> [karaf] admin:create should support a -r, --rmi-registry-port option to allow the RMI
registry port to be configured 
> ---------------------------------------------------------------------------------------------------------------------
>                 Key: FELIX-1852
>                 URL: https://issues.apache.org/jira/browse/FELIX-1852
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>    Affects Versions: karaf-1.0.0
>            Reporter: Eoghan Glynn
>             Fix For: karaf-1.2.0
> By default the JMX/RMI serviceURL is configured for child instances with the same RMI
registry port as the root instance.
> As a result, the monitoring of the child can depend on the live-ness of the root instance,
depending on the startup sequence.
> For example if the child is created via "admin:create foo" in the root's shell, but then
started via the $KARAF_HOME/instances/foo/bin/start script, the child shares the single RMI
registry hosted by the root instance. 
> If the root instance is then stopped, the child may no longer be monitored over JMX.
Even if the root is restarted, the child still cannot be monitored as there is no auto-reregistration.
> Instead it should be possible to create a child instance with an instance-specific RMI
registry port so that its not dependent on an RMI registry shared with another instance, e.g.
"admin:create --rmi-registry-port 1199 foo" so that rmiRegistryPort=1199
> is configured in $KARAF_HOME/instances/foo/etc/org.apache.felix.karaf.management.cfg

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message