Hi

Ah you need to make the component an OSGi bundle.

I have logged a ticket to improve the archetype in Camel so in the
future it packages the project as OSGi bundle.
https://issues.apache.org/jira/browse/CAMEL-6292

In the pom.xml file of your custom component you need to add the felix
bundle plugin
Something a like this.

<!-- to generate the MANIFEST-FILE of the bundle -->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>${maven-bundle-plugin-version}</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>${artifactId}</Bundle-SymbolicName>
<Import-Package>*</Import-Package>
</instructions>
</configuration>
</plugin>

And change the
<packaging>jar</packaging>

To use bundle
<packaging>bundle</packaging>

On Wed, Apr 17, 2013 at 9:47 AM, valerian.merkling
<[email protected]> wrote:
> Hi !
>
> I would like to be able to make my own endpoint component, so i followed
> simple  tutorial
> <http://www.consulting-notes.com/2011/11/creating-custom-camel-component.html>
> and tried to install it on my servicemix.
>
> But when i try to deploy a camel route using my new endpoint, I always have
> this error :
> /
> No endpoint could be found for: helloworld, please check your classpath
> contains the needed Camel component jar./
>
> In the webconsole, in the service tab, i can see my helloworld :
>
>         [org.apache.camel.spi.ComponentResolver]
> component       helloworld
>         test-helloworld(231)
>
> It's also in the Bundles tab, but the Exported Packages field is empty. Is
> the problem here ?
> How can i export the needed packages ?
>
> Regards,
>
> Valerian Merkling
>
>
>
>
> --
> View this message in context: 
> http://servicemix.396122.n5.nabble.com/Creating-new-component-and-No-endpoint-could-be-found-for-Error-tp5716511.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to