Re: camel-mail

2013-05-19 Thread nickerox
Hi Claus, I`m testing this simple java code: CamelContext ctx = new DefaultCamelContext(); ctx.addRoutes(new RouteBuilder() { @Override public void configure() throws Exception { from("direct:mail")

Re: Sharing a solution for discussion

2013-05-19 Thread wagnermarques
Hi, With jetty the route works great. Much better now, but I am still learning about the fundamentals of the components because the its features some times is much similar. I thing the differences rising with details about archicteture of each one. There are more requisite for this route and I

Asynchronous routing with jms hangs in midstream

2013-05-19 Thread glsilverman
I'm trying to send a message asynchronously between two camel routes each in a different bundle configured with blueprint.xml in Apache Karaf 2.3.1. I'm using Camel 2.11.0 and activemq-camel 5.8.0 feature installed. Once in a while the message goes through and is processed without incident. Most of

Re: bridgeEndpoint=true not working in Camel 2.11.0

2013-05-19 Thread kalyan
Anyone else could noticed this problem ? I can still reproduce this issue. -- View this message in context: http://camel.465427.n5.nabble.com/bridgeEndpoint-true-not-working-in-Camel-2-11-0-tp5732763p5732808.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-mail

2013-05-19 Thread Claus Ibsen
Hi If you see any exception then that may have details that can lead you to what is wrong etc. And make sure your username and password is correct. Also you need to set a header with the "to" eg with the email to who is to receive the email. setHeader("to", constant("some...@somewhere.com")) O

Re: Camel JacksonDataFormat configuration in Spring XML

2013-05-19 Thread Claus Ibsen
In Spring XML you can declare a bean with the json data format and configure it the usual spring way ... And then in the Camel route you can refer to this data format using its id="json" Something a like: But we should consider adding a jsonView attribute to the so you can configure it the

Re: Camel JacksonDataFormat configuration in Spring XML

2013-05-19 Thread Claus Ibsen
I just logged a ticket https://issues.apache.org/jira/browse/CAMEL-6379 On Sun, May 19, 2013 at 10:04 AM, Claus Ibsen wrote: > In Spring XML you can declare a bean with the json data format and > configure it the usual spring way > > > ... > > > And then in the Camel route you can refer to thi

Re: I want to call CamelContext.addRouteDefinition, but it's deprecated - how do I get ModelCamelContext?

2013-05-19 Thread Claus Ibsen
The model is the classes that represent a model of the Camel routes. eg its in fact what you do when you use the DSL eg Then its all the classes from the model package that is built together to represent the route. Likewise when you use Java DSL the RouteBuilder does that also. On Sun

Re: Asynchronous routing with jms hangs in midstream

2013-05-19 Thread Claus Ibsen
Hi Try to disable parallel and see if that helps. Just to know if a problem could lie with parallel executions. And I assume the JMS message that is being sent to the activemq:importpatient is InOnly messages? On Sun, May 19, 2013 at 1:36 AM, glsilverman wrote: > I'm trying to send a message as

Re: Asynchronous routing with jms hangs in midstream

2013-05-19 Thread Raul Kripalani
Given there's no stack trace and that there's an apparent freeze. Could you take a thread dump of the JVM for us to analyse? Are you sure the DB is not dead locking? Can you add a log endpoint statement to your exception handler, with showAll and showStackTraces=true? Also enable the stopOnExcep

Re: Sharing a solution for discussion

2013-05-19 Thread Raul Kripalani
If you use camel-cxfrs, you can just define the @FormParams and @QueryParams in the method signature of your REST resource class. Then use the SimpleCxfRsBinding (see camel-cxfrs component doc), which parses the request, extracts all declared parameters and injects them as Camel headers. This wa

Re: stream:file closeOnDone not close all time

2013-05-19 Thread Jean Francois LE BESCONT
Hi, Could you please tell me Claus how to use the addOnCompletion to close the stream ? THanks Jeff 2013/5/16 Jean Francois LE BESCONT > By the way, the problem appears not on if there are two files. It appears > if the last exchange is not passed to the endpoint. > > Example with only one

Re: stream:file closeOnDone not close all time

2013-05-19 Thread Jean Francois LE BESCONT
If it is possible ! 2013/5/19 Jean Francois LE BESCONT > Hi, > > Could you please tell me Claus how to use the addOnCompletion to close > the stream ? > > THanks > > > Jeff > > > 2013/5/16 Jean Francois LE BESCONT > >> By the way, the problem appears not on if there are two files. It appears >

sax parser issues with camel validator component

2013-05-19 Thread Ioan Eugen Stan
Hello, I'm using Camel 2.11.0 on Karaf 2.3.1 with validator component and an XSD file to validate XML's. I'm getting an exception message: "Caused by: org.xml.sax.SAXParseException: Current configuration of the parser doesn't allow a maxOccurs attribute value to be set greater than the value 5.00

Re: Asynchronous routing with jms hangs in midstream

2013-05-19 Thread glsilverman
The problem does appear to be parallel processing in the splitter. If I turn that off, the route works perfectly every time. I stripped out any reference to activemq and jms routing in my blueprint.xml files.I also striped out the aggregator. As for the JPA services that I'm using to handle the act

Re: camel-mail

2013-05-19 Thread nickerox
It works adding "to" property. Many thx -- View this message in context: http://camel.465427.n5.nabble.com/camel-mail-tp5725119p5732817.html Sent from the Camel - Users mailing list archive at Nabble.com.