Clustered CronScheduledRoutePolicy - how to?

2012-11-28 Thread Denis S
Hi, I have an sftp component which load files from external location. The route starts and stops periodically by cron policy (@Claus Ibsen: thanks for your advise to use it). Now I need to do this in a cluster (several tomcat nodes), but only one of them must perform the real file download, so I

XML security (Signed SOAP message) with apache camel

2012-11-28 Thread atiato
Provisioning Gateway digital signature concept complies with W3C XML Signature Syntax and Processing recommendation [XMLDSIG]. From among open-source Web Service Security implementations Apache XML Security project [XMLSEC] was chosen since it the best way met high demands on PGW request processing

Re: Simple HTTP proxy

2012-11-28 Thread Matt Cheers
Thanks again! I tried that and a few different combinations and no success. When I turned camel trace level on I saw Facebook returning a redirect so I switched to a website that responds to a plain 'curl' command. My complete simple example is below and pretty much straight off camel website.

Re: Websphere JMS Queue Message Consumer

2012-11-28 Thread Christian Müller
java.lang.NoClassDefFoundError: org.springframework.xml.transform.StringSource java.lang.NoClassDefFoundError: quickfix.SessionID java.lang.NoClassDefFoundError: com.sun.syndication.io.FeedException java.lang.NoClassDefFoundError: org.restlet.data.Method java.lang.NoClassDefFoundError: javax.jcr.Va

creating .camelLock extension on file using custom GenericFileProcessStrategy

2012-11-28 Thread Kesireddy, Chandana (ITD)
Hi, I am writing custom GenericFileProcessStrategy class . Iam not able to create .camelLock extension on the file when it processes the file. I want the file to be deleted after it is processed. Please let me know how to create .camelLock extension on the file using using custom GenericFileP

Re: ftp-consumer: recovering a previous established connection

2012-11-28 Thread Claus Ibsen
On Tue, Nov 27, 2012 at 8:57 AM, Hildegard Schedthelm wrote: > Hello All! > > Has someone any ideas how to trigger a reconnect? A new poll probably not > occur. > The ftp consumer is scheduled. There is options to configure how frequent it should poll. By default that's very fast, I think its hal

Re: JMX attribute - Number of failures handled

2012-11-28 Thread Claus Ibsen
On Mon, Nov 26, 2012 at 11:16 PM, gilboy wrote: > Thanks > > Assume an exception happens in my route and i have an error handler which > places the message on a queue. In this instance would the *failures handled* > increase or does it only increment via onException ()..handled(true).. > syntax? >

Re: Camel isnt work anymore

2012-11-28 Thread Claus Ibsen
Hi You need to add camel-spring as dependency to your Maven pom.xml file. On Wed, Nov 28, 2012 at 6:54 PM, siga wrote: > java.lang.ClassNotFoundException: org.apache.camel.spring.Main -- Claus Ibsen - Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com W

Camel isnt work anymore

2012-11-28 Thread siga
Hello Community, i have problems withs my Camel Projects. They didnt work anymore. Mayby someone has a idea whats up this my camel environment. I had no idea whats worng. For exemple i create a standart maven-camel (camel-archetype-java, version 2.10.2) project this m2eclipse and runs with "camel:

Re: want to remove old .camellock files on start up

2012-11-28 Thread Claus Ibsen
On Wed, Nov 28, 2012 at 6:42 PM, Kesireddy, Chandana (ITD) wrote: > Hi, > > I am using camel 2.4, I only have one instance of camel running. > Okay if you upgrade to a newer Camel release then it will auto delete orphaned .camelLock files when it startup. In your current release you would need

RE: want to remove old .camellock files on start up

2012-11-28 Thread Kesireddy, Chandana (ITD)
Hi, I am using camel 2.4, I only have one instance of camel running. Thanks, Chandana -Original Message- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent: Wednesday, November 28, 2012 12:34 PM To: users@camel.apache.org Subject: Re: want to remove old .camellock files on start u

Re: want to remove old .camellock files on start up

2012-11-28 Thread Claus Ibsen
Hi What version of Camel do you use? And do you have a cluster of Camel running, that compete for the "same" files? On Wed, Nov 28, 2012 at 4:37 PM, Kesireddy, Chandana (ITD) wrote: > Hi, > > I wanted to remove old .camellock files on start up . > I am getting : > > WARN | > org.apache.camel

Re: Set body to length of header string in Spring DSL?

2012-11-28 Thread dunnlow
Claus, I understand that is what the exception indicates; However, as you can see from my code above (which is the actual code from the test) that I have declared the header a Map and am setting the value to the string "John." Thus, I'm confused where the hbase class is being referenced at all. T

want to remove old .camellock files on start up

2012-11-28 Thread Kesireddy, Chandana (ITD)
Hi, I wanted to remove old .camellock files on start up . I am getting : WARN | org.apache.camel.component.file.strategy.FileChangedExclusiveReadLockStrategy | Cannot acquire read lock within 6 millis. Will skip the file: messages in the log, as there are old .camellock files on start u

Re: OSGI dependencies with camel

2012-11-28 Thread lleclerc
In the end, we use @Inject to be able to access the ComponentResolver available from the dependency and then resolve the component and add it to the camelContext. @Inject .multiple() Iterable resolvers; Component comp = resolver.resolveComponent(CAMEL_HTTP4, camelContext); camelContext.addCompone

Re: How to get URI Value from exchange

2012-11-28 Thread Claus Ibsen
Hi I am not sure what you want. There is an API on CamelContext to get all the known endpoints. Or if you want to get the endpoint, an Exchange was created from, then there is API on Exchange to get that. On Wed, Nov 28, 2012 at 12:08 PM, Bala wrote: > Hi, > > I need to get the URI value from

Re: Intercepting message for testing not working

2012-11-28 Thread lleclerc
Here is the code http://pastebin.com/kkVVb22x Here is the logs http://pastebin.com/CYPzBB8Q I see the EndPoint is null, but it is on the camel side. Seems that setting isUseAdviceWith to return true, prevent the creation of the endPoint, and then I can't use advice on them, even though the rout

How to get URI Value from exchange

2012-11-28 Thread Bala
Hi, I need to get the URI value from the endpoint that is configured in camel-context file and then append request parameters to it (Not headers). For this, I need to get the URI value in Java and append the request parameters to it. Can you please let me know on how to handle this situation ? Th

RE: Releasing CXF-endpoint port on context shutdown

2012-11-28 Thread Urppa
Hello, Ok, I got an error in the Karaf-log once I try to get the WSDL the second time. So when I deploy my bundle into deploy-folder I can get the WSDL with: http: // localhost:9000/cisif?WSDL But then I remove the bundle, wait a while and then deploy it again and then try to get the WSDL with

Re: [camel-bindy] Handle implied decimal field

2012-11-28 Thread lb
Patch for both implied decimal and format attached to CAMEL-5827 (https://issues.apache.org/jira/browse/CAMEL-5827). Still lot of work to do but as it is my first patch to an Apache project, I would like to know if it goes the right way :-) -- View this message in context: http://camel.46542

Re: Retroactive message routing possible ?

2012-11-28 Thread c031917
Claus Ibsen-2 wrote > Do you have durable subscribers on these topics? They would need to be > that, > so they can receive messages that was sent to the topic while they were > offline. > On router/broker B there is only one route in place. It's the only "consumer", if this is the right term here

RE: Releasing CXF-endpoint port on context shutdown

2012-11-28 Thread Urppa
Ok, I don't think shutting down Jetty is necessary, I don't need to release the port 9000 necessarily when the route is shutdown. However, how do I get 2nd or 3rd activation of the route work properly when Jetty is up already? Now it works so that only the first activation of the route makes my

Re: Retroactive message routing possible ?

2012-11-28 Thread Claus Ibsen
On Mon, Nov 26, 2012 at 5:52 PM, c031917 wrote: > I have two AMQ brokers A and B, duplex & statically connected, like the > supermarket example in AMQ in action, Chapter 10. > > Broker B is embedded in Camel to implement routing by pure configuration. > Broker A runs standalone. > > A Java produce

Re: OSGI dependencies with camel

2012-11-28 Thread Willem jiang
I'm not sure if your IDE container can make sure the camel-core and camel-http4 bundle start before your bundle started. If it can do that, you don't need to add the hard code of camel-http4 in your bundle. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fuseso

Re: Releasing CXF-endpoint port on context shutdown

2012-11-28 Thread Willem jiang
We don't shutdown the Jetty engine when the bundle is stop, as we are using CXF bus to manage the life cycle of the Jetty engine. If you are using Spring or Blueprint, they can take care of the bus shutdown issue. But if you create the CamelContext by yourself, you need to manage the bus which