Hi Gert, Thanks a lot for the pointers.
I was able to create the SU/SA for the servicemix-file component. The xbean.xml for the SU described seems to talk about a file:sender and a file:poller service.The poller service is meant to pick up xml files from a specified directory and send them to the file:sender service which writes them to a specified directory. I have this hello-world-se , which I wanted , upon receiving a text(xml) message from the NMR , to write the text to a file , using the servicemix-file component.So I assume I wont be needing a 'poller' service. So I wrote the xbean.xml to look as below : <beans xmlns:file="http://servicemix.apache.org/file/1.0" xmlns:myfile="urn:myproject:file"> <!-- add the sender endpoint here --> <file:sender service="myfile:file" endpoint="sender" directory="file:///D:/space/myproj" /> <!-- add the poller endpoint here --> </beans> Is this the right way to proceed, or am I hopelessly wrong. As of now, I have the unit test client (MySpringComponentTest) created when a service-engine is created with maven.This unit test client sends an xml test to the hello-world-se. Thanks for the help again, Eric. Gert Vanthienen wrote: > > Eric, > > > Our documentation sandbox contains two tutorials which are to be put on > the main site very soon. One of them is about using Maven to build > SU/SA: > http://incubator.apache.org/servicemix/2-beginner-using-maven-to-develop-jbi-applications.html > > If you look at the tutorial, you'll notice that the examples in there > include a SU targeted at servicemix-file. Once you have the basic > structure, you can find even more configuration details on > http://incubator.apache.org/servicemix/servicemix-file.html > > > Regards, > > Gert > > ericnygma wrote: >> Hi, >> >> I have a hello-world-se. I want it to write some text to a file.Towards >> this, the following is my thinking: >> 1) Create a service unit for the servicemix-file BC. >> 2) Create a service assembly for the above su.Deploy it. >> Now, I could find a tutorial on creating the su/sa for the >> servicemix-http >> component - through the use of a maven archetype. Is such an archetype >> available for the servicemix-file component. I am asking this because I >> dont >> know what the jbi.xml and xbean.xml of the su/sa for the servicemix-file >> component should look like. >> >> Thanks in advance, >> Eric. >> > > > -- View this message in context: http://www.nabble.com/creating-service-unit-and-service-assembly-for-service-file-component-tf4382975s12049.html#a12495485 Sent from the ServiceMix - User mailing list archive at Nabble.com.
