The installFeature should be spring/3.0.4.RELEASE.
However, I will check why you don't get the "Feature doesn't exist"
exception.
Regards
JB
On 26/03/2019 16:31, saravanaprasad wrote:
> HashMap<String, String[]> environment = new
> HashMap<String,
> String[]>(); String username = "karaf"; String
> password = "karaf";
> String[] credentials = new String[] { username,
> password };
> environment.put("jmx.remote.credentials",
> credentials);
> JMXServiceURL url =new
> JMXServiceURL("service:jmx:rmi://localhost:44444/jndi/rmi://localhost:1099/karaf-root");
> JMXConnector jmxc = JMXConnectorFactory.connect(url,
> environment);
> MBeanServerConnection mbsc =
> jmxc.getMBeanServerConnection();
> ObjectName feature = null;
> TabularData features = null;
> try
> {
>
> feature = new
> ObjectName("org.apache.karaf:type=feature,name=root");
>
> featuresServiceMBeanProxy =
> JMX.newMBeanProxy(mbsc,
> feature,FeaturesServiceMBean.class, true);
> context.registerService( JMXKarafFeature.class,
> new
> JMXKarafFeatureImpl(), null );
>
> featuresServiceMBeanProxy.installFeature("spring-3.0.4/3.0.4.RELEASE");//
> here karaf console goes unresponsive
> }
>
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com