Re: CamelContextLifecycle Has a Glaring Deficiency

2013-11-09 Thread Claus Ibsen
Sounds like a good idea with 2 more callbacks. Feel free to log a JIRA ticket. And we love contributions so you are welcome to work on a patch or pull request http://camel.apache.org/contributing.html On Sat, Nov 9, 2013 at 3:11 AM, kraythe . wrote: > The problem is that if we are using a Servle

Re: Read and process very large files

2013-11-09 Thread Claus Ibsen
#1 is a fine option as you need to use the splitter in streaming mode to split 1 message into N messages. In #2 you just convert the body from one type to another, its still 1 message from Camel point of view. And only 1 message send to the AMQ. So go with #1. For #1 you can possible look at the

Re: How to get JMX running on EAP 6.1.1 (JBoss 7+)

2013-11-09 Thread Claus Ibsen
Hi How have you configured the jmx agent in Camel? JMX is enabled by default, and without creating a special Camel connector. It looks like you have enabled that with createConnector="true". If you do not do that you ought to still be able to see Camel MBeans if you connect to the JBoss AS JMX c

Re: SJMS failure with stale reply queue

2013-11-09 Thread Claus Ibsen
Hi It does sounds like camel-sjms lacks the re-connect functionality that camel-jms has by the spring's default message listener container. On Fri, Nov 8, 2013 at 2:22 PM, Harald Wellmann wrote: > Here's a slightly different scenario demonstrating the issue with SJMS, > this time not involving

Re: Read and process very large files

2013-11-09 Thread brenuart
Claus Ibsen-2 wrote > #1 is a fine option as you need to use the splitter in streaming mode > to split 1 message into N messages. Indeed, you are right - this is how it should be seen: a first message is received that holds the file, it is then split into smaller messages whose content is transfor

Handling failures due to endpoint (temporary) unavailability

2013-11-09 Thread brenuart
Suppose the following route: from("activemq:input") .to("mongodb:mymongo?database=...") How should I handle the unavailability of the MongoDB? Since it is a transient failure, I'd like to retry later when the db is back online... Should I tell CAMEL to retry "forever" (or at least long

Re: Read and process very large files

2013-11-09 Thread Claus Ibsen
Hi Yeah but converting to a type with generics is hard due type erasure. So Camel has a hard time to match that Iterator is what you want, and not Iterator in case something like that is added in the future. On Sat, Nov 9, 2013 at 10:42 AM, brenuart wrote: > Claus Ibsen-2 wrote >> #1 is a fin

Re: Read and process very large files

2013-11-09 Thread Bertrand Renuart
Good point! I'll stop asking me questions and go further with approach #1 ;-) On 09/11/13 10:48, "Claus Ibsen" wrote: >Hi > >Yeah but converting to a type with generics is hard due type erasure. >So Camel has a hard time to match that Iterator is what you >want, and not Iterator in case somethi

Re: Send a message in the easiest way

2013-11-09 Thread pmp.martins
@Ceposta: Ok, Thank you for your time and interest Mr. Ceposta. I have now numbered the questions and will try my best to explain the situation: Q1: What parameters do you need? If I understand you correctly, you want to create a bean that "creates" your Message object, right? And you need paramet

Re: CamelContextLifecycle Has a Glaring Deficiency

2013-11-09 Thread Harald Wellmann
Am 09.11.2013 09:10, schrieb Claus Ibsen: And we love contributions so you are welcome to work on a patch or pull request http://camel.apache.org/contributing.html Could someone please update the Contributing guidelines? The document still refers to Subversion and patches. Is the GitHub mir

Re: SJMS failure with stale reply queue

2013-11-09 Thread Raul Kripalani
Yes, exactly. JIRA: https://issues.apache.org/jira/browse/CAMEL-6950. Regards, *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration specialist http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani http://blog.raulkr.net | twitter:

Re: SJMS failure with stale reply queue

2013-11-09 Thread Harald Wellmann
Ok, I'll watch that issue. Broadening the scope of the discussion a bit, is SJMS designed for Java SE, Java EE or both? In a Java EE 6/7 server, you get managed connections from a JCA resource adapter, pooling and reconnection is provided by the container, so there's no need to add reconnect

Re: MongoDB exchange Out Body is null, using Apache Camel

2013-11-09 Thread Raul Kripalani
If you're using Camel >= 2.10.3 or 2.11, enable the writeResultAsHeader endpoint option. In the future, please use the users@ forum for such queries. And please remember to always indicate what version of Camel you're running on. Regards, *Raúl Kripalani* Apache Camel PMC Member & Committer | En

Re: CamelContextLifecycle Has a Glaring Deficiency

2013-11-09 Thread Robert Simmons
I was wondering. It still says subversion and I wanted to create a patch on this. With git a pull request is easy. Sent from my iPad > On Nov 9, 2013, at 10:21 AM, Harald Wellmann wrote: > > Am 09.11.2013 09:10, schrieb Claus Ibsen: >> And we love contributions so you are welcome to work on a