Re: Camel - CDI and Servlet Context Implementation

2016-02-01 Thread Antonin Stefanutti
Hi Tim, You’ll find an example of using REST DSL with the Servlet component and CDI here: https://github.com/apache/camel/tree/674b8cd2eb1f2c937121a62fc0ce8cb0df9a4c9f/examples/camel-example-cdi-rest-servlet That uses the work done at https://github.com/astefanutti/camel-cdi that has recently

Re: Looking for a Good CAMEL - WEBSHPERE MQ Integration Example

2016-02-01 Thread Jimmy Selgen Nielsen
I’m doing something like the code below (IbmWebsphereDestinationResolver is something like the one attached to this Jira ticket https://jira.spring.io/browse/SPR-3614) == @Configuration @ComponentScan public Class Config{ public void beforeApplicationStart(CamelContext camelContext) {

Re: Add into the loop

2016-02-01 Thread Walzer, Thomas
http://camel.apache.org/mailing-lists.html > Am 27.01.2016 um 11:41 schrieb Kushagra Saxena : > > Hi, > > Please add me into the mailing list of camel. > > Regards, > Kushagra

Re: Shared Camel Context.

2016-02-01 Thread jgoggins
Hi Matt, Still unable to make progress here. I have a simple SOAP 12 endpoint defined, and this is working if I send a request. @Endpoint public class HeartbeatEndpoint { @Action("http://myevent/Heartbeat";) @ResponsePayload p

Re: Does Camel SQL Component have setQueryTimeout?

2016-02-01 Thread Gregoire Autric
Hi Nes, SQL Camel Component is mapped with JdbcTemplate [1]. You could use "template.queryTimeout" URI parameter to set your timeout. If it still doesn't work, feel free to rise an JIRA/issue [1] https://docs.spring.io/spring/docs/2.5.x/javadoc-api/org/springframework/jdbc/core/JdbcTemplate.ht

Re: Camel file component URI dynamic options & Filter query

2016-02-01 Thread fxthomas
hello, I have tried with the below route & filter configuration , its works fine once , the filter is never called again after the first run . Do i need to call the filter explicitly to start the poll again? Since in my Filter I am getting the sequence from the Db always in the accep

JPAProducer intances are never released!

2016-02-01 Thread ursouca
Dears, I am using the JPA component to persist some messages into a DB table on which multiple JPA consumers will consume enrich to send them after in aggregator. The routes are expressed exclusively in XML (spring-camel). From the point of view of the routes everything seems to work well. To hel

Re: Camel file component URI dynamic options & Filter query

2016-02-01 Thread fxthomas
I tried with a new approach it works atleast for basic condition . But the problem is if there is any file left in the folder which did not match in the Run , the route keeps on polling and the filter is called everytime . 1) Is there any way in which the route can be told to stop pooling after

Re: Invoking Dynamic OSGi Blueprint services from a Java RouteBuilder

2016-02-01 Thread Ranx
I think in my case the problem was with how the package scan is working but I'm not positive. In the Camel Core OSGi package scanner class there is a section. If it can find it in OSGi it shrugs, throws up its hands and resorts to brute force classloading. Instead of getting hard error Camel was

Re: Invoking Dynamic OSGi Blueprint services from a Java RouteBuilder

2016-02-01 Thread Ranx
By the way, while I realize this is in there for older JBI constructs this is what I meant when asking if there is a way that a "strict" flag could be added. Perhaps that's a question I should post on the developers forum. Even if by default the flag was false, being able to set it to true and

Re: onException block in camel 2.16.1

2016-02-01 Thread lw
I got the defaultErrorHandler to collapse with these 2 adjustments: - set messageHistory="false" on CONTEXT - set logStackTrace="false" for onException block, like this: The timestamp with default error handler still shows up, but much easier on the eye. I tried but it makes no impac

Apache Camel + Spring-WS Issue How to make sure acknowledgement reaches before response

2016-02-01 Thread Sag21
1.Below Asynchoronus spring-ws application called from Camel. http://camel.apache.org/schema/spring";> http://www.example.com/fgh}Application?endpointMapping=#endpointMapping"; />

Re: Shutting down route with jms

2016-02-01 Thread jamie3
A bit of an update. I changed the code to use control bus. The logs show that control bus is signaling to the camel context to shut down, however when inspecting the debug thread, the Camel JMSConsumer class is still running, as shown below with 1 inflight and pending exchange. My processor logic w

Re: onException block in camel 2.16.1

2016-02-01 Thread TygerC
Setting the logging level off works fine: And also doTry/doCatch work: the exception won't go the the error handler from the catch block. But: it this a bug or a feature? I really don't like a behaviour that I don't understand. -- View this message in context: http://camel.465427.n5.nabble

camel-swagger-java - Help needed with documentation

2016-02-01 Thread ytatyaLij
Hi, We are using Camel-Swagger-Java v 2.16 for documenting the REST services generated using CamelREST DSL. We are able to integrate the swagger with the application and can get the Swagger document laying down the full API specification. The problem we are getting is in describing the Model in

How to forward another JSP or servlet. Camel-jetty or Camel-servlet

2016-02-01 Thread tko429
Nice to meet you , everyone. from Japan I want to construct servlet system with Camel. the above is my image. camel-servlet or camel-jetty receive HTTP Request. Then, next Processor parse HTTP Request and forward another JSP or servlet. But I have no idea about this way. I tried to follow,

Re: Does Camel SQL Component have setQueryTimeout?

2016-02-01 Thread NES
Thank you for your help, Gregoire. I missed a template option. I feel like I can implement a query timeout. -- View this message in context: http://camel.465427.n5.nabble.com/Does-Camel-SQL-Component-have-setQueryTimeout-tp5777088p5777126.html Sent from the Camel - Users mailing list archive at

camel-rest component not compatible with REST-DSL

2016-02-01 Thread sogabe
Hi, I'm testing camel-rest with the folowing spring xml. // <--- (1) it can't work correctly with Accept header. $ curl -H 'Accept:application/json' http://lo

Re: camel-rest component not compatible with REST-DSL

2016-02-01 Thread Claus Ibsen
You should use the rest-dsl which provides the rest functionality with {} and get/post and so on. The rest is not really intended to be used in regular routes, the rest-dsl is the syntax sugar on top that uses the rest component under the covers. On Tue, Feb 2, 2016 at 7:47 AM, sogabe wrote: >

Re: camel-swagger-java - Help needed with documentation

2016-02-01 Thread Claus Ibsen
Try upgrading to 2.16.2, we had some fixes in camel-swagger-java On Tue, Feb 2, 2016 at 12:18 AM, ytatyaLij wrote: > Hi, > > We are using Camel-Swagger-Java v 2.16 for documenting the REST services > generated using CamelREST DSL. > We are able to integrate the swagger with the application and ca

Re: How to forward another JSP or servlet. Camel-jetty or Camel-servlet

2016-02-01 Thread Claus Ibsen
You cannot do that, you should likely use standard servlets if you want to do servlet forwarding. You can then from a servlet call Camel if you need to. On Tue, Feb 2, 2016 at 7:34 AM, tko429 wrote: > Nice to meet you , everyone. from Japan > > I want to construct servlet system with Camel. > >

Re: camel-rest component not compatible with REST-DSL

2016-02-01 Thread sogabe
Hi, Thanks, I'll use rest-dsl. >You should use the rest-dsl which provides the rest functionality > with {} and get/post and so on. >The rest is not really intended to be used in regular routes, the > rest-dsl is the syntax sugar on top that uses the rest component under > the covers. -- Vi