Re: SMTP with JNDI Mail Session

2015-03-13 Thread Woonsan Ko
Oh, maybe I can specify 'javaMailSender' parameter.FWIW, I've just found an example configuring a javaMailSender bean using jndi: - https://rozvoj.fit.cvut.cz/Main/spring-mail-a-jndi Thanks anyway, Woonsan From: Woonsan Ko woon_...@yahoo.com.INVALID To: users@camel.apache.org

Re: MongoDB Consumer Endpoint: ReadPreference cannot be set?

2015-03-13 Thread Raul Kripalani
I added a unit test and merged your PR. Thanks for your contribution to Camel, and looking forward to many more! Regards, *Raúl Kripalani* Apache Camel PMC Member Committer | Enterprise Architect, Open Source Integration specialist http://about.me/raulkripalani |

Caused by: java.lang.InternalError / Caused by: java.util.zip.ZipException: error in opening zip file

2015-03-13 Thread Gonzalo Vásquez Sáez
Days ago I posted a similar problem to this list, but having done what was suggested (moved to 2.13.x version instead of 2.14.y version as we are using Java 6), same situation arises. Using Camel Core 2.13.3 with Java 1.6.0_20 in Debian GNU/Linux 5.0.6 (lenny) Any hints would be appreciated

Re: Caused by: java.lang.InternalError / Caused by: java.util.zip.ZipException: error in opening zip file

2015-03-13 Thread harald
Hi Gonzalo, not having a solution for you I’d like to throw in my 2 cents. 1. Is the installation located on a shared drive like NFS? If yes, check if you see connection problems at about the time the exception was thrown. 2. Did you check the integrity of the archives? 3. Did you check the

Re: Caused by: java.lang.InternalError / Caused by: java.util.zip.ZipException: error in opening zip file

2015-03-13 Thread Gonzalo Vásquez Sáez
1.- No shared drives at all 2.- Yes, all fine 3.- Can't update easily nor check the HDD integrity, as it's a production server. I just left the same daemon running on another server so see if it has to do with the server or with Camel itself. Atentamente / Regards, Gonzalo Vásquez Sáez

Re: Caused by: java.lang.InternalError / Caused by: java.util.zip.ZipException: error in opening zip file

2015-03-13 Thread woon_san
Just searched on the internet out of curiosity. You might want to check either 'too many open files (file descriptor issue) or outOfMemory issue. Just two cents, Woonsan Ref) -  http://stackoverflow.com/questions/8446243/what-caused-the-java-lang-internalerror-it-extends-virtualmachineerror - 

Re: Caused by: java.lang.InternalError / Caused by: java.util.zip.ZipException: error in opening zip file

2015-03-13 Thread harald
As far as I remember the ZipException is only thrown if the format of the archive is not valid. @woon_san: ;) you’ve been faster. Next guess from me would have been: to many files open, but I would have expected a different exception. In Java7 it’s a FileNotFoundException but since you are

Re: Caused by: java.lang.InternalError / Caused by: java.util.zip.ZipException: error in opening zip file

2015-03-13 Thread Gonzalo Vásquez Sáez
Thanks...the too many files issue sounds interesting, but it must be related to some file misuse somewhere in code (perhaps Camel's), as we are not using external filesor maybe the JVM itself! I'll read about it.- Atentamente / Regards, Gonzalo Vásquez Sáez gvasq...@waypoint.cl +56 (2)

Re: SMTP with JNDI Mail Session

2015-03-13 Thread Woonsan Ko
After playing with mail component for smtp (camel-2.14.2), I think I found some problems. First, the documentation about 'javaMailSender' property [1] seems wrong and totally misleading. It should have referred to org.apache.camel.component.mail.JavaMailSender, not

how to know how many files Camel Endpoint scanned?

2015-03-13 Thread ramanarao
I have endpoint which scans the uri(folder). and one route which processes the files. But how to know how many files the endpoint scanned ?... please let me know if this is not clear to you.. -- View this message in context:

Re: beginner: download json transform to xml send to ftp

2015-03-13 Thread richardgroote
Hello, I'am using Spring configuration to configure the camel. Below is a example of the things you described may be it's usefull beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:camel=http://camel.apache.org/schema/spring;

RE: how to send response to the webservice

2015-03-13 Thread prajod.vettiyattil
Hi, Add the mep attribute to the exchange in the last route: Your original code: to uri=file:target/messages?fileName= ${date:now:MMdd}/TEST_${date:now:MMdd}.csv/ Your code with mep attribute added: to uri=file:target/messages?fileName=

Re: Camel Exception propogation to ActiveMQ - DLQ

2015-03-13 Thread Claus Ibsen
Hi Are you using transactions, if so a rollback cannot enrich the message with any details from Camel, but only move the message as-is to the DLQ. If you want to enrich the message from Camel you would need to commit instead but let Camel enrich the message and send it to a new destination which

RE: how to send response to the webservice

2015-03-13 Thread chaituu
Prajod, I need OrderReponse should be sent to webservice not the file output. -- View this message in context: http://camel.465427.n5.nabble.com/how-to-send-response-to-the-webservice-after-generated-the-csv-route-tp5764065p5764079.html Sent from the Camel - Users mailing list archive at

Re: Camel stop routes and start

2015-03-13 Thread Willem Jiang
Camel Context holds the reference of components, languages, data formats. You cannot share the direct:endpoint across the camel context. I don’t think it’s not a good choice to create 100 camel contexts in a single JVM. Can you try to create a new route instead restart the one route? --

Re: camel-catalog 2.15.0 and karaf 2.4.1

2015-03-13 Thread Willem Jiang
+1 for releasing Camel 2.15.1 in a month. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On March 13, 2015 at 6:03:19 PM, Claus Ibsen (claus.ib...@gmail.com)

Re: camel-catalog 2.15.0 and karaf 2.4.1

2015-03-13 Thread Willem Jiang
Hi, You can check out the camel-2.15.0 source[1] and build the camel-catalog code yourself to fix the issue with below commands: cd platforms/catalog mvn clean install -Dtest=false I also put the fixed camel-catalog.jar here[2] in case you don’t want run the build. You need to replace your

Re: camel-catalog 2.15.0 and karaf 2.4.1

2015-03-13 Thread Claus Ibsen
Hi I think we should for a couple of weeks gather other issues reported with the new 2.15.0 release, and then cut a 2.15.1 release so the Karaf people easily can install and use Camel without having to download the patched JAR etc. On Fri, Mar 13, 2015 at 10:41 AM, Willem Jiang

Re: LoggingOutInterceptor only info mode, the smartest way ?

2015-03-13 Thread Willem Jiang
If you take a look at the LoggingOutInterceptor[1] and LoggingInInterceptor[2] you can it is hardcoded. So you may need to write your own logging interceptor or it. [1]https://github.com/apache/cxf/blob/master/core/src/main/java/org/apache/cxf/interceptor/LoggingOutInterceptor.java

Camel-SJMS: Null pointer exception when sending a message (+ proposed patch)

2015-03-13 Thread Stanislaw Kulczycki
Hi All, sorry for spamming around SJMS component but I'm having issues with it :-( Now I'm getting NPE when I'm trying to send a message with content created using POJO created with JAXB. I think that it is a bug in the JmsMessageHelper with results in Null Pointer exceptions. It looks like the

SpringWebserviceProducer WebServiceMessageExtractor

2015-03-13 Thread richardgroote
Hello, We're currently using SpringWS for sending and receiving soap messages. When sending a soap call and the response of the soap call contains attachments than those are not handled by the SpringWebserviceProducer. It would be nice if the SpringWebserviceProducer support a custom

Quartz Component quartz.properties in Karaf

2015-03-13 Thread Thomas Weinschenk
Hi all, I am trying to configure the quartz scheduler of the Quartz Component via the quarzt.properties in Karaf, but I have no glue where to put the file in Karaf? Regards, Thomas -- View this message in context:

Re: MongoDB Consumer Endpoint: ReadPreference cannot be set?

2015-03-13 Thread jpeschke
I created a JIRA ticket https://issues.apache.org/jira/browse/CAMEL-8483 and a Pull Request on GitHub https://github.com/apache/camel/pull/434 for this. First time contributingto Camel, exciting :). I hope, I didn't break anything. -- View this message in context:

Re: camel-catalog 2.15.0 and karaf 2.4.1

2015-03-13 Thread alexey-s
I'll wait for the new assembly 2.15.1. Still hawtio and correct. The new Camel shows no counter calls in Route Diagram. Version 2.14.0 show counter calls and changed. Aleksey -- View this message in context:

SMTP with JNDI Mail Session

2015-03-13 Thread Woonsan Ko
Hi, Can I use JNDI resource name in smtp: endpoint instead of having to specify the detail in either the URL or MailComponent bean [1]. It should be very useful if I can simply refer to the configured JNDI mail session in the container. Thanks in advance, Woonsan [1]