RE: Batch Consuming with ConsumerTemplate

2015-06-03 Thread Justin Rosenberg
/org/apache/camel/BatchConsumer.html or any other Consumer API how this could be accomplished. Thank you, ~Justin From: Justin Rosenberg Sent: Wednesday, June 03, 2015 10:55 AM To: users@camel.apache.org Subject: Batch Consuming with ConsumerTemplate If you use consumerTemplate.receive

RE: How to handle exception within consumer?

2015-06-03 Thread Justin Rosenberg
In my experience some of these exceptions are swallowed by the consumer and logged as a warning. Here is some more information http://camel.apache.org/polling-consumer.html#PollingConsumer-Abouterrorhandlingandscheduledpollingconsumers

RE: Batch Consuming with ConsumerTemplate

2015-06-03 Thread Justin Rosenberg
the only one using the consumer like this outside of a route? ~Justin From: Justin Rosenberg Sent: Wednesday, June 03, 2015 4:02 PM To: users@camel.apache.org Subject: RE: Batch Consuming with ConsumerTemplate If can't be done with the ConsumerTemplate, an example using the BatchConsumer API

Batch Consuming with ConsumerTemplate

2015-06-03 Thread Justin Rosenberg
If you use consumerTemplate.receive() with a BatchConsumer enabled endpoint, how do you interact with the Exchange to get the multiple bodies (files for example)? ~Justin CONFIDENTIALITY NOTICE: The information in this message, and any attachment, is intended for the sole use of the

RE: Synchronous one time use of endpoint

2015-06-03 Thread Justin Rosenberg
:18 PM To: users@camel.apache.org Subject: Re: Synchronous one time use of endpoint Hi Justin, Have you tried to use ConsumerTemplate API? It allows you to dynamically create an endpoint and consume a single message from it. Cheers! pt., 22.05.2015 o 19:38 użytkownik Justin Rosenberg

RE: Synchronous one time use of endpoint

2015-05-26 Thread Justin Rosenberg
Ibsen [mailto:claus.ib...@gmail.com] Sent: Tuesday, May 26, 2015 1:31 AM To: users@camel.apache.org Subject: Re: Synchronous one time use of endpoint Hi To pickup only one file then use the fileName or filter options to select which file. On Fri, May 22, 2015 at 7:38 PM, Justin Rosenberg

Synchronous one time use of endpoint

2015-05-22 Thread Justin Rosenberg
I would like to leverage the endpoint abstraction Camel provides, but I don't necessarily need a route. My use case is to simply read a file from an FTP server. Is there a way to leverage Camel either through the API or a route to synchronously leverage a Camel consumer endpoint? For

Spring Camel Parent Context

2014-12-09 Thread Justin Rosenberg
I have many (over 100) projects that all include a core Spring project where ActiveMQ is configured. Currently each project defines its own camel context as such: camel:camelContext id=CamelContext-${project.artifactId}_${project.version} camel:contextScan/

FW: Spring Camel Parent Context

2014-12-08 Thread Justin Rosenberg
I have many (over 100) projects that all include a core Spring project where ActiveMQ is configured. Currently each project defines its own camel context as such: camel:camelContext id=CamelContext-${project.artifactId}_${project.version} camel:contextScan/

Preventing large files to be processed by file2 and ftp2 endpoints.

2012-02-02 Thread Justin Rosenberg
I've run into the a problem that if the File Consumer tries to process a large file (excess of 200MB) I run out of Heap Space. Is there a way to tell the file2 Endpoint to ignore files over a certain size? Does the File Endpoint serialize the data into the message or does it just provide a

SMB File Access on Linux

2011-12-29 Thread Justin Rosenberg
Are there any plans to create a SMB component or update the File component to allow the reading and writing of files from a NT network share when Camel is running on Linux? Thank you, Justin Rosenberg | Technical Lead Software Analyst | CRL Global Services Voice +1.913.693.1510 | Mobile

FW: SMB File Access on Linux

2011-12-29 Thread Justin Rosenberg
Are there any plans to create a SMB component or update the File component to allow the reading and writing of files from a NT network share when Camel is running on Linux? Is there something in Camel that already does this? *** I apologize for the duplicate post *** ~Justin CONFIDENTIALITY

Email and File .transacted()

2011-12-16 Thread Justin Rosenberg
Does the File and Email endpoint require a JMS transaction provider to do transactions or can it use JTA instead? ~Justin -Original Message- From: Justin Rosenberg [mailto:rosenbe...@crlcorp.com] Sent: Tuesday, December 06, 2011 7:47 PM To: users@camel.apache.org Subject: Mail

RE: Email and File .transacted()

2011-12-16 Thread Justin Rosenberg
Does the File and Email endpoint require a JMS transaction provider to do transactions or can it use JTA instead? Logs: 2011-12-16 09:34:59,298 INFO [JtaTransactionManager] Using JTA UserTransaction: org.jboss.tm.usertx.client.ServerVMClientUserTransaction@1318e59 2011-12-16 09:34:59,298 INFO

RE: Mina tcp ..

2011-12-16 Thread Justin Rosenberg
Which endpoint? ~Justin -Original Message- From: Omar Atia [mailto:omar.a...@its.ws] Sent: Friday, December 16, 2011 7:07 AM To: users@camel.apache.org Subject: Mina tcp .. Dears, How can I enable/configure two ports for a route in Spring XML or Java DSL? Thanks, Omar Atia

RE: How can I download a file from an http site only if it's changed

2011-12-16 Thread Justin Rosenberg
Could you use the timer/quartz endpoint to schedule the http endpoint and check the HTTP headers and compare it to the last time it was updated (stored in a database) before continuing the route? ~Justin -Original Message- From: bbuzzard [mailto:billy.buzz...@bnsflogistics.com] Sent:

RE: Mina tcp ..

2011-12-16 Thread Justin Rosenberg
BlackBerry(r) from mtc touch -Original Message- From: Justin Rosenberg rosenbe...@crlcorp.com Date: Fri, 16 Dec 2011 09:56:13 To: users@camel.apache.org Reply-To: users@camel.apache.org Subject: RE: Mina tcp .. Which endpoint? ~Justin -Original Message- From: Omar Atia

RE: Mina tcp ..

2011-12-16 Thread Justin Rosenberg
I think I understand your question better. You can route to the same SEDA/Direct endpoint for the two listening routes. Then do a from the SEDA/Direct for your common logic. ~Justin -Original Message- From: Justin Rosenberg [mailto:rosenbe...@crlcorp.com] Sent: Friday, December 16

RE: Mina tcp ..

2011-12-16 Thread Justin Rosenberg
seda1 to process the request . Is that right ? Thanks, Omar atia Sent via BlackBerry(r) from mtc touch -Original Message- From: Justin Rosenberg rosenbe...@crlcorp.com Date: Fri, 16 Dec 2011 10:06:49 To: users@camel.apache.org Reply-To: users@camel.apache.org Subject: RE: Mina tcp .. I

RE: Email and File .transacted()

2011-12-16 Thread Justin Rosenberg
and compensations. On Fri, Dec 16, 2011 at 4:34 PM, Justin Rosenberg rosenbe...@crlcorp.com wrote: Does the File and Email endpoint require a JMS transaction provider to do transactions or can it use JTA instead? ~Justin -Original Message- From: Justin Rosenberg [mailto:rosenbe

RE: Email and File .transacted()

2011-12-16 Thread Justin Rosenberg
: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent: Friday, December 16, 2011 10:54 AM To: users@camel.apache.org Subject: Re: Email and File .transacted() On Fri, Dec 16, 2011 at 5:46 PM, Justin Rosenberg rosenbe...@crlcorp.com wrote: Interesting.  It seems that if I have from(emailURI

RE: Email and File .transacted()

2011-12-16 Thread Justin Rosenberg
@camel.apache.org Subject: Re: Email and File .transacted() On Fri, Dec 16, 2011 at 5:59 PM, Justin Rosenberg rosenbe...@crlcorp.com wrote: So my question is, why is it looking for a JMS queue when I use .transacted().  I would assume I wouldn't need a JMS queue to do this pseudo-transactional route

RE: Email and File .transacted()

2011-12-16 Thread Justin Rosenberg
, December 16, 2011 11:07 AM To: users@camel.apache.org Subject: Re: Email and File .transacted() On Fri, Dec 16, 2011 at 5:59 PM, Justin Rosenberg rosenbe...@crlcorp.com wrote: So my question is, why is it looking for a JMS queue when I use .transacted().  I would assume I wouldn't need a JMS queue

RE: Email and File .transacted()

2011-12-16 Thread Justin Rosenberg
I figured out the problem. The way I was starting camel was automatically loading a Spring context in a dependent jar that configures the JmsTransactionManager. Thanks for your help. ~Justin -Original Message- From: Justin Rosenberg [mailto:rosenbe...@crlcorp.com] Sent: Friday

RE: Email and File .transacted()

2011-12-16 Thread Justin Rosenberg
if you do not use JMS or JDBC etc. On Fri, Dec 16, 2011 at 6:16 PM, Justin Rosenberg rosenbe...@crlcorp.com wrote: I'm not sure why my JTA is trying to use JMS Transaction.  I will do some digging.  This is what I have in Spring.        !-- JTA Transaction Management --        bean id

RE: Mail component ContentTypeResolver SPI customization

2011-12-07 Thread Justin Rosenberg
. The SUN Mail Provider works fine, so the resolver shouldn't really be needed anymore. What's your use case to use the ContentTypeResolver ? On Wed, Dec 7, 2011 at 2:46 AM, Justin Rosenberg rosenbe...@crlcorp.com wrote: I'm having trouble understanding how to use a custom ContentTypeResolver

RE: Dynamic URI creation in apache camel

2011-12-07 Thread Justin Rosenberg
You can programmatically stop the route, update the DSL, and start the route again. I'm not sure how to change the parameters after the route has started. ~Justin -Original Message- From: Spalat [mailto:suchitra.pa...@nsn.com] Sent: Wednesday, December 07, 2011 4:51 AM To:

Mail component ContentTypeResolver SPI customization

2011-12-06 Thread Justin Rosenberg
I'm having trouble understanding how to use a custom ContentTypeResolver for the mail component using Spring. Here is my Spring XML: camel:camelContext id=CamelContext-${project.artifactId}_${project.version} camel:contextScan / /camel:camelContext bean id=mail