Ky wanted to know whether have you included the maven-xbean-pugin in the pom of BC project where in u will be giving a namespace for the BC.By doing so you can use this namespace in the xbean.xml of the service unit.
Use the serviceunit artifact mvn archetype:create -DarchetypeArtifactId=servicemix-service-unit -DarchetypeGroupId=org.apache.servicemix.tooling -DartifactId=tutorial-file-su to create a SU where in a xbean.xml gets created.There you call the required services. MaKhat wrote: > > How to create SU from a BC(Binding component) > 1) I created a custom Binding component and overridden the process method. > 2) The binding component build s & installs successfully > 3) I am able to deploy it in hotdeploy folder of servicemix. > 4) But do not know how to create a SU(serviceunit) that will refer to & > configure this custom Provider > Other question How to successfully test the Consumer BC and create SU for > the same > 1)I created one more custom BC by selecting artifact > servicemix-binding component. > 2) Wrote code in start() method > 3) Changed the spring.xml file > > > 4)The following is the code in MyConsumerEndpoint.java start() method: > > > > > 5) When I do >mvn install thru command prompt > The test fails ,but the code in the start method is executed. > > > 6) Following is the output in console for >mvn install: > > > > -- View this message in context: http://old.nabble.com/How-to-create-a-Serviceunit-from-a-custom-binding-component-tp28604759p28606966.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
