Re: Camel websocket over STOMP

2014-09-30 Thread Charles Moulliard
Hi Gordon, I'm confused about what you try to do. STOMP is a transport connector part of the ActiveMQ project (http://stomp.github.io/). I suppose that you use the javascript of Jeff Mesnill to establish the connection between the WebSocket client (= HTML5 page + JS) and the ActiveMQ Broker exposi

Camel websocket over STOMP

2014-09-30 Thread gmh
Hi,I am trying to subscribe to websocket over STOMP.The websocket require user/password authentication using WebSocketHttpHeaders. Has anyone tried it before?If so, can someone share their experience and the configurations/code?Thanks, Gordon -- View this message in context: http://camel.465427

Large file processing using ExecutorService and IBM MQ

2014-09-30 Thread dwarak_cit
Hi, I have a requirement where I need to read quite a lot of large files. For each file, store each record by record (separated by new line delimiter) into the database. Now I have used ExecutorService with a fixed thread pool of 100, in Camel split component to split the file (say has 20,000 reco

Get the endpoint that timed out in TimeoutAwareAggregationStrategy

2014-09-30 Thread zzoozz
I am having a hard time finding out which endpoint timeout when using the TimeoutAwareAggregationStrategy; the timeout method callback is called. My requirement is to send a message to a status queue when a timeout occurs with the endpoint which timed out. The timeout method in TimeoutAwareAggreg

Re: Multiple CamelContext and Swagger

2014-09-30 Thread Max Bridgewater
Hi Charles, Thanks for your input. We use multiple camel contexts to modularize the application further into simpler units and so separate different concerns. In some other cases we also have camel context loaded dynamically which is an ever bigger challenge to get working with camel-swagger. Tha

Re: Multiple CamelContext and Swagger

2014-09-30 Thread Charles Moulliard
Hi Max, Your assertion is correct. The camel-swagger component loads only one CamelContext as defined within the code of this class (ServletListenerRestSwaggerApiDeclarationServlet). it will load the "CamelContext" registered within the ServletContext --> val obj = config.getServletContext.getAttr

Multiple CamelContext and Swagger

2014-09-30 Thread Max Bridgewater
Hi, It seems that camel-swagger is built to load only one CamelContext. Is my understanding correct? If yes, what would be the best way to support an application with multiple camel contexts? Obviously one way is to create a swagger Servlet for each camel context. Is there a cleaner way? Regard

get solr response

2014-09-30 Thread Mark Webb
I am working on debugging my connection to solr. I have set the body to an instance of SolrInputDocument, yet nothing seems to be going into the solr data store since all my queries return an empty set. Is there a way I can print the response that Camel receives from Solr so I can try and determi

Migrating from CamelTestSupport to AbstractCamelTestNGSpringContextTests

2014-09-30 Thread Giorgio Vespucci
Hi everybody I've been using Camel since 3-4 months on Spring 4.0.7.RELEASE I have several Camel 2.14.0 TestNG tests based on extending CamelTestSupport, in which I use some MockEndpoints. I configured my routes by overriding the createRouteBuilder() method. Now I would need also to inject some Sp

Re: OnCompletion in Camel 2.14

2014-09-30 Thread Charles Moulliard
Hi Max, As you use an InOut exchange pattern with the REST component, you must setup the attribute "beforeConsumer" --> to allow the consumer to write back your body to the callee Regards, On Tue, Sep 30, 2014 at 1:24 PM, Max Bridgewater wrote: > Hi, > > I have the following route with Camel

Re: Camel Restlet with Swagger

2014-09-30 Thread Claus Ibsen
Hi Yes it uses the rest dsl as base for generating the api documentation (eg the swagger model). On Tue, Sep 30, 2014 at 1:35 PM, Max Bridgewater wrote: > Thanks Claus. I was hopping to be able to avoid switching to Rest DSL. Are > you saying that camel-swagger wouldn't work even with the Came

Re: Camel 2.14.0 XSD

2014-09-30 Thread Max Bridgewater
Thanks Willem that works. Max. On Mon, Sep 29, 2014 at 11:24 PM, Willem Jiang wrote: > Hi, > You can find the camel-2.14.0 xsd here[1], there some new added REST DSL > definitions. > [1]http://camel.apache.org/schema/spring/camel-spring-2.14.0.xsd > > > -- > Willem Jiang > > Red Hat, Inc. > Web

Re: Camel Restlet with Swagger

2014-09-30 Thread Max Bridgewater
Thanks Claus. I was hopping to be able to avoid switching to Rest DSL. Are you saying that camel-swagger wouldn't work even with the Camel Rest component? Regards, Max. On Tue, Sep 30, 2014 at 3:44 AM, Claus Ibsen wrote: > Hi > > camel-swagger is for the Rest DSL. You can see the rest-dsl examp

Re: CamelBlueprintTestSupport looping NPE with FelixFileinstall

2014-09-30 Thread Claus Ibsen
Hi I think this is a bug in Karaf / Felix. You can ask / search the Karaf community about that error message. On Tue, Sep 30, 2014 at 10:10 AM, Michael Täschner wrote: > Hi, > > with our latest upgrade from Camel 2.12.4 to 2.13.2 (Apache ServiceMix > 5.1.1 to 5.1.2) the blueprint tests will have

OnCompletion in Camel 2.14

2014-09-30 Thread Max Bridgewater
Hi, I have the following route with Camel 2.14. From what I understand the result of the call should be "Replace body". I was expecting that the onCompletion would be called at the end of the route to override the exchange body, which isn't happening. Am I missing something? http://camel.ap

camel-hazelcast:Predicate based queries on maps

2014-09-30 Thread agusgr
Hi all, I'm working with camel-hazelcast in my project and I'm delighted. By now, we use mainly the maps and we wonder if there is any plan in order to allow run "Criteria based queries" [1] in a similar way as we can run "string" queries [2]. Regards, Agus [1] http://docs.hazelcast.org/docs/la

WildFly atmosphere-websocket

2014-09-30 Thread CobraFlow
I am trying to use atmosphere-websocket in a WildFly 8.1 instance. I have this in my web.xml :- CamelWsServlet org.apache.camel.component.atmosphere.websocket.CamelWebSocketServlet 4 CamelWsServlet /test/stream/* And my route is :-

CamelBlueprintTestSupport looping NPE with FelixFileinstall

2014-09-30 Thread Michael Täschner
Hi, with our latest upgrade from Camel 2.12.4 to 2.13.2 (Apache ServiceMix 5.1.1 to 5.1.2) the blueprint tests will have exception output of the felixs fileinstall DirectoryWatcher with the following message: In main loop, we have serious trouble: java.lang.NullPointerException java.lang.NullPoin

Re: FIS Connectivity usingApache Camel

2014-09-30 Thread Christian Müller
We are using the camel-netty component for a similar requirement (cobal copybook send to a mainframe system). You have to implement your own encoder/decoder. Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Came

Re: Camel Restlet with Swagger

2014-09-30 Thread Claus Ibsen
Hi camel-swagger is for the Rest DSL. You can see the rest-dsl examples which are shipped in the examples directory. For example the -tomcat example has built in swagger. You can see the swagger api as mentioned in the index.html page of the example. On Tue, Sep 30, 2014 at 5:00 AM, Max Bridge

Re: No component found with schema: jms

2014-09-30 Thread Anjenson
Hi I have found the way xml file is looked up in examples (using -ac argument). However, as I understand it is treated as a main class. But we already have a main class in the project. Could you, please, advise if there is another way to make project lookup that configuration file? 2014-09-29 18

Re: Using file URI's correctly

2014-09-30 Thread Claus Ibsen
Hi See the documentation in the javadoc here http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/CamelContext.html And this FAQ http://camel.apache.org/running-camel-standalone-and-have-it-keep-running.html On Mon, Sep 29, 2014 at 8:39 PM, condreynl wrote: > I have a simp