Re: Camel resources URI into OSGi environment

2013-07-16 Thread Cristiano Costantini
Thank you Willem! I'm stick to the camel version in ServiceMix (until I have time to try just Camel + Karaf) which is using 2.10.4 now and moving to 2.10.6 I think in next revision, but it is good to know it is fixed! Regards, Cristiano 2013/7/17 Willem jiang > Hi, > > I just checked the cod

Re: Which Component of camel is used for subscriptions or polling?

2013-07-16 Thread cannykanna
Thank you Christopher. Will look into the doc. If there are any requires, i will let U know..!! Regards, Kannaiah -- View this message in context: http://camel.465427.n5.nabble.com/Which-Component-of-camel-is-used-for-subscriptions-or-polling-tp5735709p5735763.html Sent from the Camel - Users

Re: Exceptions when aggregating messages

2013-07-16 Thread cristisor
I'm afraid that I don't understand which option you are talking about. And how can I "care about the the property value which could not be serialized", please explain in more details if possible? Thanks. -- View this message in context: http://camel.465427.n5.nabble.com/Exceptions-when-aggrega

[ANNOUNCE] Apache Camel 2.11.1 Released

2013-07-16 Thread hadrian
The Apache Camel project [1] is a powerful open source integration framework based on known Enterprise Integration Patterns [2]. The Camel community announces the immediate availability of the new patch release camel-2.11.1. The artifacts are published and ready for you to download [3] either

Re: How to use PropertyPlaceholderConfigurer to configure the autoStartup option

2013-07-16 Thread bonnahu
Hi Willem, I am using 2.10.1. Thanks -- View this message in context: http://camel.465427.n5.nabble.com/How-to-use-PropertyPlaceholderConfigurer-to-configure-the-autoStartup-option-tp5735604p5735754.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to use PropertyPlaceholderConfigurer to configure the autoStartup option

2013-07-16 Thread bonnahu
Hi Claus, It works for me! Thanks a lot! -- View this message in context: http://camel.465427.n5.nabble.com/How-to-use-PropertyPlaceholderConfigurer-to-configure-the-autoStartup-option-tp5735604p5735753.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel resources URI into OSGi environment

2013-07-16 Thread Willem jiang
Hi, I just checked the code of XsltUriResolver code in the trunk, it should be resolved since Camel 2.11.x. You may need to consider to upgrade the Camel version of it. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Bl

Re: Exceptions when aggregating messages

2013-07-16 Thread Willem jiang
Did you enable the option to let camel-jms serialize the exchange? You need to care about the the property value which could not be serialized if that option is turned on. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Bl

Re: Ftp connection through SOCKS Proxy.

2013-07-16 Thread Willem jiang
As you know current camel-ftp is based of common net API, if the NET-468 patch is released, I think we can easily as the support of setting the Proxy object. Please feel free to fill a JIRA[1] and we can keep it in mind :) [1]https://issues.apache.org/jira/browse/CAMEL -- Willem Jiang Red H

Re: Incoming message from a JMS queue need to be processed in parallel but keep the ordering of messages

2013-07-16 Thread Raul Kripalani
On Tue, Jul 16, 2013 at 9:48 AM, gquintana wrote: > Seda breaks transaction propagation since different threads are used. But > you > can replace seda by JMS > This applies when a Global TransactionManager is in place (e.g. JTA), whose typical way of synchronizing several atomic TXs is by followi

Re: Incoming message from a JMS queue need to be processed in parallel but keep the ordering of messages

2013-07-16 Thread Raul Kripalani
On Mon, Jul 15, 2013 at 6:42 PM, salemi wrote: > I am not sure if I can use concurrent consumer option since I have to keep > the order of messgaes for the buckets. > Message groups are meant specially for this scenario. A group is assign to at most 1 consumer at a time. Therefore, until the con

Re: How to recover corrupted HawtDB files

2013-07-16 Thread Christian Müller
I'm not sure whether this is the best forum for this kind of question. May be posting on the HawtDB mailing list makes more sense... Only my 0,02 €, Christian - Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.ap

AW: conditional uri

2013-07-16 Thread jhm
If your xml-route-definition is inside a spring configuration, spring properties should be possible. Jan > -Ursprüngliche Nachricht- > Von: Chris Wolf [mailto:cwolf.a...@gmail.com] > Gesendet: Dienstag, 16. Juli 2013 16:17 > An: users@camel.apache.org > Betreff: Re: conditional uri > > I

Ftp connection through SOCKS Proxy.

2013-07-16 Thread ninadmnaik
In our project, we need to establish FTP connection through a SOCKS proxy. Since Camel uses Apache Commons Net API underneath for FTP connections, I tried looking into how Commons Net API supports this. Till last year, the only way to achieve this was to set Java's System Properties as explained he

Re: conditional uri

2013-07-16 Thread Chris Wolf
It depends on what you mean by "conditional" - if you mean conditional at route-definition time, you can use property placeholders and/or Language Expressions. If you mean conditional at runtime, then I'm pretty sure you can only do that with producer endpoints (i.e. "to" endpoints) see: http://

Re: Exceptions when aggregating messages

2013-07-16 Thread cristisor
It seems that I was trying to serialize the exchange properties, which is nonsense because the exchange that arrives on the new route will contain it's own properties, and everything was failing probably when trying to serialize the following property: *CamelFileExchangeFile=GenericFile[path\filena

Re: conditional uri

2013-07-16 Thread David Karlsen
You could either make it configurable with placeholders: http://camel.apache.org/using-propertyplaceholder.html or use a when choice: http://camel.apache.org/spring-xml-extensions.html 2013/7/16 boris > How could I have a conditional uri string? > For example, > I have for testing. > I want t

conditional uri

2013-07-16 Thread boris
How could I have a conditional uri string? For example, I have http://camel.465427.n5.nabble.com/conditional-uri-tp5735724.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: recipientList and several CamelContext

2013-07-16 Thread alexey-s
I'm change vm component to direct-vm component. See http://camel.apache.org/direct-vm.html It's work! -- View this message in context: http://camel.465427.n5.nabble.com/recipientList-and-several-CamelContext-tp5735714p5735725.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Shutting down a route, inflight messages and splitter

2013-07-16 Thread Aalandril
Thank you for your speedy response. In answer to your questions: I have read that document, but in this case I only want to shut down Route #2. When Route #1 picks up the next file I want to to dynamically create a new (uniquely named) Route #2, but routes #1, #3 and #4 can (hopefully) remain unaf

Re: Camel resources URI into OSGi environment

2013-07-16 Thread Cristiano Costantini
Hi all again, in the end I think I've detected an issue, I don't know ho to report it, I don't even know if it is a Camel or ServiceMix/Karaf issue. I report here what it is about and please help me pointing me to report it the right way. The full problem is: - If I deploy a route using beans.xml

Re: Shutting down a route, inflight messages and splitter

2013-07-16 Thread gquintana
Read http://camel.apache.org/graceful-shutdown.html, and probably add startupOrder: Route #1 startup order 4 Route #2 Route #3 startup order 2 Route #4 startup order 1 Are your Routes #3 and #4 In-Out or In Only? Is your Splitter using an aggregation strategy? In which one of your routes are in-f

Canonical Way to Create a New Message Given Certain Conditions

2013-07-16 Thread al94781
Hi there, We have a situation in our route whereby, when we encounter an error in processing an inbound message, we want to flag the original as "Failed" (in a header) prior to further processing, and also generate a new message to request a tidy up of resources the original failure may have left

Re: Run once a month Camel Bean

2013-07-16 Thread Joe San
Much simpler approach would be to use a CronScheduledRoutePolicy! Regards, Joe On Tue, Jul 16, 2013 at 1:02 PM, Christian Müller < christian.muel...@gmail.com> wrote: > Yes, take a look at the Camel Quartz component. > > Best, > Christian > Am 16.07.2013 12:48 schrieb "kikou1984" : > > > Hi, >

Shutting down a route, inflight messages and splitter

2013-07-16 Thread Aalandril
Hi, I have an application that uses a few different routes, but basically it picks up a file, extracts some records using splitter and sends them off to a jms queue. When attempting to shut down the route I am informed my messages are still inflight and so have to wait 5 minutes before it can be s

Re: recipientList and several CamelContext

2013-07-16 Thread alexey-s
A small mistake. The first process begins from("quartz://core-oos/attach?cron={{exchange.doc.attach.cron}}&stateful=true") -- View this message in context: http://camel.465427.n5.nabble.com/recipientList-and-several-CamelContext-tp5735714p5735715.html Sent from the Camel - Users mailing list ar

recipientList and several CamelContext

2013-07-16 Thread alexey-s
Hi all. There is a process of loading data from external systems. // first osgi bundle from("direct:loadFile") .id("exchangeCheckUnloadedAttach") .split().method(unloadedAttachSplitter, "findUnloadedAttach") .recipientList() .method(dynamicRouter, "getVerifyAttachRoutes") .aggr

Re: Run once a month Camel Bean

2013-07-16 Thread Christian Müller
Yes, take a look at the Camel Quartz component. Best, Christian Am 16.07.2013 12:48 schrieb "kikou1984" : > Hi, > > Is it possible to execute a camel treatment once a month ? > > Thxs. > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Run-once-a-month-Camel-Bean-tp5

Run once a month Camel Bean

2013-07-16 Thread kikou1984
Hi, Is it possible to execute a camel treatment once a month ? Thxs. -- View this message in context: http://camel.465427.n5.nabble.com/Run-once-a-month-Camel-Bean-tp5735712.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Which Component of camel is used for subscriptions or polling?

2013-07-16 Thread Christoph Emmersberger
Hi Kannaiah I assume that you want to poll based upon different timer events. Have a look at the documentation of a PollingConsumer: http://camel.apache.org/polling-consumer.html You probably would like to end up with something similar like: from("timer://foo?period=5000").bean(cool, "someBusi

Which Component of camel is used for subscriptions or polling?

2013-07-16 Thread cannykanna
I am working on camel 2.11.0. I was able to do routing using cxf component and perform CRUD operations in my endpoint application. Now how do I do polling or which component is used for this in camel. Subscription or polling: In concurrent intervals of time, whatever updates or changes happen in m

Re: Camel JPA - Clustered Deployment - Quartz Scheduling

2013-07-16 Thread dkum003
Hi Patrick, Did you find a solution to this ? I have a similar requirement where i need to trigger a daily cron schedule on a cluster environment. So basically, only one of the instance should wake up on cron time and sleep. Regards, DJ -- View this message in context: http://camel.465427.n5

Re: Get the exception org.apache.camel.RuntimeCamelException: java.lang.RuntimeException: Protocol mismatch for port 443: engine's protocol is http, the url protocol is https

2013-07-16 Thread cannykanna
Thank you mueller, Your link was very helpful. My problem got resolved. Thanks Kannaiah -- View this message in context: http://camel.465427.n5.nabble.com/Get-the-exception-org-apache-camel-RuntimeCamelException-java-lang-RuntimeException-Protocol-mismatcs-tp5735568p5735710.html Sent from the

Re: Incoming message from a JMS queue need to be processed in parallel but keep the ordering of messages

2013-07-16 Thread gquintana
Seda breaks transaction propagation since different threads are used. But you can replace seda by JMS from("jms:queue:abc") .choice() .when(simple(body.msg.type).isEqualTo("a")) .to("jms:queue:only_a") .when(simple(body.msg.type).isEqu

How to recover corrupted HawtDB files

2013-07-16 Thread Stefan Burkard
Hi Camel users I have a component with 2 persistent aggregators. One receives all messages, one only a part of them. After a lot of test runs without problems I had yesterday a serious problem with the aggregator persistence (hawtdb). I don't know yet what causes the problems, but however, proble

Re: Camel resources URI into OSGi environment

2013-07-16 Thread Andreas Gies
Hi I have used that instruction in the past. By now I find it easier to configure the bundle plugin including a file "osgi.bnd" which lives in the bundle root directory alongside the pom file. The bundle-plugin would be configured as: org.apache.felix maven-bundle-plugin 2.3.7 true

Re: Camel resources URI into OSGi environment

2013-07-16 Thread Andreas Gies
Depending on how you start your OSGi container, you can always add the configuration for remote debugging to your launcher script. For my own development I have written a small wrapper around Pax Exam that uses a container.properties file to set the JVM's runtime paramaters (incl. debugging). For i

Re: Camel resources URI into OSGi environment

2013-07-16 Thread Cristiano Costantini
Thank you Andreas for the hints on how to layout the packages. (I'm just studying how to make it work and not yet started to refine the code style, I will surely take care of your recommendation.) Could you confirm right way to export a resource in OSGi is to use the instruction? Thank you, Cr

Re: Camel resources URI into OSGi environment

2013-07-16 Thread Andreas Gies
Elaborating on Claus' answer. The XSLT processor tries to resolve the XSLT "test/test.xsl". In OSGI words, it has to resolve a package "test" which contains the resource test.xsl. Though exporting the package "test" would probably work, I would strongly recommend to have better qualified packag

Re: Camel resources URI into OSGi environment

2013-07-16 Thread Cristiano Costantini
Hi Claus and thank you, the XSL file is on the "src/main/resources/test" folder, and in the same folder there is the velocity template. I've tried to add test to maven bundle plugin but nothing changed. Is this the correct way to export it? also it's weird the velocity template on the same folde

Re: Camel resources URI into OSGi environment

2013-07-16 Thread Claus Ibsen
If the xsl file is in the classpath of your own bundle, then you need to export this package. Looks like you put it in a test package. On Tue, Jul 16, 2013 at 9:27 AM, Cristiano Costantini wrote: > I must update my previous question: > velocity in facts works fine, it is just xslt which causing i

Re: Camel resources URI into OSGi environment

2013-07-16 Thread Cristiano Costantini
I must update my previous question: velocity in facts works fine, it is just xslt which causing issues! My test route is in fact: Foo the velocity: endpoint works, it is the xslt: which fail... I'm able to run it if I use the full path for just the XSL file: Foo Anyone has any s