Re: Dynamic datasource with Camel 2.15.x

2015-10-02 Thread fxthomas
hello, You could try with SimpleRegistry. It worked fine for me ,though never tried with PropertyPlaceholderDelegateRegistry. SimpleRegistry reg = new SimpleRegistry(); I load a lot of beans during camel start time using camel context Object camelContext = new

Re: custom Registry in CamelTestSupport

2015-10-02 Thread Joakim Bjørnstad
Hello, To do this, you need to override creation of the CamelContext. Then you can test with whatever Registry implementation that you want. public class CustomRegistryTest extends CamelTestSupport { @Test public void shouldTest() throws Exception { } @Override protected

Dynamic datasource with Camel 2.15.x

2015-10-02 Thread burner
Hello Together, i want to create dynamic datasources on runtime. I found some examples to do this. But this code: PropertyPlaceholderDelegateRegistry registry = (PropertyPlaceholderDelegateRegistry) getContext().getRegistry(); JndiRegistry jndiRegistry = (JndiRegistry ) registry.getRegistry();

The ExchangesInflight number is large number

2015-10-02 Thread yzhang
Hi, I'm quite new to the camel and trying to support an application in the company. Unfortunately, there are some issues with the application I notice the org.apache.camel -> processors -> "something-here" -> "threads1" -> Attributes tab -> ExchangesInflight: 895 This lasts for quite a while

Re: Dynamic datasource with Camel 2.15.x

2015-10-02 Thread Joakim Bjørnstad
Hello, First of all, it seems you use Spring with Camel. The PropertyPlaceholderDelegateRegistry delegates to the Spring ApplicationContextRegistry and not any JndiRegistry. Using this, I don't think you can go this route, since the ApplicationContextRegistry only allows lookup. And it does this

Unstable test with camel-test-blueprint

2015-10-02 Thread Arnaud Deprez
Hi folks, I'm currently testing routes with camel-test-blueprint 2.15.2 and from time to time my tests fails (it's like 1 faillure for 1 passed). When it occurs, I got the following message : 16:19:10.556 [Blueprint Extender: 1] INFO o.a.a.b.c.BlueprintContainerImpl - Bundle

User stories Wiki entry

2015-10-02 Thread bprager
I wrote a Camel Registry plug-in for the Consul service registry. It is available on GitHub . If there is any interest I would appreciate you testing it. I would also use the opportunity to list it on the Wiki page

Re: curl

2015-10-02 Thread Suganya
Hi Asaf, Claus, thanks for your replies. did not work and i tried few other escape stuffs as well but none seem to work. The only way that i was able to pass the json is by using a temporary file. --silent --sslv3 --verbose --cacert {{cacertFile}}

Re: WMQ Reply-to queue

2015-10-02 Thread Greg Autric
Hi Have you ever try header message ? you can include some information mapped from camel internal header to component protocol header more information with : http://camel.apache.org/how-to-avoid-sending-some-or-all-message-headers.html

Re: User stories Wiki entry

2015-10-02 Thread Claus Ibsen
Hi I have added a link to the camel-consult project. Thanks for letting us know about this project The link is online now http://camel.apache.org/user-stories.html On Fri, Oct 2, 2015 at 1:52 PM, bprager wrote: > I wrote a Camel Registry plug-in for the Consul service

Re: User stories Wiki entry

2015-10-02 Thread Greg Autric
Hi you have to sign the Apache Contributor License Agreement before and send a email here after and we will grant you R/W wiki access all informations are available here : http://camel.apache.org/how-do-i-edit-the-website.html thx for your contribution, Greg AUTRIC

How to retain exchange headers through RoutingSlip

2015-10-02 Thread David Hoffer
I'm using a RoutingSlip to route files but all custom headers set on the Exchange are discarded. I assume that's because Camel assumes custom headers are not useful for file messages but I need a way to pass source information from the RoutingSlip to the file Processors. How can I do this? Is

Re: User stories Wiki entry

2015-10-02 Thread bprager
Thank you guys! -- View this message in context: http://camel.465427.n5.nabble.com/User-stories-Wiki-entry-tp5772179p5772193.html Sent from the Camel - Users mailing list archive at Nabble.com.

Apache Camel bean parameter binding issue with Spring DSL

2015-10-02 Thread wheli
I am running into a strange issue with Apache Camel and Spring DSL. Here is an excerpt of my Spring defined route: Everything works fine up until the last line that I posted. The extractDocumentRootOid(Exchange exchange) java method is executed and

Re: curl

2015-10-02 Thread Suganya
I tried below, testingsimple> but getting the below error stating caught: org.apache.camel.language.bean.RuntimeBeanExpressionException: Failed to invoke method: .stdout on null due to: org.apache.camel.language.bean.RuntimeBeanExpressionException: Failed to invoke method: stdout on null due

Re: Cannot write null body to file - using ftp component

2015-10-02 Thread dfgcamel
Thanks for the response Claus. I've tried the allowNullBody option but it still doesn't work. I'm wondering if it could be that in my scenario, I branch and use the .to("file.. instead a .from("file... I say this because I had this partially working before without the branching and I used

Re: Apache Camel bean parameter binding issue with Spring DSL

2015-10-02 Thread Claus Ibsen
Can you should the method signature for those methods. Also if they are void or return a value. And what version of Camel do you use? On Fri, Oct 2, 2015 at 10:18 PM, wheli wrote: > I am running into a strange issue with Apache Camel and Spring DSL. Here is > an

Re: Incorrect string replacement order in Camel SNMP?

2015-10-02 Thread Claus Ibsen
Hi Thanks for spotting. You are welcome to log a JIRA and work on a PR or patch. http://camel.apache.org/contributing On Sat, Oct 3, 2015 at 3:06 AM, Dmitry Zolotukhin wrote: > Hi, > > In Camel SNMP, the org.apache.camel.component.snmp.SnmpConverters > class has a static

Incorrect string replacement order in Camel SNMP?

2015-10-02 Thread Dmitry Zolotukhin
Hi, In Camel SNMP, the org.apache.camel.component.snmp.SnmpConverters class has a static “getXmlSafeString” method which escapes unsafe characters by replacing them. However, the order of applying replacements is not correct: private static String getXmlSafeString(String string) {