On 09/03/2008, Taylor Gautier <[EMAIL PROTECTED]> wrote: > > I have written a custom component. I was successful at creating a file that > implemented the mapping, by following the instructions on the site to create > a file: > > META-INF/services/org/apache/camel/component/tc > > However, I could not figure out how to take my component, and this file, and > wrap them in a jar to be used as a standalone dependency within my > application. How does one wrap the implementation and the definition into > one? Is it posssible? > > For example, I want this: > > my_app > --> depends on tc-camel.jar > > tc-camel.jar has the component implementation and file that defines the > mapping. > > Thanks in advance!
If you are using maven, there's a ton of components you can copy inside the Camel source repository; you just put the java code in src/main/java and the META-INF files in src/main/resources and you're done. If you are using Ant you could just use the jar task to include the META-INF files as well as the java code and you're done. -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://open.iona.com
