You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by "Fang, Yue (Freeman)" <Fr...@iona.com> on 2008/03/06 13:40:53 UTC
答复: Can servicemix be integrated into Java Application?
Yeah, you can start a embeded smx in your code
JBIContainer container = new JBIContainer();
container.setUseMBeanServer(false);
container.setCreateMBeanServer(false);
container.setMonitorInstallationDirectory(false);
container.setNamingContext(new InitialContext());
container.setEmbedded(true);
container.init();
You can also install component and deploy SU by code, [1] as an example for details
[1]http://svn.apache.org/repos/asf/servicemix/smx3/trunk/deployables/serviceengines/servicemix-cxf-se/src/test/java/org/apache/servicemix/cxfse/CxfSeClientProxyTest.java
Freeman
-----Original Message-----
From: youhaodeyi [mailto:youhaodeyi@gmail.com]
Sent: 3/6/2008 (星期四) 7:26
To: users@servicemix.apache.org
Subject: Can servicemix be integrated into Java Application?
According to ServiceMix user guide, in order to deploy a service component, I
need to start ServiceMix and copy the component packet into ServiceMix's
deploy directory. Can I start ServiceMix in a Java Application? Is there any
other method to start ServiceMix?
--
View this message in context: http://www.nabble.com/Can-servicemix-be-integrated-into-Java-Application--tp15872165s12049p15872165.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.