Hi,

I'm currently working on the new camel-quickfix component provided by Anton
Arhipov.

I have created a camel spring xml file to use it :

    <camel:camelContext trace="true" xmlns="
http://camel.apache.org/schema/osgi";>
        <camel:route>
            <camel:from uri="quickfix-server:examples/server.cfg"/>
            <camel:to uri="quickfix-client:examples/client.cfg"/>
        </camel:route>
    </camel:camelContext>

but when the component is launched, I receive the following error :

15:57:52,609 | ERROR | xtenderThread-49 | ContextLoaderListener            |
BundleApplicationContextListener   50 | Application context refresh failed
(OsgiBundleXmlApplicationContext(bundle=reportincident.quickfix,
config=osgibundle:/META-INF/spring/*.xml))
org.apache.camel.NoSuchEndpointException: *No endpoint could be found for:
quickfix-server:examples/server.cfg*, please check your classpath contains
the needed camel component jar.
    at
org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:54)
    at
org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:133)

When looking in the code provided, I see that Anton has created under the
directory META-INF/services, the following files :

org\apache\camel\component\quickfix-server

class=org.apache.camel.quickfix.QuickfixAcceptor

org\apache\camel\component\quickfix-client

class=org.apache.camel.quickfix.QuickfixInitiator

Is it enough to register new camel endpoints ?

Regards,

Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com

Reply via email to