Hi,

You can see the ant task in org.apache.servicemix.jbi.management.task.

Basicly, you can write a JMX client like this:

public static void main(String args[]) throws Exception {
        String[] credentials = new String[]{ "smx", "smx" };
        Map<String,Object> environment = new Hashmap<String,Object>();
        environment.put(JMXConnector.CREDENTIALS, credentials);
JMXServiceURL url = new JMSServiceURL("service:jmx:rmi:///jndi/rmi://location:1099" + ManagementContext.DEFAULT_CONNECTOR_PATH);
        JMXConnector connector = JMXConnectorFactory.connect(url, environment);
ObjectName adminName = ManagementContext.getSystemObjectName(ManagementContext.DEFAULT_DOMAIN, JBIContainer.DEFAULT_NAME, AdminCommandsServiceMBean.class); AdminCommandsServiceMBean adminCommandsMBean = MBeanServerInvocationHandler.newProxyInstance(connector.getMBeanServerConnection(), adminName, AdminCommandsServiceMBean.class, true);
        String result = adminCommandsMBean.listServiceAssemblies(null, null, 
null);
}

This client list the service assemblies deployed into ServiceMix. You can list service assemblies depending of the current state (first argument of listServiceAssemblies() methods), linked to a component (second argument), by name (third argument).

Regards
JB

poplar wrote:
Dear all,

I'm very new with Servicemix and I'm learning to create its client to
supervise the services inside servicemix but I don't know how and where to
start. How can I create servicemix client? Could you please give me some
hints? Any suggestion will be highly appreciated.

I'm looking forward to hearing from you soon.
Thanks so much and best regards,

Reply via email to