Here is a start..... 1. Create a top level project folder, for example "sample". I suggest to give it a meaningful business name, without any abbreviations.
2. Change directory to newly created parent folder. 3. Create Service Engine project (-se suffix) by running the following maven command: mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling -DarchetypeArtifactId=servicemix-service-engine -DremoteRepositories=http://people.apache.org/maven-snapshot-repository -DarchetypeVersion=3.1-incubating-SNAPSHOT -DgroupId=com.sample -DartifactId=sample-se 4. Convert generated Service Engine project to eclipse project by running the following maven command: mvn eclipse:eclipse -e NOTE: Command might fail due to lack of libraries in Maven repository. Add libraries if necessary. 5. Implement service engine logic. 6. To connect this component to flows, you will need to generate a Service Unit and configure it with the help of xbean.xml. 7. To enable Java 5, add additional <plugin> to Service Engine project's pom.xml: <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> 8. IMPORTANT, MISSING IN TUTORIALS!!!!!!!Edit Service Engine project's pom.xml to have <parent> element defined at the top: <parent> <groupId>org.apache.servicemix</groupId> <artifactId>serviceengines</artifactId> <version>3.1-incubating</version> </parent> 9. Change directory to Service Engine project and run the following maven command to generate component installer. mvn clean install 10. Deploy Service Engine by copying generated (in Maven repository) installer sample-se-installer.zip to %SERVICEMIX_HOME%/install directory. beppe82 wrote: > > Hi all, please help me because it's three days I'm wasting my time into > things that I think are not too difficult (but I can't do that!). > I have a simple SU, written following the tutorial about hello world SE. > My process() method just receive a "in" message, print a phrase (using > System.out.println(...)... can I use this method to write on standard > output?) and sets exchange status to "done". I'd like to use it together > with the ready component ftp-poller... can you write me a step-by-step > guide to do that? I'm not able to integrate, build and deploy this very > simple application... I'm a bit confused about using maven, or using ant, > using servicexml.xml... I don't exactly know what to do! Thank you very > much, Giuseppe > -- View this message in context: http://www.nabble.com/help-for-a-novice-tf3526390s12049.html#a9859809 Sent from the ServiceMix - User mailing list archive at Nabble.com.
