You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ch...@apache.org on 2006/02/22 00:40:29 UTC

svn commit: r379627 [10/34] - in /incubator/servicemix/trunk: ./ etc/ sandbox/servicemix-wsn-1.2/src/sa/META-INF/ sandbox/servicemix-wsn-1.2/src/su/META-INF/ servicemix-assembly/ servicemix-assembly/src/main/assembly/ servicemix-assembly/src/main/relea...

Modified: incubator/servicemix/trunk/servicemix-core/project.xml
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-core/project.xml?rev=379627&r1=379626&r2=379627&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/project.xml (original)
+++ incubator/servicemix/trunk/servicemix-core/project.xml Tue Feb 21 15:40:05 2006
@@ -1,436 +1,436 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
-
-    Copyright 2005 The Apache Software Foundation
-
-    Licensed under the Apache License, Version 2.0 (the "License");
-    you may not use this file except in compliance with the License.
-    You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
-    
--->
-
-<project>
-    <pomVersion>3</pomVersion>
-    <extend>${basedir}/../etc/project.xml</extend>
-
-    <name>ServiceMix :: Core</name>
-    <id>servicemix-core</id>
-
-    <dependencies>
-        <dependency>
-            <groupId>${pom.groupId}</groupId>
-            <artifactId>servicemix-jbi</artifactId>
-            <version>${pom.currentVersion}</version>
-            <properties>
-                <eclipse.dependency>true</eclipse.dependency>
-            </properties>
-        </dependency>
-
-        <dependency>
-            <groupId>mx4j</groupId>
-            <artifactId>mx4j</artifactId>
-            <version>${mx4j_version}</version>
-        </dependency>
-        <dependency>
-            <groupId>mx4j</groupId>
-            <artifactId>mx4j-remote</artifactId>
-            <version>${mx4j_remote_version}</version>
-        </dependency>
-        <dependency>
-            <groupId>mx4j</groupId>
-            <artifactId>mx4j-tools</artifactId>
-            <version>${mx4j_tools_version}</version>
-        </dependency>
-
-        <!--For remote management tasks-->
-
-        <dependency>
-            <id>ant</id>
-            <version>${ant_version}</version>
-        </dependency>
-
-        <dependency>
-            <groupId>commons-logging</groupId>
-            <artifactId>commons-logging</artifactId>
-            <version>${commons_logging_version}</version>
-            <url>http://jakarta.apache.org/commons/logging/</url>
-        </dependency>
-
-        <dependency>
-            <groupId>log4j</groupId>
-            <artifactId>log4j</artifactId>
-            <version>${log4j_version}</version>
-        </dependency>
-
-        <dependency>
-            <id>lucene</id>
-            <version>${lucene_version}</version>
-        </dependency>
-
-        <dependency>
-            <id>concurrent</id>
-            <version>${concurrent_version}</version>
-        </dependency>
-
-        <dependency>
-            <id>backport-util-concurrent</id>
-            <version>${backport_util_concurrent_version}</version>
-        </dependency>
-
-        <dependency>
-            <id>wsdl4j</id>
-            <version>${wsdl4j_version}</version>
-        </dependency>
-
-        <dependency>
-            <id>commons-beanutils</id>
-            <version>${commons_beanutils_version}</version>
-        </dependency>
-
-
-        <!-- for DOM, SAX, StAX and XPath support -->
-        <dependency>
-            <groupId>servicemix</groupId>
-            <artifactId>jaxp</artifactId>
-            <version>${jaxp_version}</version>
-        </dependency>
-
-        <dependency>
-            <id>stax+api</id>
-            <version>${stax_api_version}</version>
-        </dependency>
-
-        <dependency>
-            <id>jaxen</id>
-            <version>${jaxen_version}</version>
-        </dependency>
-
-        <!-- possible StAX implementations: START -->
-
-        <!-- fast implementation of StAX -->
-        <dependency>
-            <groupId>woodstox</groupId>
-            <artifactId>wstx-asl</artifactId>
-            <version>${woodstox_version}</version>
-        </dependency>
-
-
-        <!-- possible StAX implementations: END -->
-
-
-        <dependency>
-            <groupId>xerces</groupId>
-            <artifactId>xercesImpl</artifactId>
-            <version>${xercesImpl_version}</version>
-        </dependency>
-
-        <dependency>
-            <groupId>xml-apis</groupId>
-            <artifactId>xml-apis</artifactId>
-            <version>${xml_apis_version}</version>
-        </dependency>
-
-        <!-- mostly included for some DOM/SAX tools we could maybe replace with JAXP versions -->
-        <dependency>
-            <id>xalan</id>
-            <version>${xalan_version}</version>
-        </dependency>
-
-
-        <!-- for spring integration -->
-        <dependency>
-            <groupId>springframework</groupId>
-            <artifactId>spring</artifactId>
-            <version>${spring_version}</version>
-        </dependency>
-
-
-        <!-- utility library for adapting StAX to SAX and JAXP Source -->
-        <dependency>
-            <groupId>servicemix</groupId>
-            <artifactId>stax-utils</artifactId>
-            <version>${stax_utils_version}</version>
-        </dependency>
-
-
-        <!-- J2EE JARs -->
-        <dependency>
-            <groupId>org.apache.geronimo.specs</groupId>
-            <artifactId>geronimo-jms_1.1_spec</artifactId>
-            <version>${geronimo_spec_jms_version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.geronimo.specs</groupId>
-            <artifactId>geronimo-servlet_2.4_spec</artifactId>
-            <version>${geronimo_spec_servlet_version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.geronimo.specs</groupId>
-            <artifactId>geronimo-jta_1.0.1B_spec</artifactId>
-            <version>${geronimo_spec_jta_version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.geronimo.specs</groupId>
-            <artifactId>geronimo-j2ee-management_1.0_spec</artifactId>
-            <version>${geronimo_spec_j2ee_management_version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.geronimo.specs</groupId>
-            <artifactId>geronimo-j2ee-connector_1.5_spec</artifactId>
-            <version>${geronimo_spec_j2ee_connector_version}</version>
-        </dependency>
-        <dependency>
-	    <groupId>org.apache.geronimo.specs</groupId>
-	    <artifactId>geronimo-activation_1.0.2_spec</artifactId>
-	    <version>${geronimo_spec_activation_version}</version>
-        </dependency>
-
-
-        <!--  for custom XML parsing -->
-        <dependency>
-            <groupId>org.apache.xbean</groupId>
-            <artifactId>xbean-spring</artifactId>
-            <version>${xbean_version}</version>
-            <url>http://www.xbean.org</url>
-        </dependency>
-        <dependency>
-            <groupId>annogen</groupId>
-            <artifactId>annogen</artifactId>
-            <version>${annogen_version}</version>
-        </dependency>
-        <dependency>
-            <groupId>qdox</groupId>
-            <artifactId>qdox</artifactId>
-            <version>${qdox_version}</version>
-        </dependency>
-
-        <!-- JCA container and transaction manaqer -->
-        <dependency>
-            <id>jencks+all</id>
-            <version>${jencks_version}</version>
-        </dependency>
-
-        <dependency>
-            <id>lingo</id>
-            <version>${lingo_version}</version>
-        </dependency>
-        <dependency>
-            <groupId>xmlbeans</groupId>
-            <artifactId>xmlpublic</artifactId>
-            <version>${xmlbeans_version}</version>
-        </dependency>
-        <dependency>
-            <groupId>xmlbeans</groupId>
-            <artifactId>xbean</artifactId>
-            <version>${xmlbeans_version}</version>
-        </dependency>
-
-
-        <!-- default JMS provider used for implementation -->
-
-
-        <!--  for ActiveMQ 4.x -->
-        <dependency>
-            <groupId>activeio</groupId>
-            <artifactId>activeio</artifactId>
-            <version>${activeio_version}</version>
-        </dependency>
-        <dependency>
-            <groupId>incubator-activemq</groupId>
-            <artifactId>activemq-core</artifactId>
-            <version>${activemq_version}</version>
-        </dependency>
-        <dependency>
-            <groupId>incubator-activemq</groupId>
-            <artifactId>activemq-ra</artifactId>
-            <version>${activemq_version}</version>
-        </dependency>
-
-        <!-- for XStream component -->
-        <!-- optional jars for XStream marshalling -->
-        <dependency>
-            <id>xstream</id>
-            <version>${xstream_version}</version>
-        </dependency>
-
-        <!--
-          || Dependencies for running test cases
-        -->
-
-        <!-- for pooling JMS and other resources -->
-        <dependency>
-            <groupId>commons-collections</groupId>
-            <artifactId>commons-collections</artifactId>
-            <version>${commons_collections_version}</version>
-        </dependency>
-        <dependency>
-            <groupId>commons-pool</groupId>
-            <artifactId>commons-pool</artifactId>
-            <version>${commons_pool_version}</version>
-        </dependency>
-
-        <!-- optional used for in-web container testing -->
-        <dependency>
-            <groupId>jetty</groupId>
-            <artifactId>jetty</artifactId>
-            <version>${jetty_version}</version>
-        </dependency>
-        <dependency>
-            <groupId>tomcat</groupId>
-            <artifactId>jasper-compiler-jdt</artifactId>
-            <version>${jasper_version}</version>
-        </dependency>
-        <dependency>
-            <groupId>tomcat</groupId>
-            <artifactId>jasper-compiler</artifactId>
-            <version>${jasper_version}</version>
-        </dependency>
-        <dependency>
-            <groupId>tomcat</groupId>
-            <artifactId>jasper-runtime</artifactId>
-            <version>${jasper_version}</version>
-        </dependency>
-
-
-        <!-- default database for ActiveMQ -->
-        <!-- To create Pooled DataSources for the JDBC message store -->
-        <dependency>
-            <groupId>commons-dbcp</groupId>
-            <artifactId>commons-dbcp</artifactId>
-            <version>${commons_dbcp_version}</version>
-        </dependency>
-
-        <!-- JNDI provider for binary release -->
-        <dependency>
-            <groupId>simple-jndi</groupId>
-            <artifactId>simple-jndi</artifactId>
-            <version>${simple_jndi_version}</version>
-        </dependency>
-
-        <!-- for unit test cases -->
-        <dependency>
-            <id>junit</id>
-            <version>${junit_version}</version>
-        </dependency>
-
-        <!-- example database for testing -->
-        <dependency>
-            <id>hsqldb</id>
-            <version>${hsqldb_version}</version>
-        </dependency>
-        
-        <dependency>
-            <groupId>org.apache.db.ddlutils</groupId>
-            <artifactId>ddlutils</artifactId>
-            <version>${ddlutils_version}</version>
-        </dependency>
-        <dependency>
-            <groupId>commons-lang</groupId>
-            <artifactId>commons-lang</artifactId>
-            <version>${commons_lang_version}</version>
-        </dependency>
-
- 	<dependency>
-	    <groupId>easymock</groupId>
-	    <artifactId>easymock</artifactId>
-	    <version>${easymock_version}</version>
-	</dependency>
-
-    </dependencies>
-
-    <build>
-        <unitTest>
-            <resources>
-                <resource>
-                    <directory>src/test/resources</directory>
-                    <includes>
-                        <include>**/*.properties</include>
-                        <include>**/*.x*</include>
-                        <include>**/*.wsdl</include>
-                        <include>**/*.zip</include>
-                    </includes>
-                </resource>
-                <resource>
-                    <directory>src/test/components</directory>
-                    <includes>
-                        <include>**/*.jar</include>
-                        <include>**/*.x*</include>
-                        <include>**/*.zip</include>
-                    </includes>
-                </resource>
-                <resource>
-                    <directory>src/test/assemblies</directory>
-                    <includes>
-                        <include>**/*.jar</include>
-                        <include>**/*.zip</include>
-                    </includes>
-                </resource>
-            </resources>
-            <includes>
-                <include>**/*Test.*</include>
-            </includes>
-            <excludes>
-                <!--  exclude abstract tests -->                
-                <exclude>**/Abstract*Test.*</exclude>
-								
-                <!-- fails on some platforms due to ActiveCluster issue -->                
-                <exclude>**/ClusterFlow*.*</exclude>
-                <exclude>**/JmsFlow*.*</exclude>
-                <exclude>**/JcaFlowPersistentTest.*</exclude>
-                <exclude>**/JcaFlowTransactionTest.*</exclude>                          
-                				
-                <!-- test cases hangs -->
-                <exclude>**/SimpleClusterSendSyncTest.*</exclude>
-                
-
-                <!-- fails in some linux platform due to missing lib libXp.so.6 -->
-                <exclude>**/ServiceMixComponentTest.*</exclude>
-                <exclude>**/ExplodedComponentInstallationTest.*</exclude>
-                <exclude>**/ComponentInstallationTest.*</exclude>
-                <exclude>**/ComponentAssemblyInstallationTest.*</exclude>
-                <exclude>**/DeploymentTest.*</exclude>
-                
-                <!-- Succeed in Eclipse, but fail with maven, why ? 
-                     This may be related to activemq jmx stuff
-                -->
-                <exclude>**/AdminServiceTest.*</exclude>
-                <exclude>**/ManagementAttributesTest.*</exclude>
-                <exclude>**/ManagementContextTest.*</exclude>
-                
-                <!-- fail on non windows platform, why ? -->
-                <exclude>**/HotDeployTest.*</exclude>
-
-                <!-- http://jira.activemq.org/jira/browse/SM-310 -->
-                <exclude>**/JMSFlowTest.*</exclude>
-                
-            </excludes>
-        </unitTest>
-        <resources>
-            <resource>
-                <directory>src/main/resources</directory>
-                <includes>
-                    <include>**/*.properties</include>
-                    <include>**/*.xml</include>
-                    <include>**/*</include>
-                </includes>
-            </resource>
-            <resource>
-                <directory>target/generated</directory>
-                <includes>
-                    <include>**/*</include>
-                </includes>
-                <filtering>false</filtering>
-            </resource>
-        </resources>
-    </build>
-
-</project>
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+
+    Copyright 2005 The Apache Software Foundation
+
+    Licensed under the Apache License, Version 2.0 (the "License");
+    you may not use this file except in compliance with the License.
+    You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+    
+-->
+
+<project>
+    <pomVersion>3</pomVersion>
+    <extend>${basedir}/../etc/project.xml</extend>
+
+    <name>ServiceMix :: Core</name>
+    <id>servicemix-core</id>
+
+    <dependencies>
+        <dependency>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>servicemix-jbi</artifactId>
+            <version>${pom.currentVersion}</version>
+            <properties>
+                <eclipse.dependency>true</eclipse.dependency>
+            </properties>
+        </dependency>
+
+        <dependency>
+            <groupId>mx4j</groupId>
+            <artifactId>mx4j</artifactId>
+            <version>${mx4j_version}</version>
+        </dependency>
+        <dependency>
+            <groupId>mx4j</groupId>
+            <artifactId>mx4j-remote</artifactId>
+            <version>${mx4j_remote_version}</version>
+        </dependency>
+        <dependency>
+            <groupId>mx4j</groupId>
+            <artifactId>mx4j-tools</artifactId>
+            <version>${mx4j_tools_version}</version>
+        </dependency>
+
+        <!--For remote management tasks-->
+
+        <dependency>
+            <id>ant</id>
+            <version>${ant_version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>commons-logging</groupId>
+            <artifactId>commons-logging</artifactId>
+            <version>${commons_logging_version}</version>
+            <url>http://jakarta.apache.org/commons/logging/</url>
+        </dependency>
+
+        <dependency>
+            <groupId>log4j</groupId>
+            <artifactId>log4j</artifactId>
+            <version>${log4j_version}</version>
+        </dependency>
+
+        <dependency>
+            <id>lucene</id>
+            <version>${lucene_version}</version>
+        </dependency>
+
+        <dependency>
+            <id>concurrent</id>
+            <version>${concurrent_version}</version>
+        </dependency>
+
+        <dependency>
+            <id>backport-util-concurrent</id>
+            <version>${backport_util_concurrent_version}</version>
+        </dependency>
+
+        <dependency>
+            <id>wsdl4j</id>
+            <version>${wsdl4j_version}</version>
+        </dependency>
+
+        <dependency>
+            <id>commons-beanutils</id>
+            <version>${commons_beanutils_version}</version>
+        </dependency>
+
+
+        <!-- for DOM, SAX, StAX and XPath support -->
+        <dependency>
+            <groupId>servicemix</groupId>
+            <artifactId>jaxp</artifactId>
+            <version>${jaxp_version}</version>
+        </dependency>
+
+        <dependency>
+            <id>stax+api</id>
+            <version>${stax_api_version}</version>
+        </dependency>
+
+        <dependency>
+            <id>jaxen</id>
+            <version>${jaxen_version}</version>
+        </dependency>
+
+        <!-- possible StAX implementations: START -->
+
+        <!-- fast implementation of StAX -->
+        <dependency>
+            <groupId>woodstox</groupId>
+            <artifactId>wstx-asl</artifactId>
+            <version>${woodstox_version}</version>
+        </dependency>
+
+
+        <!-- possible StAX implementations: END -->
+
+
+        <dependency>
+            <groupId>xerces</groupId>
+            <artifactId>xercesImpl</artifactId>
+            <version>${xercesImpl_version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>xml-apis</groupId>
+            <artifactId>xml-apis</artifactId>
+            <version>${xml_apis_version}</version>
+        </dependency>
+
+        <!-- mostly included for some DOM/SAX tools we could maybe replace with JAXP versions -->
+        <dependency>
+            <id>xalan</id>
+            <version>${xalan_version}</version>
+        </dependency>
+
+
+        <!-- for spring integration -->
+        <dependency>
+            <groupId>springframework</groupId>
+            <artifactId>spring</artifactId>
+            <version>${spring_version}</version>
+        </dependency>
+
+
+        <!-- utility library for adapting StAX to SAX and JAXP Source -->
+        <dependency>
+            <groupId>servicemix</groupId>
+            <artifactId>stax-utils</artifactId>
+            <version>${stax_utils_version}</version>
+        </dependency>
+
+
+        <!-- J2EE JARs -->
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-jms_1.1_spec</artifactId>
+            <version>${geronimo_spec_jms_version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-servlet_2.4_spec</artifactId>
+            <version>${geronimo_spec_servlet_version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-jta_1.0.1B_spec</artifactId>
+            <version>${geronimo_spec_jta_version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-j2ee-management_1.0_spec</artifactId>
+            <version>${geronimo_spec_j2ee_management_version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-j2ee-connector_1.5_spec</artifactId>
+            <version>${geronimo_spec_j2ee_connector_version}</version>
+        </dependency>
+        <dependency>
+	    <groupId>org.apache.geronimo.specs</groupId>
+	    <artifactId>geronimo-activation_1.0.2_spec</artifactId>
+	    <version>${geronimo_spec_activation_version}</version>
+        </dependency>
+
+
+        <!--  for custom XML parsing -->
+        <dependency>
+            <groupId>org.apache.xbean</groupId>
+            <artifactId>xbean-spring</artifactId>
+            <version>${xbean_version}</version>
+            <url>http://www.xbean.org</url>
+        </dependency>
+        <dependency>
+            <groupId>annogen</groupId>
+            <artifactId>annogen</artifactId>
+            <version>${annogen_version}</version>
+        </dependency>
+        <dependency>
+            <groupId>qdox</groupId>
+            <artifactId>qdox</artifactId>
+            <version>${qdox_version}</version>
+        </dependency>
+
+        <!-- JCA container and transaction manaqer -->
+        <dependency>
+            <id>jencks+all</id>
+            <version>${jencks_version}</version>
+        </dependency>
+
+        <dependency>
+            <id>lingo</id>
+            <version>${lingo_version}</version>
+        </dependency>
+        <dependency>
+            <groupId>xmlbeans</groupId>
+            <artifactId>xmlpublic</artifactId>
+            <version>${xmlbeans_version}</version>
+        </dependency>
+        <dependency>
+            <groupId>xmlbeans</groupId>
+            <artifactId>xbean</artifactId>
+            <version>${xmlbeans_version}</version>
+        </dependency>
+
+
+        <!-- default JMS provider used for implementation -->
+
+
+        <!--  for ActiveMQ 4.x -->
+        <dependency>
+            <groupId>activeio</groupId>
+            <artifactId>activeio</artifactId>
+            <version>${activeio_version}</version>
+        </dependency>
+        <dependency>
+            <groupId>incubator-activemq</groupId>
+            <artifactId>activemq-core</artifactId>
+            <version>${activemq_version}</version>
+        </dependency>
+        <dependency>
+            <groupId>incubator-activemq</groupId>
+            <artifactId>activemq-ra</artifactId>
+            <version>${activemq_version}</version>
+        </dependency>
+
+        <!-- for XStream component -->
+        <!-- optional jars for XStream marshalling -->
+        <dependency>
+            <id>xstream</id>
+            <version>${xstream_version}</version>
+        </dependency>
+
+        <!--
+          || Dependencies for running test cases
+        -->
+
+        <!-- for pooling JMS and other resources -->
+        <dependency>
+            <groupId>commons-collections</groupId>
+            <artifactId>commons-collections</artifactId>
+            <version>${commons_collections_version}</version>
+        </dependency>
+        <dependency>
+            <groupId>commons-pool</groupId>
+            <artifactId>commons-pool</artifactId>
+            <version>${commons_pool_version}</version>
+        </dependency>
+
+        <!-- optional used for in-web container testing -->
+        <dependency>
+            <groupId>jetty</groupId>
+            <artifactId>jetty</artifactId>
+            <version>${jetty_version}</version>
+        </dependency>
+        <dependency>
+            <groupId>tomcat</groupId>
+            <artifactId>jasper-compiler-jdt</artifactId>
+            <version>${jasper_version}</version>
+        </dependency>
+        <dependency>
+            <groupId>tomcat</groupId>
+            <artifactId>jasper-compiler</artifactId>
+            <version>${jasper_version}</version>
+        </dependency>
+        <dependency>
+            <groupId>tomcat</groupId>
+            <artifactId>jasper-runtime</artifactId>
+            <version>${jasper_version}</version>
+        </dependency>
+
+
+        <!-- default database for ActiveMQ -->
+        <!-- To create Pooled DataSources for the JDBC message store -->
+        <dependency>
+            <groupId>commons-dbcp</groupId>
+            <artifactId>commons-dbcp</artifactId>
+            <version>${commons_dbcp_version}</version>
+        </dependency>
+
+        <!-- JNDI provider for binary release -->
+        <dependency>
+            <groupId>simple-jndi</groupId>
+            <artifactId>simple-jndi</artifactId>
+            <version>${simple_jndi_version}</version>
+        </dependency>
+
+        <!-- for unit test cases -->
+        <dependency>
+            <id>junit</id>
+            <version>${junit_version}</version>
+        </dependency>
+
+        <!-- example database for testing -->
+        <dependency>
+            <id>hsqldb</id>
+            <version>${hsqldb_version}</version>
+        </dependency>
+        
+        <dependency>
+            <groupId>org.apache.db.ddlutils</groupId>
+            <artifactId>ddlutils</artifactId>
+            <version>${ddlutils_version}</version>
+        </dependency>
+        <dependency>
+            <groupId>commons-lang</groupId>
+            <artifactId>commons-lang</artifactId>
+            <version>${commons_lang_version}</version>
+        </dependency>
+
+ 	<dependency>
+	    <groupId>easymock</groupId>
+	    <artifactId>easymock</artifactId>
+	    <version>${easymock_version}</version>
+	</dependency>
+
+    </dependencies>
+
+    <build>
+        <unitTest>
+            <resources>
+                <resource>
+                    <directory>src/test/resources</directory>
+                    <includes>
+                        <include>**/*.properties</include>
+                        <include>**/*.x*</include>
+                        <include>**/*.wsdl</include>
+                        <include>**/*.zip</include>
+                    </includes>
+                </resource>
+                <resource>
+                    <directory>src/test/components</directory>
+                    <includes>
+                        <include>**/*.jar</include>
+                        <include>**/*.x*</include>
+                        <include>**/*.zip</include>
+                    </includes>
+                </resource>
+                <resource>
+                    <directory>src/test/assemblies</directory>
+                    <includes>
+                        <include>**/*.jar</include>
+                        <include>**/*.zip</include>
+                    </includes>
+                </resource>
+            </resources>
+            <includes>
+                <include>**/*Test.*</include>
+            </includes>
+            <excludes>
+                <!--  exclude abstract tests -->                
+                <exclude>**/Abstract*Test.*</exclude>
+								
+                <!-- fails on some platforms due to ActiveCluster issue -->                
+                <exclude>**/ClusterFlow*.*</exclude>
+                <exclude>**/JmsFlow*.*</exclude>
+                <exclude>**/JcaFlowPersistentTest.*</exclude>
+                <exclude>**/JcaFlowTransactionTest.*</exclude>                          
+                				
+                <!-- test cases hangs -->
+                <exclude>**/SimpleClusterSendSyncTest.*</exclude>
+                
+
+                <!-- fails in some linux platform due to missing lib libXp.so.6 -->
+                <exclude>**/ServiceMixComponentTest.*</exclude>
+                <exclude>**/ExplodedComponentInstallationTest.*</exclude>
+                <exclude>**/ComponentInstallationTest.*</exclude>
+                <exclude>**/ComponentAssemblyInstallationTest.*</exclude>
+                <exclude>**/DeploymentTest.*</exclude>
+                
+                <!-- Succeed in Eclipse, but fail with maven, why ? 
+                     This may be related to activemq jmx stuff
+                -->
+                <exclude>**/AdminServiceTest.*</exclude>
+                <exclude>**/ManagementAttributesTest.*</exclude>
+                <exclude>**/ManagementContextTest.*</exclude>
+                
+                <!-- fail on non windows platform, why ? -->
+                <exclude>**/HotDeployTest.*</exclude>
+
+                <!-- http://jira.activemq.org/jira/browse/SM-310 -->
+                <exclude>**/JMSFlowTest.*</exclude>
+                
+            </excludes>
+        </unitTest>
+        <resources>
+            <resource>
+                <directory>src/main/resources</directory>
+                <includes>
+                    <include>**/*.properties</include>
+                    <include>**/*.xml</include>
+                    <include>**/*</include>
+                </includes>
+            </resource>
+            <resource>
+                <directory>target/generated</directory>
+                <includes>
+                    <include>**/*</include>
+                </includes>
+                <filtering>false</filtering>
+            </resource>
+        </resources>
+    </build>
+
+</project>

Propchange: incubator/servicemix/trunk/servicemix-core/project.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/components/util/BinaryFileMarshaler.java
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/components/util/BinaryFileMarshaler.java?rev=379627&r1=379626&r2=379627&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/components/util/BinaryFileMarshaler.java (original)
+++ incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/components/util/BinaryFileMarshaler.java Tue Feb 21 15:40:05 2006
@@ -1,77 +1,77 @@
-/*
- * Copyright 2005-2006 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.servicemix.components.util;
-
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-
-import javax.activation.DataHandler;
-import javax.activation.DataSource;
-import javax.jbi.JBIException;
-import javax.jbi.messaging.MessageExchange;
-import javax.jbi.messaging.MessagingException;
-import javax.jbi.messaging.NormalizedMessage;
-
-import org.apache.servicemix.jbi.util.FileUtil;
-import org.apache.servicemix.jbi.util.StreamDataSource;
-
-/**
- * A FileMarshaler that converts the given input stream into a binary attachment.
- * 
- * @author Guillaume Nodet
- * @since 3.0
- */
-public class BinaryFileMarshaler extends DefaultFileMarshaler {
-
-	private String attachment = "content";
-	private String contentType = null;
-
-	public String getAttachment() {
-		return attachment;
-	}
-
-	public void setAttachment(String attachment) {
-		this.attachment = attachment;
-	}
-	
-	public String getContentType() {
-		return contentType;
-	}
-
-	public void setContentType(String contentType) {
-		this.contentType = contentType;
-	}
-
-    public void readMessage(MessageExchange exchange, NormalizedMessage message, InputStream in, String path) throws IOException, JBIException {
-    	DataSource ds = new StreamDataSource(in, contentType);
-    	DataHandler handler = new DataHandler(ds);
-    	message.addAttachment(attachment, handler);
-        message.setProperty(FILE_NAME_PROPERTY, new File(path).getName());
-        message.setProperty(FILE_PATH_PROPERTY, path);
-    }
-
-	public void writeMessage(MessageExchange exchange, NormalizedMessage message, OutputStream out, String path) throws IOException, JBIException {
-		DataHandler handler = message.getAttachment(attachment);
-		if (attachment == null) {
-			throw new MessagingException("Could not find attachment: " + attachment);
-		}
-		InputStream is = handler.getInputStream();
-		FileUtil.copyInputStream(is, out);
-	}
-
-}
+/*
+ * Copyright 2005-2006 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.servicemix.components.util;
+
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+
+import javax.activation.DataHandler;
+import javax.activation.DataSource;
+import javax.jbi.JBIException;
+import javax.jbi.messaging.MessageExchange;
+import javax.jbi.messaging.MessagingException;
+import javax.jbi.messaging.NormalizedMessage;
+
+import org.apache.servicemix.jbi.util.FileUtil;
+import org.apache.servicemix.jbi.util.StreamDataSource;
+
+/**
+ * A FileMarshaler that converts the given input stream into a binary attachment.
+ * 
+ * @author Guillaume Nodet
+ * @since 3.0
+ */
+public class BinaryFileMarshaler extends DefaultFileMarshaler {
+
+	private String attachment = "content";
+	private String contentType = null;
+
+	public String getAttachment() {
+		return attachment;
+	}
+
+	public void setAttachment(String attachment) {
+		this.attachment = attachment;
+	}
+	
+	public String getContentType() {
+		return contentType;
+	}
+
+	public void setContentType(String contentType) {
+		this.contentType = contentType;
+	}
+
+    public void readMessage(MessageExchange exchange, NormalizedMessage message, InputStream in, String path) throws IOException, JBIException {
+    	DataSource ds = new StreamDataSource(in, contentType);
+    	DataHandler handler = new DataHandler(ds);
+    	message.addAttachment(attachment, handler);
+        message.setProperty(FILE_NAME_PROPERTY, new File(path).getName());
+        message.setProperty(FILE_PATH_PROPERTY, path);
+    }
+
+	public void writeMessage(MessageExchange exchange, NormalizedMessage message, OutputStream out, String path) throws IOException, JBIException {
+		DataHandler handler = message.getAttachment(attachment);
+		if (attachment == null) {
+			throw new MessagingException("Could not find attachment: " + attachment);
+		}
+		InputStream is = handler.getInputStream();
+		FileUtil.copyInputStream(is, out);
+	}
+
+}

Propchange: incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/components/util/BinaryFileMarshaler.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/EnvironmentContextMBean.java
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/EnvironmentContextMBean.java?rev=379627&r1=379626&r2=379627&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/EnvironmentContextMBean.java (original)
+++ incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/EnvironmentContextMBean.java Tue Feb 21 15:40:05 2006
@@ -1,22 +1,22 @@
-/*
- * Copyright 2005-2006 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.servicemix.jbi.container;
-
-import javax.jbi.management.LifeCycleMBean;
-
-public interface EnvironmentContextMBean extends LifeCycleMBean {
-
-}
+/*
+ * Copyright 2005-2006 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.servicemix.jbi.container;
+
+import javax.jbi.management.LifeCycleMBean;
+
+public interface EnvironmentContextMBean extends LifeCycleMBean {
+
+}

Propchange: incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/EnvironmentContextMBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/AdminCommandsService.java
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/AdminCommandsService.java?rev=379627&r1=379626&r2=379627&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/AdminCommandsService.java (original)
+++ incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/AdminCommandsService.java Tue Feb 21 15:40:05 2006
@@ -1,562 +1,562 @@
-/*
- * Copyright 2005-2006 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.servicemix.jbi.framework;
-
-import org.apache.servicemix.jbi.management.BaseSystemService;
-import org.apache.servicemix.jbi.management.OperationInfoHelper;
-import org.apache.servicemix.jbi.management.ParameterHelper;
-
-import javax.jbi.JBIException;
-import javax.jbi.management.DeploymentException;
-import javax.management.MBeanOperationInfo;
-import javax.management.JMException;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Properties;
-
-public class AdminCommandsService extends BaseSystemService implements AdminCommandsServiceMBean {
-
-    /**
-     * @return a description of this
-     */
-    public String getDescription() {
-        return "Admin Commands Service";
-    }
-    
-    protected Class getServiceMBean() {
-        return AdminCommandsServiceMBean.class;
-    }
-
-    /**
-     * Install a JBI component (a Service Engine or Binding Component)
-     *
-     * @param file
-     * @return
-     */
-    public String installComponent(String file) throws Exception {
-        return installComponent(file, null);
-    }
-    
-    /**
-     * Install a JBI component (a Service Engine or Binding Component)
-     *
-     * @param file jbi component archive to install
-     * @param props installation properties
-     * @return
-     */
-    public String installComponent(String file, Properties props) throws Exception {
-        try {
-            container.getInstallationService().install(file);
-            return success("installComponent", file);
-
-        } catch (DeploymentException e) {
-            throw new RuntimeException(failure("installComponent", file, null, e));
-        } catch (Exception e) {
-            throw new RuntimeException(failure("installComponent", file, null, e));
-        }
-    }
-
-    /**
-     * Uninstalls a previously install JBI Component (a Service Engine or Binding Component)
-     *
-     * @param name
-     * @return
-     */
-    public String uninstallComponent(String name) throws Exception {
-        boolean success = container.getInstallationService().unloadInstaller(name, true);
-        if (success) {
-            return success("uninstallComponent", name);
-        } else {
-            return failure("uninstallComponent", name, "Failed", null);
-        }
-    }
-
-    /**
-     * Installs a Shared Library.
-     *
-     * @param file
-     * @return
-     */
-    public String installSharedLibrary(String file) throws Exception {
-        return container.getInstallationService().installSharedLibrary(file);
-    }
-
-    /**
-     * Uninstalls a previously installed Shared Library.
-     *
-     * @param name
-     * @return
-     */
-    public String uninstallSharedLibrary(String name) throws Exception {
-        boolean success = container.getInstallationService().uninstallSharedLibrary(name);
-        if (success) {
-            return success("uninstallSharedLibrary", name);
-        } else {
-            return failure("uninstallSharedLibrary", name, "Failed", null);
-        }
-    }
-
-    /**
-     * Starts a particular Component (Service Engine or Binding Component).
-     *
-     * @param name
-     * @return
-     */
-    public String startComponent(String name) throws Exception {
-        try {
-            ComponentNameSpace cns = new ComponentNameSpace(container.getName(), name, name);
-            LocalComponentConnector lcc = container.getRegistry().getLocalComponentConnector(cns);
-            if (lcc == null) {
-                throw new JBIException("Component " + name + " not found");
-            }
-            lcc.getComponentMBean().start();
-            return success("startComponent", name);
-        } catch (JBIException e) {
-            throw new RuntimeException(failure("startComponent", name, null, e));
-        }
-    }
-
-    /**
-     * Stops a particular Component (Service Engine or Binding Component).
-     *
-     * @param name
-     * @return
-     */
-    public String stopComponent(String name) throws Exception {
-        try {
-            ComponentNameSpace cns = new ComponentNameSpace(container.getName(), name, name);
-            LocalComponentConnector lcc = container.getRegistry().getLocalComponentConnector(cns);
-            if (lcc == null) {
-                throw new JBIException("Component " + name + " not found");
-            }
-            lcc.getComponentMBean().stop();
-            return success("stopComponent", name);
-        } catch (JBIException e) {
-            throw new RuntimeException(failure("stopComponent", name, null, e));
-        }
-    }
-
-    /**
-     * Shuts down a particular Component.
-     *
-     * @param name
-     * @return
-     */
-    public String shutdownComponent(String name) throws Exception {
-        try {
-            ComponentNameSpace cns = new ComponentNameSpace(container.getName(), name, name);
-            LocalComponentConnector lcc = container.getRegistry().getLocalComponentConnector(cns);
-            if (lcc == null) {
-                throw new JBIException("Component " + name + " not found");
-            }
-            lcc.getComponentMBean().shutDown();
-            return success("shutdownComponent", name);
-        } catch (JBIException e) {
-            throw new RuntimeException(failure("shutdownComponent", name, null, e));
-        }
-    }
-
-    /**
-     * Deploys a Service Assembly.
-     *
-     * @param file
-     * @return
-     */
-    public String deployServiceAssembly(String file) throws Exception {
-        try {
-            container.getDeploymentService().deploy(file);
-            return success("installComponent", file);
-
-        } catch (Exception e) {
-            throw new RuntimeException(failure("deployServiceAssembly", file, null, e));
-        }
-    }
-
-    /**
-     * Undeploys a previously deployed service assembly.
-     *
-     * @param name
-     * @return
-     */
-    public String undeployServiceAssembly(String name) throws Exception {
-        try {
-            container.getDeploymentService().undeploy(name);
-            return success("undeployServiceAssembly", name);
-
-        } catch (Exception e) {
-            throw new RuntimeException(failure("undeployServiceAssembly", name, null, e));
-        }
-    }
-
-    /**
-     * Starts a service assembly.
-     *
-     * @param name
-     * @return
-     */
-    public String startServiceAssembly(String name) throws Exception {
-        try {
-            container.getDeploymentService().start(name);
-            return success("startServiceAssembly", name);
-
-        } catch (Exception e) {
-            throw new RuntimeException(failure("startServiceAssembly", name, null, e));
-        }
-    }
-
-    /**
-     * Stops a particular service assembly.
-     *
-     * @param name
-     * @return
-     */
-    public String stopServiceAssembly(String name) throws Exception {
-        try {
-            container.getDeploymentService().stop(name);
-            return success("stopServiceAssembly", name);
-
-        } catch (Exception e) {
-            throw new RuntimeException(failure("stopServiceAssembly", name, null, e));
-        }
-    }
-
-    /**
-     * Shuts down a particular service assembly.
-     *
-     * @param name
-     * @return
-     */
-    public String shutdownServiceAssembly(String name) throws Exception {
-        try {
-            container.getDeploymentService().shutDown(name);
-            return success("shutdownServiceAssembly", name);
-
-        } catch (Exception e) {
-            throw new RuntimeException(failure("shutdownServiceAssembly", name, null, e));
-        }
-    }
-    
-   
-    /**
-     * load an archive from an external location and starts it
-     * The archive can be a Component, Service Assembly or Shared Library.
-     * @param location - can either be a url or filename (if relative - must be relative to the container)
-     * @return status
-     * @throws Exception 
-     */
-    public String installArchive(String location) throws Exception{
-        try {
-            container.updateExternalArchive(location);
-            return success("installArchive", location);
-
-        } catch (Exception e) {
-            throw new RuntimeException(failure("shutdownServiceAssembly", location, null, e));
-        }
-    }
-    
-    /**
-     * Prints information about all components (Service Engine or Binding Component) installed
-     *
-     * @param serviceEngines
-     * @param bindingComponents
-     * @param state
-     * @param sharedLibraryName
-     * @param serviceAssemblyName
-     * @return list of components in an XML blob
-     */
-    public String listComponents(boolean serviceEngines, boolean bindingComponents, String state, String sharedLibraryName, String serviceAssemblyName) throws Exception {
-        return listAllComponents(serviceEngines, bindingComponents, state, sharedLibraryName, serviceAssemblyName, true);
-    }
-    
-    /**
-     * Prints information about all JBI components (Service Engine or Binding Component) installed
-     *
-     * @param serviceEngines
-     * @param bindingComponents
-     * @param state
-     * @param sharedLibraryName
-     * @param serviceAssemblyName
-     * @return
-     */
-    public String listJBIComponents(boolean serviceEngines, boolean bindingComponents, String state, String sharedLibraryName, String serviceAssemblyName) throws Exception {
-        return listAllComponents(serviceEngines, bindingComponents, state, sharedLibraryName, serviceAssemblyName, false);
-    }
-
-    /**
-     * Prints information about all components (Service Engine or Binding Component) installed
-     *
-     * @param serviceEngines
-     * @param bindingComponents
-     * @param state
-     * @param sharedLibraryName
-     * @param serviceAssemblyName
-     * @return
-     */
-    public String listAllComponents(boolean serviceEngines, boolean bindingComponents, String state, String sharedLibraryName, String serviceAssemblyName, boolean pojo) throws Exception {
-        Collection connectors = container.getRegistry().getLocalComponentConnectors();
-        List components = new ArrayList();
-        for (Iterator iter = connectors.iterator(); iter.hasNext();) {
-            LocalComponentConnector lcc = (LocalComponentConnector) iter.next();
-
-            // If we want SE, and it is not one, skip
-            if (!serviceEngines && !lcc.isService()) {
-                continue;
-            }
-            // If we want BC, and it is not one, skip
-            if (!bindingComponents && !lcc.isBinding()) {
-                continue;
-            }
-            // Check status
-            if (state != null && state.length() > 0 && !state.equals(lcc.getComponentMBean().getCurrentState())) {
-                System.out.println("state passed");
-                continue;
-            }
-
-            // Check shared library
-            if (sharedLibraryName != null && sharedLibraryName.length() > 0 && !container.getInstallationService().containsSharedLibrary(sharedLibraryName)) {
-                continue;
-            }
-
-            // Check deployed service assembly
-            if (serviceAssemblyName != null && serviceAssemblyName.length() > 0 && !container.getDeploymentService().isSaDeployed(serviceAssemblyName)) {
-                continue;
-            }
-            
-            if (lcc.isPojo() && !pojo){
-                continue;
-            }
-
-            components.add(lcc);
-        }
-
-        StringBuffer buffer = new StringBuffer();
-        buffer.append("<?xml version='1.0'?>\n");
-        buffer.append("<component-info-list xmlns='http://java.sun.com/xml/ns/jbi/component-info-list' version='1.0'>\n");
-        for (Iterator iter = components.iterator(); iter.hasNext();) {
-            LocalComponentConnector lcc = (LocalComponentConnector) iter.next();
-            buffer.append("\t<component-info>");
-            if (!lcc.isBinding() && lcc.isService()) {
-                buffer.append(" type='service-engine'");
-            } else if (lcc.isBinding() && !lcc.isService()) {
-                buffer.append(" type='binding-component'");
-            }
-            buffer.append(" name='" + lcc.getComponentNameSpace().getName() + "'");
-            buffer.append(" state='" + lcc.getComponentMBean().getCurrentState() + "'>");
-            if (lcc.getPacket().getDescription() != null) {
-                buffer.append("\t\t<description>");
-                buffer.append(lcc.getPacket().getDescription());
-                buffer.append("<description>\n");
-            }
-            buffer.append("\t</component-info>\n");
-        }
-        buffer.append("</component-info-list>");
-        return buffer.toString();
-    }
-    
-    /**
-     * Prints information about all  Pojo components installed    
-     * @return XML string
-     */
-    public String listPojoComponents() throws Exception {
-        Collection connectors = container.getRegistry().getLocalComponentConnectors();
-        List components = new ArrayList();
-        for(Iterator iter=connectors.iterator();iter.hasNext();){
-            LocalComponentConnector lcc=(LocalComponentConnector) iter.next();
-            if(lcc.isPojo()){
-                components.add(lcc);
-            }
-        }
-
-        StringBuffer buffer = new StringBuffer();
-        buffer.append("<?xml version='1.0'?>\n");
-        buffer.append("<component-info-list xmlns='http://java.sun.com/xml/ns/jbi/component-info-list' version='1.0'>\n");
-        for (Iterator iter = components.iterator(); iter.hasNext();) {
-            LocalComponentConnector lcc = (LocalComponentConnector) iter.next();
-            buffer.append(" name='" + lcc.getComponentNameSpace().getName() + "'");
-            buffer.append(" state='" + lcc.getComponentMBean().getCurrentState() + "'>");
-            if (lcc.getPacket().getDescription() != null) {
-                buffer.append("\t\t<description>");
-                buffer.append(lcc.getPacket().getDescription());
-                buffer.append("<description>\n");
-            }
-            buffer.append("\t</component-info>\n");
-        }
-        buffer.append("</component-info-list>");
-        return buffer.toString();
-    }
-
-    /**
-     * Prints information about shared libraries installed.
-     *
-     * @param componentName
-     * @param sharedLibraryName
-     * @return
-     */
-    public String listSharedLibraries(String componentName, String sharedLibraryName) throws Exception {
-        // TODO Auto-generated method stub
-        return null;
-    }
-
-    /**
-     * Prints information about service assemblies deployed.
-     *
-     * @param state
-     * @param componentName
-     * @param serviceAssemblyName
-     * @return
-     */
-    public String listServiceAssemblies(String state, String componentName, String serviceAssemblyName) throws Exception {
-        String[] result = null;
-        if (null != serviceAssemblyName && serviceAssemblyName.length() > 0) {
-            result = new String[]{serviceAssemblyName};
-        } else if (null != componentName && componentName.length() > 0) {
-            result = container.getRegistry().getDeployedServiceAssembliesForComponent(componentName);
-        } else {
-            result = container.getRegistry().getDeployedServiceAssemblies();
-        }
-
-        List components = new ArrayList();
-        for (int i = 0; i < result.length; i++) {
-            // Check status
-            if (state != null && state.length() > 0 && !state.equals(container.getRegistry().getServiceAssemblyState(result[i]))) {
-                continue;
-            }
-            components.add(result[i]);
-        }
-
-        StringBuffer buffer = new StringBuffer();
-        buffer.append("<?xml version='1.0'?>\n");
-        buffer.append("<service-assembly-info-list xmlns='http://java.sun.com/xml/ns/jbi/component-info-list' version='1.0'>\n");
-        for (Iterator iter = components.iterator(); iter.hasNext();) {
-            String name = (String) iter.next();
-
-            buffer.append("\t<service-assembly-info");
-            buffer.append(" name='" + name + "'");
-            buffer.append(" state='" + container.getRegistry().getServiceAssemblyState(name) + "'/>");
-            buffer.append(" <description>" + container.getRegistry().getServiceAssemblyDesc(name) + "</description>");
-            buffer.append("\t</service-assembly-info>\n");
-
-            String[] serviceUnitList = container.getRegistry().getSADeployedServiceUnitList(name);
-            for (int i = 0; i < serviceUnitList.length; i++) {
-                buffer.append("\t<service-unit-info");
-                buffer.append(" name='" + serviceUnitList[i] + "'");
-                buffer.append(" state='" + container.getRegistry().getSADeployedServiceUnitDesc(name, serviceUnitList[i]) + "/>");
-                buffer.append("\t</service-unit-info");
-            }
-        }
-        buffer.append("</service-assembly-info-list>");
-
-        return buffer.toString();
-    }
-
-    public String failure(String task, String componentName, String info, Exception e) {
-        ManagementSupport.Message msg = new ManagementSupport.Message();
-        msg.setComponent(componentName);
-        msg.setTask(task);
-        msg.setResult("FAILED");
-        msg.setType("ERROR");
-        msg.setException(e);
-        msg.setMessage(info);
-        return ManagementSupport.createComponentMessage(msg);
-    }
-
-    public String success(String task, String componentName) {
-        ManagementSupport.Message msg = new ManagementSupport.Message();
-        msg.setComponent(componentName);
-        msg.setTask(task);
-        msg.setResult("SUCCESS");
-        // TODO: change the generated xml
-        return ManagementSupport.createComponentMessage(msg);
-    }
-
-    public MBeanOperationInfo[] getOperationInfos() throws JMException {
-        OperationInfoHelper helper = new OperationInfoHelper();
-        ParameterHelper ph = helper.addOperation(getObjectToManage(), "installComponent",1, "install a component");
-        ph.setDescription(0, "file", "location of JBI Component to install");
-
-        ph = helper.addOperation(getObjectToManage(), "uninstallComponent", 1, "uninstall a component");
-        ph.setDescription(0, "name", "component name to uninstall");
-
-        ph = helper.addOperation(getObjectToManage(), "installSharedLibrary", 1, "install a shared library");
-        ph.setDescription(0, "file", "location of shared library to install");
-
-        ph = helper.addOperation(getObjectToManage(), "uninstallSharedLibrary", 1, "uninstall a shared library");
-        ph.setDescription(0, "name", "name of shared library to uninstall");
-        
-        ph = helper.addOperation(getObjectToManage(), "installArchive", 1, "install an archive (component/SA etc)");
-        ph.setDescription(0, "location", "file name or url to the location");
-        
-
-        ph = helper.addOperation(getObjectToManage(), "startComponent", 1, "start a component");
-        ph.setDescription(0, "name", "name of component to start");
-
-        ph = helper.addOperation(getObjectToManage(), "stopComponent", 1, "stop a component");
-        ph.setDescription(0, "name", "name of component to stop");
-
-        ph = helper.addOperation(getObjectToManage(), "shutdownComponent", 1, "shutdown a component");
-        ph.setDescription(0, "name", "name of component to shutdown");
-
-        ph = helper.addOperation(getObjectToManage(), "deployServiceAssembly", 1, "deploy a service assembly");
-        ph.setDescription(0, "file", "location of service assembly to deploy");
-
-        ph = helper.addOperation(getObjectToManage(), "undeployServiceAssembly", 1, "undeploy a service assembly");
-        ph.setDescription(0, "name", "name of service assembly to undeploy");
-
-        ph = helper.addOperation(getObjectToManage(), "startServiceAssembly", 1, "start a service assembly");
-        ph.setDescription(0, "name", "name of service assembly to start");
-
-        ph = helper.addOperation(getObjectToManage(), "stopServiceAssembly", 1, "stop a service assembly");
-        ph.setDescription(0, "name", "name of service assembly to stop");
-
-        ph = helper.addOperation(getObjectToManage(), "shutdownServiceAssembly", "shutdown a service assembly");
-        ph.setDescription(0, "name", "name of service assembly to shutdown");
-
-        ph = helper.addOperation(getObjectToManage(), "listComponents", 5, "list all components installed");
-        ph.setDescription(0, "serviceEngines", "if true will list service engines");
-        ph.setDescription(1, "bindingComponents", "if true will list binding components");
-        ph.setDescription(2, "state", "component state to list, if null will list all");
-        ph.setDescription(3, "sharedLibraryName", "shared library name to list");
-        ph.setDescription(4, "serviceAssemblyName", "service assembly name to list");
-        
-        ph = helper.addOperation(getObjectToManage(), "listJBIComponents", 5, "list JBI components installed");
-        ph.setDescription(0, "serviceEngines", "if true will list service engines");
-        ph.setDescription(1, "bindingComponents", "if true will list binding components");
-        ph.setDescription(2, "state", "component state to list, if null will list all");
-        ph.setDescription(3, "sharedLibraryName", "shared library name to list");
-        ph.setDescription(4, "serviceAssemblyName", "service assembly name to list");
-        
-        ph = helper.addOperation(getObjectToManage(), "listPojoComponents", "list all POJO Components");
-
-        ph = helper.addOperation(getObjectToManage(), "listSharedLibraries", 2, "list shared library");
-        ph.setDescription(0, "componentName", "component name");
-        ph.setDescription(1, "sharedLibraryName", "shared library name");
-
-        ph = helper.addOperation(getObjectToManage(), "listServiceAssemblies", 3, "list service assemblies");
-        ph.setDescription(0, "state", "service assembly state to list");
-        ph.setDescription(1, "componentName", "component name");
-        ph.setDescription(2, "serviceAssemblyName", "service assembly name");
-        
-        
-        
-        
-                
-
-        return OperationInfoHelper.join(super.getOperationInfos(), helper.getOperationInfos());
-    }
-
-}
+/*
+ * Copyright 2005-2006 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.servicemix.jbi.framework;
+
+import org.apache.servicemix.jbi.management.BaseSystemService;
+import org.apache.servicemix.jbi.management.OperationInfoHelper;
+import org.apache.servicemix.jbi.management.ParameterHelper;
+
+import javax.jbi.JBIException;
+import javax.jbi.management.DeploymentException;
+import javax.management.MBeanOperationInfo;
+import javax.management.JMException;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Properties;
+
+public class AdminCommandsService extends BaseSystemService implements AdminCommandsServiceMBean {
+
+    /**
+     * @return a description of this
+     */
+    public String getDescription() {
+        return "Admin Commands Service";
+    }
+    
+    protected Class getServiceMBean() {
+        return AdminCommandsServiceMBean.class;
+    }
+
+    /**
+     * Install a JBI component (a Service Engine or Binding Component)
+     *
+     * @param file
+     * @return
+     */
+    public String installComponent(String file) throws Exception {
+        return installComponent(file, null);
+    }
+    
+    /**
+     * Install a JBI component (a Service Engine or Binding Component)
+     *
+     * @param file jbi component archive to install
+     * @param props installation properties
+     * @return
+     */
+    public String installComponent(String file, Properties props) throws Exception {
+        try {
+            container.getInstallationService().install(file);
+            return success("installComponent", file);
+
+        } catch (DeploymentException e) {
+            throw new RuntimeException(failure("installComponent", file, null, e));
+        } catch (Exception e) {
+            throw new RuntimeException(failure("installComponent", file, null, e));
+        }
+    }
+
+    /**
+     * Uninstalls a previously install JBI Component (a Service Engine or Binding Component)
+     *
+     * @param name
+     * @return
+     */
+    public String uninstallComponent(String name) throws Exception {
+        boolean success = container.getInstallationService().unloadInstaller(name, true);
+        if (success) {
+            return success("uninstallComponent", name);
+        } else {
+            return failure("uninstallComponent", name, "Failed", null);
+        }
+    }
+
+    /**
+     * Installs a Shared Library.
+     *
+     * @param file
+     * @return
+     */
+    public String installSharedLibrary(String file) throws Exception {
+        return container.getInstallationService().installSharedLibrary(file);
+    }
+
+    /**
+     * Uninstalls a previously installed Shared Library.
+     *
+     * @param name
+     * @return
+     */
+    public String uninstallSharedLibrary(String name) throws Exception {
+        boolean success = container.getInstallationService().uninstallSharedLibrary(name);
+        if (success) {
+            return success("uninstallSharedLibrary", name);
+        } else {
+            return failure("uninstallSharedLibrary", name, "Failed", null);
+        }
+    }
+
+    /**
+     * Starts a particular Component (Service Engine or Binding Component).
+     *
+     * @param name
+     * @return
+     */
+    public String startComponent(String name) throws Exception {
+        try {
+            ComponentNameSpace cns = new ComponentNameSpace(container.getName(), name, name);
+            LocalComponentConnector lcc = container.getRegistry().getLocalComponentConnector(cns);
+            if (lcc == null) {
+                throw new JBIException("Component " + name + " not found");
+            }
+            lcc.getComponentMBean().start();
+            return success("startComponent", name);
+        } catch (JBIException e) {
+            throw new RuntimeException(failure("startComponent", name, null, e));
+        }
+    }
+
+    /**
+     * Stops a particular Component (Service Engine or Binding Component).
+     *
+     * @param name
+     * @return
+     */
+    public String stopComponent(String name) throws Exception {
+        try {
+            ComponentNameSpace cns = new ComponentNameSpace(container.getName(), name, name);
+            LocalComponentConnector lcc = container.getRegistry().getLocalComponentConnector(cns);
+            if (lcc == null) {
+                throw new JBIException("Component " + name + " not found");
+            }
+            lcc.getComponentMBean().stop();
+            return success("stopComponent", name);
+        } catch (JBIException e) {
+            throw new RuntimeException(failure("stopComponent", name, null, e));
+        }
+    }
+
+    /**
+     * Shuts down a particular Component.
+     *
+     * @param name
+     * @return
+     */
+    public String shutdownComponent(String name) throws Exception {
+        try {
+            ComponentNameSpace cns = new ComponentNameSpace(container.getName(), name, name);
+            LocalComponentConnector lcc = container.getRegistry().getLocalComponentConnector(cns);
+            if (lcc == null) {
+                throw new JBIException("Component " + name + " not found");
+            }
+            lcc.getComponentMBean().shutDown();
+            return success("shutdownComponent", name);
+        } catch (JBIException e) {
+            throw new RuntimeException(failure("shutdownComponent", name, null, e));
+        }
+    }
+
+    /**
+     * Deploys a Service Assembly.
+     *
+     * @param file
+     * @return
+     */
+    public String deployServiceAssembly(String file) throws Exception {
+        try {
+            container.getDeploymentService().deploy(file);
+            return success("installComponent", file);
+
+        } catch (Exception e) {
+            throw new RuntimeException(failure("deployServiceAssembly", file, null, e));
+        }
+    }
+
+    /**
+     * Undeploys a previously deployed service assembly.
+     *
+     * @param name
+     * @return
+     */
+    public String undeployServiceAssembly(String name) throws Exception {
+        try {
+            container.getDeploymentService().undeploy(name);
+            return success("undeployServiceAssembly", name);
+
+        } catch (Exception e) {
+            throw new RuntimeException(failure("undeployServiceAssembly", name, null, e));
+        }
+    }
+
+    /**
+     * Starts a service assembly.
+     *
+     * @param name
+     * @return
+     */
+    public String startServiceAssembly(String name) throws Exception {
+        try {
+            container.getDeploymentService().start(name);
+            return success("startServiceAssembly", name);
+
+        } catch (Exception e) {
+            throw new RuntimeException(failure("startServiceAssembly", name, null, e));
+        }
+    }
+
+    /**
+     * Stops a particular service assembly.
+     *
+     * @param name
+     * @return
+     */
+    public String stopServiceAssembly(String name) throws Exception {
+        try {
+            container.getDeploymentService().stop(name);
+            return success("stopServiceAssembly", name);
+
+        } catch (Exception e) {
+            throw new RuntimeException(failure("stopServiceAssembly", name, null, e));
+        }
+    }
+
+    /**
+     * Shuts down a particular service assembly.
+     *
+     * @param name
+     * @return
+     */
+    public String shutdownServiceAssembly(String name) throws Exception {
+        try {
+            container.getDeploymentService().shutDown(name);
+            return success("shutdownServiceAssembly", name);
+
+        } catch (Exception e) {
+            throw new RuntimeException(failure("shutdownServiceAssembly", name, null, e));
+        }
+    }
+    
+   
+    /**
+     * load an archive from an external location and starts it
+     * The archive can be a Component, Service Assembly or Shared Library.
+     * @param location - can either be a url or filename (if relative - must be relative to the container)
+     * @return status
+     * @throws Exception 
+     */
+    public String installArchive(String location) throws Exception{
+        try {
+            container.updateExternalArchive(location);
+            return success("installArchive", location);
+
+        } catch (Exception e) {
+            throw new RuntimeException(failure("shutdownServiceAssembly", location, null, e));
+        }
+    }
+    
+    /**
+     * Prints information about all components (Service Engine or Binding Component) installed
+     *
+     * @param serviceEngines
+     * @param bindingComponents
+     * @param state
+     * @param sharedLibraryName
+     * @param serviceAssemblyName
+     * @return list of components in an XML blob
+     */
+    public String listComponents(boolean serviceEngines, boolean bindingComponents, String state, String sharedLibraryName, String serviceAssemblyName) throws Exception {
+        return listAllComponents(serviceEngines, bindingComponents, state, sharedLibraryName, serviceAssemblyName, true);
+    }
+    
+    /**
+     * Prints information about all JBI components (Service Engine or Binding Component) installed
+     *
+     * @param serviceEngines
+     * @param bindingComponents
+     * @param state
+     * @param sharedLibraryName
+     * @param serviceAssemblyName
+     * @return
+     */
+    public String listJBIComponents(boolean serviceEngines, boolean bindingComponents, String state, String sharedLibraryName, String serviceAssemblyName) throws Exception {
+        return listAllComponents(serviceEngines, bindingComponents, state, sharedLibraryName, serviceAssemblyName, false);
+    }
+
+    /**
+     * Prints information about all components (Service Engine or Binding Component) installed
+     *
+     * @param serviceEngines
+     * @param bindingComponents
+     * @param state
+     * @param sharedLibraryName
+     * @param serviceAssemblyName
+     * @return
+     */
+    public String listAllComponents(boolean serviceEngines, boolean bindingComponents, String state, String sharedLibraryName, String serviceAssemblyName, boolean pojo) throws Exception {
+        Collection connectors = container.getRegistry().getLocalComponentConnectors();
+        List components = new ArrayList();
+        for (Iterator iter = connectors.iterator(); iter.hasNext();) {
+            LocalComponentConnector lcc = (LocalComponentConnector) iter.next();
+
+            // If we want SE, and it is not one, skip
+            if (!serviceEngines && !lcc.isService()) {
+                continue;
+            }
+            // If we want BC, and it is not one, skip
+            if (!bindingComponents && !lcc.isBinding()) {
+                continue;
+            }
+            // Check status
+            if (state != null && state.length() > 0 && !state.equals(lcc.getComponentMBean().getCurrentState())) {
+                System.out.println("state passed");
+                continue;
+            }
+
+            // Check shared library
+            if (sharedLibraryName != null && sharedLibraryName.length() > 0 && !container.getInstallationService().containsSharedLibrary(sharedLibraryName)) {
+                continue;
+            }
+
+            // Check deployed service assembly
+            if (serviceAssemblyName != null && serviceAssemblyName.length() > 0 && !container.getDeploymentService().isSaDeployed(serviceAssemblyName)) {
+                continue;
+            }
+            
+            if (lcc.isPojo() && !pojo){
+                continue;
+            }
+
+            components.add(lcc);
+        }
+
+        StringBuffer buffer = new StringBuffer();
+        buffer.append("<?xml version='1.0'?>\n");
+        buffer.append("<component-info-list xmlns='http://java.sun.com/xml/ns/jbi/component-info-list' version='1.0'>\n");
+        for (Iterator iter = components.iterator(); iter.hasNext();) {
+            LocalComponentConnector lcc = (LocalComponentConnector) iter.next();
+            buffer.append("\t<component-info>");
+            if (!lcc.isBinding() && lcc.isService()) {
+                buffer.append(" type='service-engine'");
+            } else if (lcc.isBinding() && !lcc.isService()) {
+                buffer.append(" type='binding-component'");
+            }
+            buffer.append(" name='" + lcc.getComponentNameSpace().getName() + "'");
+            buffer.append(" state='" + lcc.getComponentMBean().getCurrentState() + "'>");
+            if (lcc.getPacket().getDescription() != null) {
+                buffer.append("\t\t<description>");
+                buffer.append(lcc.getPacket().getDescription());
+                buffer.append("<description>\n");
+            }
+            buffer.append("\t</component-info>\n");
+        }
+        buffer.append("</component-info-list>");
+        return buffer.toString();
+    }
+    
+    /**
+     * Prints information about all  Pojo components installed    
+     * @return XML string
+     */
+    public String listPojoComponents() throws Exception {
+        Collection connectors = container.getRegistry().getLocalComponentConnectors();
+        List components = new ArrayList();
+        for(Iterator iter=connectors.iterator();iter.hasNext();){
+            LocalComponentConnector lcc=(LocalComponentConnector) iter.next();
+            if(lcc.isPojo()){
+                components.add(lcc);
+            }
+        }
+
+        StringBuffer buffer = new StringBuffer();
+        buffer.append("<?xml version='1.0'?>\n");
+        buffer.append("<component-info-list xmlns='http://java.sun.com/xml/ns/jbi/component-info-list' version='1.0'>\n");
+        for (Iterator iter = components.iterator(); iter.hasNext();) {
+            LocalComponentConnector lcc = (LocalComponentConnector) iter.next();
+            buffer.append(" name='" + lcc.getComponentNameSpace().getName() + "'");
+            buffer.append(" state='" + lcc.getComponentMBean().getCurrentState() + "'>");
+            if (lcc.getPacket().getDescription() != null) {
+                buffer.append("\t\t<description>");
+                buffer.append(lcc.getPacket().getDescription());
+                buffer.append("<description>\n");
+            }
+            buffer.append("\t</component-info>\n");
+        }
+        buffer.append("</component-info-list>");
+        return buffer.toString();
+    }
+
+    /**
+     * Prints information about shared libraries installed.
+     *
+     * @param componentName
+     * @param sharedLibraryName
+     * @return
+     */
+    public String listSharedLibraries(String componentName, String sharedLibraryName) throws Exception {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * Prints information about service assemblies deployed.
+     *
+     * @param state
+     * @param componentName
+     * @param serviceAssemblyName
+     * @return
+     */
+    public String listServiceAssemblies(String state, String componentName, String serviceAssemblyName) throws Exception {
+        String[] result = null;
+        if (null != serviceAssemblyName && serviceAssemblyName.length() > 0) {
+            result = new String[]{serviceAssemblyName};
+        } else if (null != componentName && componentName.length() > 0) {
+            result = container.getRegistry().getDeployedServiceAssembliesForComponent(componentName);
+        } else {
+            result = container.getRegistry().getDeployedServiceAssemblies();
+        }
+
+        List components = new ArrayList();
+        for (int i = 0; i < result.length; i++) {
+            // Check status
+            if (state != null && state.length() > 0 && !state.equals(container.getRegistry().getServiceAssemblyState(result[i]))) {
+                continue;
+            }
+            components.add(result[i]);
+        }
+
+        StringBuffer buffer = new StringBuffer();
+        buffer.append("<?xml version='1.0'?>\n");
+        buffer.append("<service-assembly-info-list xmlns='http://java.sun.com/xml/ns/jbi/component-info-list' version='1.0'>\n");
+        for (Iterator iter = components.iterator(); iter.hasNext();) {
+            String name = (String) iter.next();
+
+            buffer.append("\t<service-assembly-info");
+            buffer.append(" name='" + name + "'");
+            buffer.append(" state='" + container.getRegistry().getServiceAssemblyState(name) + "'/>");
+            buffer.append(" <description>" + container.getRegistry().getServiceAssemblyDesc(name) + "</description>");
+            buffer.append("\t</service-assembly-info>\n");
+
+            String[] serviceUnitList = container.getRegistry().getSADeployedServiceUnitList(name);
+            for (int i = 0; i < serviceUnitList.length; i++) {
+                buffer.append("\t<service-unit-info");
+                buffer.append(" name='" + serviceUnitList[i] + "'");
+                buffer.append(" state='" + container.getRegistry().getSADeployedServiceUnitDesc(name, serviceUnitList[i]) + "/>");
+                buffer.append("\t</service-unit-info");
+            }
+        }
+        buffer.append("</service-assembly-info-list>");
+
+        return buffer.toString();
+    }
+
+    public String failure(String task, String componentName, String info, Exception e) {
+        ManagementSupport.Message msg = new ManagementSupport.Message();
+        msg.setComponent(componentName);
+        msg.setTask(task);
+        msg.setResult("FAILED");
+        msg.setType("ERROR");
+        msg.setException(e);
+        msg.setMessage(info);
+        return ManagementSupport.createComponentMessage(msg);
+    }
+
+    public String success(String task, String componentName) {
+        ManagementSupport.Message msg = new ManagementSupport.Message();
+        msg.setComponent(componentName);
+        msg.setTask(task);
+        msg.setResult("SUCCESS");
+        // TODO: change the generated xml
+        return ManagementSupport.createComponentMessage(msg);
+    }
+
+    public MBeanOperationInfo[] getOperationInfos() throws JMException {
+        OperationInfoHelper helper = new OperationInfoHelper();
+        ParameterHelper ph = helper.addOperation(getObjectToManage(), "installComponent",1, "install a component");
+        ph.setDescription(0, "file", "location of JBI Component to install");
+
+        ph = helper.addOperation(getObjectToManage(), "uninstallComponent", 1, "uninstall a component");
+        ph.setDescription(0, "name", "component name to uninstall");
+
+        ph = helper.addOperation(getObjectToManage(), "installSharedLibrary", 1, "install a shared library");
+        ph.setDescription(0, "file", "location of shared library to install");
+
+        ph = helper.addOperation(getObjectToManage(), "uninstallSharedLibrary", 1, "uninstall a shared library");
+        ph.setDescription(0, "name", "name of shared library to uninstall");
+        
+        ph = helper.addOperation(getObjectToManage(), "installArchive", 1, "install an archive (component/SA etc)");
+        ph.setDescription(0, "location", "file name or url to the location");
+        
+
+        ph = helper.addOperation(getObjectToManage(), "startComponent", 1, "start a component");
+        ph.setDescription(0, "name", "name of component to start");
+
+        ph = helper.addOperation(getObjectToManage(), "stopComponent", 1, "stop a component");
+        ph.setDescription(0, "name", "name of component to stop");
+
+        ph = helper.addOperation(getObjectToManage(), "shutdownComponent", 1, "shutdown a component");
+        ph.setDescription(0, "name", "name of component to shutdown");
+
+        ph = helper.addOperation(getObjectToManage(), "deployServiceAssembly", 1, "deploy a service assembly");
+        ph.setDescription(0, "file", "location of service assembly to deploy");
+
+        ph = helper.addOperation(getObjectToManage(), "undeployServiceAssembly", 1, "undeploy a service assembly");
+        ph.setDescription(0, "name", "name of service assembly to undeploy");
+
+        ph = helper.addOperation(getObjectToManage(), "startServiceAssembly", 1, "start a service assembly");
+        ph.setDescription(0, "name", "name of service assembly to start");
+
+        ph = helper.addOperation(getObjectToManage(), "stopServiceAssembly", 1, "stop a service assembly");
+        ph.setDescription(0, "name", "name of service assembly to stop");
+
+        ph = helper.addOperation(getObjectToManage(), "shutdownServiceAssembly", "shutdown a service assembly");
+        ph.setDescription(0, "name", "name of service assembly to shutdown");
+
+        ph = helper.addOperation(getObjectToManage(), "listComponents", 5, "list all components installed");
+        ph.setDescription(0, "serviceEngines", "if true will list service engines");
+        ph.setDescription(1, "bindingComponents", "if true will list binding components");
+        ph.setDescription(2, "state", "component state to list, if null will list all");
+        ph.setDescription(3, "sharedLibraryName", "shared library name to list");
+        ph.setDescription(4, "serviceAssemblyName", "service assembly name to list");
+        
+        ph = helper.addOperation(getObjectToManage(), "listJBIComponents", 5, "list JBI components installed");
+        ph.setDescription(0, "serviceEngines", "if true will list service engines");
+        ph.setDescription(1, "bindingComponents", "if true will list binding components");
+        ph.setDescription(2, "state", "component state to list, if null will list all");
+        ph.setDescription(3, "sharedLibraryName", "shared library name to list");
+        ph.setDescription(4, "serviceAssemblyName", "service assembly name to list");
+        
+        ph = helper.addOperation(getObjectToManage(), "listPojoComponents", "list all POJO Components");
+
+        ph = helper.addOperation(getObjectToManage(), "listSharedLibraries", 2, "list shared library");
+        ph.setDescription(0, "componentName", "component name");
+        ph.setDescription(1, "sharedLibraryName", "shared library name");
+
+        ph = helper.addOperation(getObjectToManage(), "listServiceAssemblies", 3, "list service assemblies");
+        ph.setDescription(0, "state", "service assembly state to list");
+        ph.setDescription(1, "componentName", "component name");
+        ph.setDescription(2, "serviceAssemblyName", "service assembly name");
+        
+        
+        
+        
+                
+
+        return OperationInfoHelper.join(super.getOperationInfos(), helper.getOperationInfos());
+    }
+
+}

Propchange: incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/AdminCommandsService.java
------------------------------------------------------------------------------
    svn:eol-style = native