Re: Activemq consumer is closing

2013-06-19 Thread indrayani
i tried but still i am getting the exceptions -- View this message in context: http://camel.465427.n5.nabble.com/Activemq-consumer-is-closing-tp5731140p5734411.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Activemq consumer is closing

2013-06-19 Thread indrayani
Hi , I understood that these are just warnings , but what could be the reason behind getting consumer closed and session closed warnings. if you check the scenario that i have mentioned , then in that case , 2 web applications are communicating with each other via camel routes which consist of serv

http4 component

2013-06-19 Thread Jason Chaffee
I would like to access both the statusText and uri that is added to the exception during populateHttpOperationFailedException, but I want to access it when I have throwExceptionOnFailure=false. I have been looking through the code and don't see an easy way to get that information, but I thought I

http4

2013-06-19 Thread Jason Chaffee
I would like to access both the statusText and uri that is added to the exception during populateHttpOperationFailedException, but I want to access it when I have throwExceptionOnFailure=false. I have been looking through the code and don't see an easy way to get that information, but I thought

Jackson question... why does this fail?

2013-06-19 Thread Mike Oxford
... // mina component // unmarshal it // marshal it I can put a bean:myBean in between and see that, yes, it is being unmarshalled correctly. Even more complex JSON will unmarshall cor

Re: Servet Componnet HttpSession

2013-06-19 Thread ramrubio
camel version is 2.10.4. route is: this.from("servlet:///?matchOnUriPrefix=true") .process(processor) .removeHeader(Exchange.HTTP_PATH) .dynamicRouter(method(CamelRoute.class, "slip")); -- View this message in context: http://camel.465427.n5.nabb

Re: RestFul service using camel

2013-06-19 Thread Sergey Beryozkin
Hi Have a look at this thread: http://camel.465427.n5.nabble.com/Routing-from-servlet-to-CXF-JAXRS-via-direct-td5733746.html#a5733749 that option is about using (CXF) JAX-RS server endpoint and getting Camel Servlet transport linked to it. Also consider experimenting with CXFRS simple bindin

Re: RestFul service using camel

2013-06-19 Thread SyedBhai
THi Guys, My name is Syed. I have developed one JAX-RS webservice. In this webservice, the class is com.syed.WelcomeService (Its path is "/class1"). This class has a POST method. @Path("/post") @POST public String sayHello(String xyz) {...} I have deployed this webservice successful

camel sftp privateKeyFile - load from classpath

2013-06-19 Thread javamonkey79
Is there any way to load the privateKeyFile for sftp endpoints from the classpath? It looks to me like JSCH is accepting a String param and then converting that to a file, which probably won't work for classpath files. Maybe this is an improvement in the SFTP component? -- View this message in c

Re: camel 2.11 release with activemq-camel 5-8?

2013-06-19 Thread ltsallas
Can someone give me a hint on this issue with ActiveMQ component? In http://camel.apache.org/activemq.html I can read that to get camel to work with activemq : I need this dependency . activemq-camel Which version should I use with camel 2.11? Could this issue in comment 1 be a bug? Thanks

Re: Activemq consumer is closing

2013-06-19 Thread kiranreddykasa
And it was not working because of autoStartup=false. As you said it's just a warning. - Regards kiran Reddy -- View this message in context: http://camel.465427.n5.nabble.com/Activemq-consumer-is-closing-tp5731140p5734389.html Sent from the Camel - Users mailing list archive at Nabble.

Re: Activemq consumer is closing

2013-06-19 Thread kiranreddykasa
Hi I got this warning while using temporary reply queues. But once I moved to exclusive reply queues it's fine. camel version : 2.10.3 activemq : 5.7.0 - Regards kiran Reddy -- View this message in context: http://camel.465427.n5.nabble.com/Activemq-consumer-is-closing-tp5731140p5734388

Re: Activemq consumer is closing

2013-06-19 Thread Claus Ibsen
Hi Its just a warning being logged. Does something stop working? You can change the logging verbosity with the options: errorHandlerLogStackTrace errorHandlerLoggingLevel See http://camel.apache.org/jms And what version of ActiveMQ and Camel do you use? On Fri, Apr 19, 2013 at 12:51 PM, kira

RE: Camel Context InterceptStrategy

2013-06-19 Thread Zhemzhitsky Sergey
Hello guys, Here is the source from camel 2.10 for the startRoute(RouteDefinition) and startRoute(String) I suppose that the main difference between startRoute(RouteDefinition) and startRoute(String) (in camel 2.10) is route.prepare(this) + startRouteService(routeService, true) in the first m

Re: MailComponent/MailConsumer misses Mails

2013-06-19 Thread cgiera
Christian Mueller wrote > Can you send me the entire log file. I need more context than only two > lines... Above of the 2 lines you can find a big part of the log file, I thought this will be enough, but sure I can send you the 30 MB zip files :). Christian Mueller wrote > Do you have multiple

Re: two way ssl with a camel cxf proxy use case on Tomcat

2013-06-19 Thread Nico Mommaerts
It's this problem: http://cantina.co/2012/05/14/navigating-the-perils-of-sslv2-and-httpclient/comment-page-1/#comment-61403 Java is trying to answer in SSLv2 instead of TLS. But I can't find how to disable SSlv2 using Camel/CXF/Spring config? I have no algorithm defined on my http conduit so it sh

Issue with persisting data using openJPA

2013-06-19 Thread abhi
I am persisting data into SQL Server using openJPA in camel route. I have defined my configuration in persistence.xml as below org.apache.openjpa.persistence.PersistenceProviderImpl

Re: two way ssl with a camel cxf proxy use case on Tomcat

2013-06-19 Thread Nico Mommaerts
I removed the ciperSuiteFilters, I get further now but now receive this: default-workqueue-1, handling exception: java.net.SocketException: Connection reset %% Invalidated: [Session-2, SSL_RSA_WITH_RC4_128_MD5] default-workqueue-1, SEND TLSv1 ALERT: fatal, description = unexpected_message I don'

Re: MailComponent/MailConsumer misses Mails

2013-06-19 Thread Christian Müller
Can you send me the entire log file. I need more context than only two lines... Do you have multiple routes polling the same INBOX? Did you stopped/started the routes (may we have an issue not correctly stopping the rouet)? Best, Christian Müller - Software Integration Specialis

Re: Selective Consumer in a clustered environment

2013-06-19 Thread Christian Müller
Cool, I didn't knew this... Best, Christian Müller - Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.apache.org/foundation/ Apache Member: https://www.apache.org/foundation/members.html https://www.linkedin.co

Re: Camel Context InterceptStrategy

2013-06-19 Thread Christian Müller
Sounds strange... But to be honest, It sounds like a question for Claus, Hadrian, ... ;-) Best, Christian Müller - Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.apache.org/foundation/ Apache Member: https://w

Re: Problem with Camel FTP component because of bug in commons-net

2013-06-19 Thread Christian Müller
The linked commons-net issue [1] is fixed in version 3.3. So, upgrading to commons-net 3.3 SHOULD fix this issue. However, it would be good if we could add first a unit test which shows this issue with commons-net 3.2 and Camel 2.11.x/2.12.x so that we can make sure we fixed this issue and do not r

Re: Camel Mustache & Handlebars components

2013-06-19 Thread Christian Müller
Cool! And don't forget the documentation ;-) Best, Christian Müller - Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.apache.org/foundation/ Apache Member: https://www.apache.org/foundation/members.html https:

Re: Activemq consumer is closing

2013-06-19 Thread Christian Müller
The consumer for which which queue was closed? Can you share the complete stack trace? Best, Christian Müller - Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.apache.org/foundation/ Apache Member: https://www.

Re: two way ssl with a camel cxf proxy use case on Tomcat

2013-06-19 Thread Nico Mommaerts
Ok thanks, that explains a lot. Unfortunately, I still don't get it to work. When I look at the javax.net.debug output and compare to http://en.wikipedia.org/wiki/Transport_Layer_Security#Client-authenticated%5FTLS%5Fhandshake, I don't see *CertificateVerify* coming along, only the steps from one

Re: MailComponent/MailConsumer misses Mails

2013-06-19 Thread cgiera
Here is another part of the logfile where this problem occures: Here is something really strange: INFO | jvm 1| 2013/06/19 11:30:37 | 2013-06-19 11:30:37,237 [Camel (camel) thread #2 - imap://] DEBUG - Polling mailbox folder: imap://:143, folder=INBOX INFO | jvm 1| 2013/06/19 11:30:37

Re: Activemq consumer is closing

2013-06-19 Thread kiranreddykasa
can U try setting "replyToType"=Exclusive and "replyTo"=anyqueue - Regards kiran Reddy -- View this message in context: http://camel.465427.n5.nabble.com/Activemq-consumer-is-closing-tp5731140p5734366.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: PollingConsumerSupport

2013-06-19 Thread Christian Müller
Did you checked the Java doc? What didn't you understood? There are three methods you have to implement... Best, Christian Müller - Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.apache.org/foundation/ Apache

Re: MailComponent/MailConsumer misses Mails

2013-06-19 Thread cgiera
Hello, now with java mail 1.4.5 and log entries(have added slf4j_log4j.jar to ensure debug messages occure): It's the same behavior and the same log entries, missing mail logs: INFO | jvm 1| 2013/06/19 11:54:23 | * 2 RECENT INFO | jvm 1| 2013/06/19 11:54:23 | * SEARCH INFO | jvm 1

Re: Selective Consumer in a clustered environment

2013-06-19 Thread Claus Ibsen
Hi If using ActiveMQ you can take a look at http://activemq.apache.org/exclusive-consumer.html And how to set that option in Camel ActiveMQ component http://camel.apache.org/activemq Or use message groups which is something most message brokers support http://activemq.apache.org/message-groups.h

Re: Autosys poller

2013-06-19 Thread Christian Müller
What's the problem with the route you show? It looks good to me... Best, Christian Müller - Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.apache.org/foundation/ Apache Member: https://www.apache.org/foundatio

RE: Camel Context InterceptStrategy

2013-06-19 Thread Zhemzhitsky Sergey
Hi Christian, Thanks for the link, I've already studied it. I've managed to apply intercept strategies at runtime to a newly registered CamelContext service with something like this camelCtx.addInterceptStrategy(interceptStrategy); for (RouteDefinition routeDef : camelCtx.getRouteDefinitions()

Re: Selective Consumer in a clustered environment

2013-06-19 Thread Christian Müller
Which kind of container do you use? Which set up? With Karaf/ServiceMix, you can have a Master/Slave set up. This will make sure only one service is started. Otherwise, I'm afraid you have to do it by your own: - Route start flag up should be false in this case and some "route manager" determine wh

PollingConsumerSupport

2013-06-19 Thread vkarkhanis
Hello, If I try to create a cutome endpoint and implement PollingConsumerSupport, I am required to implement two methods, recieve and recieveNoWait(). What exactly is the difference between the two and what exactly is expected in the implementation? Thank you, Regards\ vkarkhanis -- View this

Autosys poller

2013-06-19 Thread vkarkhanis
Helloo, I have a use case to create a autosys poller. (autosys is system which is used to schedule jobs ) I get a list into a cache everyday post 5 PM. The exact time of the list availability is indicated by the autosys job going success On success a processor is executed I want to configure this

Re: Camel JMS retry mechanism

2013-06-19 Thread Christian Müller
Check the "consumerType" option from the JMS component [1]. You can configure/implement your own MessageListenerContainer, if you have to do some specials... [1] http://camel.apache.org/jms.html Best, Christian Müller - Software Integration Specialist Apache Camel committer: ht

Re: Camel Integration Advice Needed

2013-06-19 Thread Christian Müller
May be this link is useful for you [1]. I would define a route which does the processing like this: ... And in your route manager (or wherever), you can add routes at runtime which are listening on AMQP endpoints and sending the exchanges to your existing route: Of course, you have to code

Re: Camel JMS retry mechanism

2013-06-19 Thread Richa
The exception listener does not work because the exception is not thrown. I checked the underlying classes in the jar. In the DefaultMessageListenerContainer.java, there is method refreshConnectionUntilSuccessful() which keeps on retrying to connect to JMS. It has a try-catch block where the connec

Re: Camel JMS retry mechanism

2013-06-19 Thread Claus Ibsen
No, check the unit tests of camel-jms. Or study a bit harder On Wed, Jun 19, 2013 at 11:02 AM, Richa wrote: > Can you please give me a sample code of the custom class that I need to > implement for the exceptionListener? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.

Re: Problem with Camel FTP component because of bug in commons-net

2013-06-19 Thread Erker, Carsten
Hi Claus, after checking again I found this definitely relates to CAMEL-6219. As of now, we only got a simple FTP route where commons-net-3.3 works fine. I can offer running the Camel tests with 3.3 and adding a test case for the specific issue, however this will not be before the end of next

Re: Camel JMS retry mechanism

2013-06-19 Thread Richa
Can you please give me a sample code of the custom class that I need to implement for the exceptionListener? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-JMS-retry-mechanism-tp5734328p5734348.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Integration Advice Needed

2013-06-19 Thread jpbarto
Current Thinking After further research it is still not immediately evident to me on the EIP which applies but to reiterate here is the functionality I seek, potentially multiple message providers publishing messages which, perhaps through a Dynamic Router, deliver messages to various endpoints ba

Re: Consume opened excel file with ftp

2013-06-19 Thread axelf
Thanks for your answers. I'm going to work on it and eventually give a feed back. Thank you again. (sorry for my english) -- View this message in context: http://camel.465427.n5.nabble.com/Consume-opened-excel-file-with-ftp-tp5734296p5734343.html Sent from the Camel - Users mailing list arch

Re: Camel Mustache & Handlebars components

2013-06-19 Thread gquintana
Alright, I'll create a JIRA and PR for the Mustache component then. Gérald 2013/6/19 Claus Ibsen-2 [via Camel] < ml-node+s465427n5734334...@n5.nabble.com> > Hi > > Yeah the mustache would be great. I would like to add more templating > from these new libraries that the new generation of develo

Re: Consume opened excel file with ftp

2013-06-19 Thread Claus Ibsen
Hi There is a number of readLock options you can try such as rename, changed etc. See details at: http://camel.apache.org/file2.html But Christian is right, its usually better to write the file in another directory and move it when its done, or write the file using a temporary name, and rename wh

Re: Camel JMS retry mechanism

2013-06-19 Thread Claus Ibsen
What broker do you use? You can use the exceptionListener option on the JMS component, and implement a custom code to handle the JMS exceptions. And possible in that use-case stop the listener or something if you want to terminate it etc? On Wed, Jun 19, 2013 at 7:14 AM, Richa wrote: > Hi, > I h

Re: Activemq consumer is closing

2013-06-19 Thread indrayani
hi, thanks for the quick reply. actually my scenario is little different , I am not creating any consumer on camel side. I have just defined routes . if you have some time, then can you please check the following scenario. what is happening is, first and second time communication works fine, but

Re: How to get failed recipient list name in camel

2013-06-19 Thread Claus Ibsen
Hi There is a property on the Exchnge with key http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/Exchange.html#FAILURE_ENDPOINT That refers the to last failed endpoint. On Wed, Jun 19, 2013 at 8:46 AM, loganathan wrote: > I have route like this It will create dynamic(M

Re: Servet Componnet HttpSession

2013-06-19 Thread Claus Ibsen
What camel version do you use? And whats the Camel route with your "proxy" ? On Tue, Jun 18, 2013 at 9:28 PM, ramrubio wrote: > I've setup a proxy using Tomcat Servlet component but when end point service > receives Http request the HttpSessionId is the same for all clients when the > proxy is in

Re: Problem with Camel FTP component because of bug in commons-net

2013-06-19 Thread Claus Ibsen
Hi Ah thanks. We downgraded to 3.1 as that was working well. Are you sure 3.3 works fine? On Tue, Jun 18, 2013 at 6:23 PM, Erker, Carsten wrote: > Hi, > > I just stumbled upon a bug in Apache Commons Net 3.2 / FTPClient. The bug is > known and fixed in Commons Net 3.3: > https://issues.apache.

Re: Camel Mustache & Handlebars components

2013-06-19 Thread Claus Ibsen
Hi Yeah the mustache would be great. I would like to add more templating from these new libraries that the new generation of developers use. In the old days we kinda only had Velocity. But today there is so many new ones. On Tue, Jun 18, 2013 at 5:25 PM, gquintana wrote: > Hi Claus, > > You ca

Re: Camel JMS retry mechanism

2013-06-19 Thread Richa
I dont acheive anything by putting the onException block because as I said, there is no exception thrown from JMS. Hence the control never goes to the onException block. The connection failure message is logged into a warning and it keeps on retrying again and again -- View this message in conte

How to get failed recipient list name in camel

2013-06-19 Thread loganathan
I have route like this It will create dynamic(Multiple) recipientList at the time of route startup. from("route") .routeId("name") .transacted() .to("route2"); from("route2") .t

Re: Activemq consumer is closing

2013-06-19 Thread indrayani
I am facing the same " consumer closed issue " that ' kiranreddykasa ' was facing and from her post what i found was she has got the solution of autostart, so just wanted to know how did she apply that solution. in which xml she did changes. -- View this message in context: http://camel.465427.