RE: how do I check conditions in XML DSL

2014-04-23 Thread Ravindra.Godbole
Does your file has only one line with csv seperated values ? Do you want whole file to be transferred to the other directory based on logic ? What if two conditions are satisfied on one line ? value1=A and value2=B . Here is the example you can start with ... you can use more features of sim

Re: Failing to load converters

2014-04-23 Thread Willem Jiang
Hi, Can you tell us more about when did you get this kind of issue? What’s your camel route look like? How did deploy the camel route? Did you run it as a stand alone Java Application or deploy it into  some other container? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http

Failing to load converters

2014-04-23 Thread Preethi
Hi, We have a camel routes converts a JSONObject (jettison JSON) to String using the method convertBodyTo(String.class). However we see that there is an exception which comes and just fails to continue with the route. Following is the exception Caused by: org.apache.camel.NoTypeConversionAvailab

Re: Basic direct-vm scenario produces error

2014-04-23 Thread John Dubchak
Thanks, Raul, it was a naming error. On 4/21/14, 5:18 PM, Raul Kripalani wrote: Check the endpoint URIs on the producer and consumer side. There seems to be a mismatch - perhaps it's a copy paste error? On 22 Apr 2014 00:50, "John Dubchak" wrote: Hi, I am trying to route a JMS message using

Using consumer.bridgeErrorHandler won't allow onException() route to execute completely.

2014-04-23 Thread ninadmnaik
Hello, We are using "consumer.bridgeErrorHandler=true" in our route, so that if there's an exception during picking up of files, the Camel Error Handler can deal with it. It appears from the documentation and code snippet at: http://camel.apache.org/file2.html (Using consumer.bridgeErrorHandler

Re: [Camel-Cxf] Camel Exchange not returned when SocketTimeoutException happens

2014-04-23 Thread Aida
Thanks Willem, I was able to upgrade to 2.12.X branch and I still have the same problem (when a SocketTimeoutException happens, the routing of the message stops as it would have died). I'm going to upgrade to 2.13.0 now to check it again. I have been testing more and I have found out that if I

Re: visualization

2014-04-23 Thread Claus Ibsen
On Wed, Apr 23, 2014 at 1:52 PM, ayilliath wrote: > Is there an alternative to camel:dot that could render the routes in a > diagram and generate docs? > Yeah the hawtio project does that to visualize Camel routes at runtime. http://hawt.io/ And Fuse IDE as a java editor can visualize XML routes

visualization

2014-04-23 Thread ayilliath
Is there an alternative to camel:dot that could render the routes in a diagram and generate docs? Thanks Rakesh -- View this message in context: http://camel.465427.n5.nabble.com/visualization-tp5750486.html Sent from the Camel - Users mailing list archive at Nabble.com.

how do I check conditions in XML DSL

2014-04-23 Thread AINDRILA ACHARYA
I have a CSV file which contain following data: value1=A,value1=B My requirement is that : if value1=A then go to fileA if value1=B then go to fileB I want to do this using XML DSL. I am attaching here with my code snippet,by which I can not check the conditions by using xpath. How do I writ

Re: ApplicationContextRegistry and JndiRegistry

2014-04-23 Thread Jacinto, Alex (GE Energy Management)
Thanks Luke, I'll try this solution. On 4/23/14, 4:38 AM, "Łukasz Dywicki" wrote: >Temporary workaround for you would be usage of spring-jee namespace. With >code shown below you just set ref="testJNDI" and you don't need any extra >Java code. > > jndi-name="app/TestJNDI" > expected-type="co

Re: ApplicationContextRegistry and JndiRegistry

2014-04-23 Thread Jacinto, Alex (GE Energy Management)
Hi Claus, thanks for the response. I was not trying to lookup spring stuff through jndi, I was trying to have access both worlds - spring beans and my container beans (jndi). I might be mixing both worlds but I really just want the spring DSL plus the camel routing. To further explain, what our

Re: ApplicationContextRegistry and JndiRegistry

2014-04-23 Thread Jacinto, Alex (GE Energy Management)
Thanks for the suggestion Willem, I’ll look at the link. With this setup, I would have one context that uses the JNDI and another context that uses the spring and uses the context that has the jndi. I’ll give it a try, thank you. On 4/22/14, 10:32 PM, "Willem Jiang" wrote: >Current camel doesn

Need to write correct Spring XML DSL

2014-04-23 Thread j_pramanik_ind
Hi All, I am new to Apache Camel. What I need to know is how to write SPRING XML DSL to accomplish particular task. Here is small description of my task below - I need to read a supplied file containing delimited line of text and process the file by different processor previously defined. This pr

Re: cxf how to add wsa addressing with cxf://someAddress[?options] uri format?

2014-04-23 Thread cgiera
I forgot to mention that the wsa addressing headers only cause problems when the attribute mustUnderstand=1 is set. -- View this message in context: http://camel.465427.n5.nabble.com/cxf-how-to-add-wsa-addressing-with-cxf-someAddress-options-uri-format-tp5750440p5750484.html Sent from the Camel

Re: Logging in servlet example

2014-04-23 Thread Mark Lawson
Got it to work by defining the logger as a Bean using http://stackoverflow.com/a/13160573/2625368 and in my route -- View this message in context: http://camel.465427.n5.nabble.com/Logging-in-servlet-example-tp5750476p5750483.html Sent from the Camel - Users mailing list archive at

camel file moving after process to default .camel or .done,

2014-04-23 Thread ramana
when i'm not use noop=true, the file moving default folders .camel but my execution going continusely also delete=true geeting same problem pls help me... *FileProcessors.java* public class FileProcessors implements Proce

Re: Logging in servlet example

2014-04-23 Thread Grzegorz Grzybek
Hello Mark Camel uses SLF4J as logging framework and you can use any compatible logging implementation (log4j, logback, ...). For one stop shop solution for Tomcat check my project: https://github.com/grgrzybek/tomcat-slf4j-logback With correct ZIP archive available here: https://sourceforge.net/

How to make an oauth 1.0 request the Camel way ?

2014-04-23 Thread Shing Hing Man
Hi,  I already have an access token and shared secret.   To make an  oauth request, I could manually set all the appropriate http headers. I am wondering if it could be done more elegantly  using a Camel component. Thanks in advance for any assistance ! Shing

Re: Logging in servlet example

2014-04-23 Thread Claus Ibsen
On Wed, Apr 23, 2014 at 10:49 AM, Mark Lawson wrote: > Hi, > I'm using the servlet example from camel 2.12 with Tomcat 7. It works fine, > but I can't get logging to work. Neither or uri="log:something"/> turn up in catalina.out or the log file. > I assume it's something about log4j but it's pro

Logging in servlet example

2014-04-23 Thread Mark Lawson
Hi, I'm using the servlet example from camel 2.12 with Tomcat 7. It works fine, but I can't get logging to work. Neither or turn up in catalina.out or the log file. I assume it's something about log4j but it's proving hard to find. Any ideas? -- View this message in context: http://camel.4654

Re: Split XML with xmlTokenizer and add root element?

2014-04-23 Thread Aki Yoshida
as it seems the corresponding source files have not been linked to the jira ticket, you can find examples/test cases at: https://git-wip-us.apache.org/repos/asf?p=camel.git;a=tree;f=camel-core/src/test/java/org/apache/camel/language/tokenizer;h=72c5debe203cc31f7cd0a7e369c162b721c7308d;hb=01d58752

Re: ApplicationContextRegistry and JndiRegistry

2014-04-23 Thread Łukasz Dywicki
Temporary workaround for you would be usage of spring-jee namespace. With code shown below you just set ref="testJNDI" and you don't need any extra Java code. Kind regards, Łukasz Dywicki -- l...@code-house.org Twitter: ldywicki Blog: http://dywicki.pl Code-House - http://code-house.org Wiadomo

Re: Split XML with xmlTokenizer and add root element?

2014-04-23 Thread Aki Yoshida
hi, I just filed CAMEL-7388 and committed the change. (only in master at the moment) This enclosing/wrapping mode gets enabled with the inheritNamespaceToken property is set to "*". One might say, I am misusing the inheritNamespaceToken property to provide this extra option. But this actually fit

Re: CouchDB Attachment

2014-04-23 Thread Claus Ibsen
On Sat, Apr 12, 2014 at 10:47 AM, gutsal.arsen wrote: > From what I see they does not support saving attachments. They consider body > is JSON string. > I think camel-couchdb component should be patched and if in.body of type of > GenericFile or InputStream is recognized, attachment should be save

Re: Camel transaction handler forces reconnecting to ActiveMQ

2014-04-23 Thread Claus Ibsen
Hi See this page about using connection pooling http://camel.apache.org/activemq On Tue, Apr 15, 2014 at 10:25 PM, nqbeel wrote: > Also I did see that when I remove failover from the Broker URL it seems to be > working fine. > > Currently its set to > broker.url=failover:(ssl://server:61617)?max

Re: Split XML with xmlTokenizer and add root element?

2014-04-23 Thread Claus Ibsen
On Fri, Apr 18, 2014 at 9:11 AM, cgiera wrote: > Hi all, > > should we create a camel jira issue for this? > Yeah fell free to log a JIRA ticket. And as always contributions is welcome http://camel.apache.org/contributing > kind regards, > Christoph > > > > -- > View this message in context: >

Re: ApplicationContextRegistry and JndiRegistry

2014-04-23 Thread Claus Ibsen
Hi Camel's registry is a facade for an actual registry such as - jndi - spring's app context - osgi service registry So the spring stuff is only registered in spring's own app context (eg that is how spring works). So you cannot use jndi to lookup stuff that are in spring's app context. But you

Re: Custom Properties Placeholder Implementations?

2014-04-23 Thread Claus Ibsen
Hi Yeah for spring xml I would look into either using the spring's bridge property placeholder, and then implement your database lookup as if it was a pure spring problem, and how to integrate that with spring's property placeholder magic. An alternative is the Camel way and implement a custom or

Re: Aggregate Error

2014-04-23 Thread Jaishankar
sorucecode.txt I have attached the source code. Please reply me. The error message "Stacktrace

Re: HA of Camel

2014-04-23 Thread Bilgin Ibryam
You can also do some clustering at Camel level http://www.ofbizian.com/2014/01/masterslave-failover-for-camel-routes.html Regards, On 23 April 2014 07:58, kraythe . wrote: > This isn't so much of a camel question but an ActiveMQ and platform > question. Camel doesn't implement things like clu

Re: Out of Memory For huge Json Response

2014-04-23 Thread kraythe .
Holy moses! A 1 gig JSON doc? Isn't that a criminal offense somewhere? Seriously though, you are hitting a JVM issue more than a camel one. I would see if I could brew up something to shatter the document and have it streamed in and read it piecemeal. You need something like SAX but for JSON. My t