Bindy problem in reading the file

2014-07-17 Thread Jaishankar
This is the sample code I've written. Please help me is solving this problem. Trying hard by using all the options in bindy but failed to execute it. *Input * 01633569|117 Luddenham Rd Luddenham |"Glenholme Farm" |DS04646MDIM-01|HS|IS|

RE: Cannot list directory error from SFTP route

2014-07-17 Thread sreejeb2
Thanks much Claus. That solved the issue. I now have disconnect=true and stepwise=false in my route config. Thanks, Sree From: Claus Ibsen-2 [via Camel] [mailto:ml-node+s465427n5753955...@n5.nabble.com] Sent: Thursday, 17 July 2014 7:06 PM To: Sreejith Gopinathan Subject: Re: Cannot list direct

Connecting to same server over different protocols

2014-07-17 Thread Jon Mithe
Hi, I'm quite new to camel but I'm a little stuck with connecting to a server in multiple ways. I have a server, I talk to it via protobuff messages and have to login to it to use it (cant use netty, all messages gets wrapped in a few "special" bytes) I work on multiple apps / systems, sometim

RE: JSON - Jackson return list rather than POJO

2014-07-17 Thread Daniel Gredler (DHL GM US)
> I'll keep you all posted (pun intended) :) I don't GET it. -Original Message- From: yourboogieman [mailto:eric_gree...@hotmail.com] Sent: Wednesday, July 16, 2014 6:10 PM To: users@camel.apache.org Subject: Re: JSON - Jackson return list rather than POJO I am being held up by this pr

[camel-mail] IMAP(SSL) self-signed certificat auto accepted

2014-07-17 Thread SpinWin
Hello, I tried to configure camel-mail to automatically accept self-signed certificates. - Definition of a SoketFactory and TrustManager that verifies nothing. - Passage of the parameter SoketFactory my route with : mail.imap.socketFactory.class (also tried with mail.imaps.socketFactory.class a

Usage of interface NotificationSender and @ManagedNotification

2014-07-17 Thread dermoritz
I love the way to use jmx in camel (just use annotations). In one of my @ManagedResources i want to publish notifications. I think camel is shipped with support for that too: I found the interface "NotificationSender": " /** * To be implemented by classes that can send out notifications */ publi

Re: Package camel spring into .jar file

2014-07-17 Thread sergarci
Hi everyone I'm doing this but still not working from jar file. I have a main class like: /public class CamelMain { public static void main(String[] args) throws Exception { String[] filename = { "spring/camel-context.xml" }; AbstractXmlApplicationContext spring = new

Re: How to handle huge aggregations

2014-07-17 Thread Matt Sicker
I'd just implement a custom CompletionAwareAggregationStrategy that appends each message to a file. On 17 July 2014 08:53, Claus Ibsen wrote: > Hi > > This has been debated in the past, and I think there is a couple of > blog posts also about this. > > Try check out the articles page to find th

Re: How to emit jmx events (with JmxNotificationEventNotifier?)

2014-07-17 Thread dermoritz
i found this http://docs.oracle.com/javase/tutorial/jmx/notifs/ (some time ago i created self made jmx), but my question is how to integrate it with camel context's mbean server. I want to use as much as possible from camel. -- View this message in context: http://camel.465427.n5.nabble.com/H

Re: How to expose camel producer with jmx

2014-07-17 Thread dermoritz
Thanks Claus! -- View this message in context: http://camel.465427.n5.nabble.com/How-to-expose-camel-producer-with-jmx-tp5753833p5753976.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Bridging from JMS to DIRECT without sending the JMS Reply in the DIRECT

2014-07-17 Thread RMA
Hi again Claus, I ended up finding about the "covertBodyTo(String.class)" in this post . Knowing that this is also your recommendation makes me feel more comfortable about the implementation. Once again th

Re: How to handle huge aggregations

2014-07-17 Thread Claus Ibsen
Hi This has been debated in the past, and I think there is a couple of blog posts also about this. Try check out the articles page to find those blogs http://camel.apache.org/articles And maybe search this forum to find those past talks. On Thu, Jul 17, 2014 at 9:30 AM, buffon wrote: > Hello,

Re: Sending mail using JAMES Server

2014-07-17 Thread contactreji
I don't see a need to use InOut MEP here. -- View this message in context: http://camel.465427.n5.nabble.com/Sending-mail-using-JAMES-Server-tp5753941p5753973.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Package camel spring into .jar file

2014-07-17 Thread sergarci
I've also tried with mainClass: org.apache.camel.spring.Main but it also failed -- View this message in context: http://camel.465427.n5.nabble.com/Package-camel-spring-into-jar-file-tp5753964p5753972.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Package camel spring into .jar file

2014-07-17 Thread sergarci
I think I need something like: org.apache.maven.plugins maven-jar-plugin true

Can we create custom route policy

2014-07-17 Thread sakchakravarthi
HI I am new to camel framework. I am configuring to routes one to receive file from webservice and other one is from file system. Now in run time can I start only file route based on configuration(ie., If I configured File in properties file). For this can use Route policy. If so can any one help

Re: CXF Schema Validation with a Custom Response

2014-07-17 Thread Andrew Thorburn
Assuming that your schema is not embedded in the WSDL, but in separate XSD files, you should look at the Validator Component: http://camel.apache.org/validation.html As in the example there, you can just catch a org.apache.camel.ValidationException (or, more specifically, a org.apache.camel.Schema

Re: How to emit jmx events (with JmxNotificationEventNotifier?)

2014-07-17 Thread dermoritz
Thanks, does this mean i don't need "JmxNotificationEventNotifier"? If i use those standard classes to emit notifications: can i found them under "notification" in same subtree as my "operations"/"Attributes" of my "@ManagedResource"? A @ManagedNotifier would be great. Annotation for method that

Re: Package camel spring into .jar file

2014-07-17 Thread Claus Ibsen
Hi See http://camel.apache.org/running-camel-standalone-and-have-it-keep-running.html And then put your spring xml in the .jar and set the main class in the manifest, so java -jar know what the main class is. On Thu, Jul 17, 2014 at 1:31 PM, sergarci wrote: > Hi everyone > > I'm here with a new

Package camel spring into .jar file

2014-07-17 Thread sergarci
Hi everyone I'm here with a new question about packaging Apache Camel application. I'm triying to package my application into a jar file. I don't have a custom main class, I just run camel from spring camel context and it starts all the routes like this. /http://camel.apache.org/schema/spring";

Re: How to expose camel producer with jmx

2014-07-17 Thread Claus Ibsen
On Wed, Jul 16, 2014 at 11:58 AM, dermoritz wrote: > Thanks for clarification. > > > "But as its just JMX you could manually enlist it in JMX." > Does this mean i can't use the provided annotations and do jmx completely > manual? Or is there a way to use the annotations and do just the "enlist" >

Re: How to emit jmx events (with JmxNotificationEventNotifier?)

2014-07-17 Thread Claus Ibsen
Hi That class JmxNotificationEventNotifier has support for sending Camel events as JMX notifications. It uses standard JMX javax.management.NotificationEmitter to do that, the JDK has a javax.management.NotificationBroadcasterSupport you can use. Check the source code and unit tests, and search t

Re: Bridging from JMS to DIRECT without sending the JMS Reply in the DIRECT

2014-07-17 Thread Claus Ibsen
On Thu, Jul 17, 2014 at 1:06 PM, RMA wrote: > Hi Claus, > > First of all thank you very much for your answer. I've added some debug > (using "process" with "system.out") to my routes and I can confirm the > information you've given me. > > My new suspicious is now that the reply isn't sent as a JM

Re: ActiveMQ topic as input endpoint in Apache Camel

2014-07-17 Thread Claus Ibsen
Hi Are you sending as persistent and as a durable topic. http://activemq.apache.org/why-do-i-not-receive-messages-on-my-durable-topic-subscription.html http://activemq.apache.org/how-do-durable-queues-and-topics-work.html On Thu, Jul 17, 2014 at 12:22 PM, Richa wrote: > Hi, > > I have a camel ro

Re: Bridging from JMS to DIRECT without sending the JMS Reply in the DIRECT

2014-07-17 Thread RMA
Hi Claus, First of all thank you very much for your answer. I've added some debug (using "process" with "system.out") to my routes and I can confirm the information you've given me. My new suspicious is now that the reply isn't sent as a JMS text message. In my asynchronous routes I explicitly a

CXF Schema Validation with a Custom Response

2014-07-17 Thread Rob
Hi I'm trying to employ schema validation on a camel route which uses cxf:cxfEndpoint: What I need to do is create a custom response using the error message as part of the reply but I need to be able to set the Exchange

ActiveMQ topic as input endpoint in Apache Camel

2014-07-17 Thread Richa
Hi, I have a camel route having input endpoint as activemq topic. I have added a selector to the topic for checking a header. But it looks like I am losing messages on the topic. My topic configuration is as follows: ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory();

How to emit jmx events (with JmxNotificationEventNotifier?)

2014-07-17 Thread dermoritz
I can't find an example how to emit Jmx events. I found examples how to create the notifier and how to listen to events but i just want to emit events within a "@ManagedResource". (Seeing attributes and operations is working fine) -- View this message in context: http://camel.465427.n5.nabble.c

Re: Cannot list directory error from SFTP route

2014-07-17 Thread Claus Ibsen
Hi As you poll the ftp server so infrequent, then set disconnect=true, so Camel logout. And then do a new login when it run next time. This avoids keeping the connective alive for such a long time, which can cause the other side to close it etc, and you see those pipes is closed exception when tha

Re: Cannot list directory error from SFTP route

2014-07-17 Thread sreejeb2
We are able to upload and download files. Camel is scheduled to run every hour. And for every alternative run I'm getting this issue. I can connect and navigate to folders using WinScp without any issue. Thanks, On 17 Jul 2014, at 6:12 pm, "Robert Rich [via Camel]" mailto:ml-node+s465427n57539

RE: blocking a route due to external conditions

2014-07-17 Thread Robert Rich
Thanks Claus! Based on the requirements, I believe it's ok that seda is in-memory only (but this will be tested of course). There is an implicit persistence in the triggering mechanism that would survive a restart of the JVM if it were to fail during the route, and there are no real transac

RE: Cannot list directory error from SFTP route

2014-07-17 Thread Robert Rich
Have you checked the log on your SFTP server? Caused by: java.io.IOException: Pipe closed at java.io.PipedInputStream.read(Unknown Source) This seems like it might be an error in the server. -Original Message- From: sreejeb2 [mailto:sreejith.gopinat...@lumoenergy.com.au

Re: How to remove intercept() or process() from superclass with adviceWith

2014-07-17 Thread mikaelst
Any idea? Maybe some advice? -- View this message in context: http://camel.465427.n5.nabble.com/How-to-remove-intercept-or-process-from-superclass-with-adviceWith-tp5753834p5753951.html Sent from the Camel - Users mailing list archive at Nabble.com.

How to handle huge aggregations

2014-07-17 Thread buffon
Hello, what is the best way to aggregate a huge number of messages and write them out to a file. I'd like to develop a route, which aggregates about 50, but probably more small messages. All of them have to be written to a single file. Is there a way just to append messages to a file, withou

Cannot list directory error from SFTP route

2014-07-17 Thread sreejeb2
Hi All, I'm using camel 2.13.0 for doing an SFTP file transfer. Camel works fine with downloading and uploading the files. But occasionally I get the following error. Can someone be able to help on this? Appreciate your help. EXCEPTION: Cannot list directory: STACK TRACE: org.apache.camel.

Re: Bridging from JMS to DIRECT without sending the JMS Reply in the DIRECT

2014-07-17 Thread Claus Ibsen
Hi Its A -> B (and when B is complete) the control goes back to A, and when A is complete, that "message" is sent back as reply to over JMS. So after calling B and if you need to do more work before you can reply over JMS, then just add further route processing steps. On Wed, Jul 16, 2014 at 7:2

Re: Having problems with the onException DSL.

2014-07-17 Thread Claus Ibsen
onException is only "global" for the same RouteBuilder instance. If you want to reuse that code among multiple route builders, then use java inheritance, and put the shared code in the base class, and call super.configure() On Wed, Jul 16, 2014 at 6:48 PM, Matt Sicker wrote: > http://camel.apach

Re: blocking a route due to external conditions

2014-07-17 Thread Claus Ibsen
Hi Mind the seda queue is in-memory only. But you can suspend/stop the Camel routes that consumes for the seda endpoint. And then resume/start the route when its okay again. For that see the controlbus eip Or there is API on CamelContext and JMX operations as well to control the routes. Also ther

Re: Dispatch queue 'mqtt client' was not executing error from camel-mqtt producer

2014-07-17 Thread Tomohisa Igarashi
Hi Charles, I don't think it's a warning, please see this surefire report: http://pastebin.com/zYGxWmNx You can see the test fails with this error. The message is not sent actually. Thanks, Tomo -- IGARASHI Tomohisamailto:tm.igara...@gmail.com On Thu, Jul 17, 2014 at 3:47 PM, Charles Moul