Re: Help in understanding route behaviour

2013-09-10 Thread abaldoni
The problem was with the from() producer. After enabling all the tracing options as in http://camel.apache.org/tracer.html, I was able to understand what was going on. The actual code for the producer is: from("mina2:udp://:514") Somehow, with both mina and mina2, the source message is "echo

Re: camel-redis db selection

2013-09-10 Thread Tommaso
Thanks I thought about it later reading better the documentation. --Tommaso -- View this message in context: http://camel.465427.n5.nabble.com/camel-redis-db-selection-tp5738926p5738993.html Sent from the Camel - Users mailing list archive at Nabble.com.

camel-redis strings serialization

2013-09-10 Thread Tommaso
This is a question on stackoverflow as well: http://stackoverflow.com/questions/18698802/redis-wrong-serialization-using-the-camel-redis I'm playing with camel and redis. I have a very short route: from("timer://foo?period=5s") .to("http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all

JSON (de)serializing with Jackson - version problem

2013-09-10 Thread Martin Stiborský
Hello guys, I have this problem, it was first quite strange, why it's happening, but then I saw the obvious problem... It's about POJO classes and (de)serializing to/from JSON. I have a simple route, where jaxrs takes a JSON request body from POST http request. Then the JSON string is deserialized

Re: JSON (de)serializing with Jackson - version problem

2013-09-10 Thread Martin Stiborský
I see that JacksonDataFormat for Camel 2.11.x is using already the newer Jackson: https://github.com/apache/camel/blob/camel-2.11.x/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/JacksonDataFormat.java So the problem I have is most probably wrong camel-jackson artifact u

Re: JSON (de)serializing with Jackson - version problem

2013-09-10 Thread Martin Stiborský
Aaaand problem is solved. I have quite often monolog here leading to fixing the problem :D This dependency fixed it: org.apache.camel camel-jackson ${camel.version} test Where camel.version is 2.11.0 for my case and thanks to the test scop

org.apache.shiro.session.StoppedSessionException

2013-09-10 Thread jethwani.bi...@gmail.com
I have Java remoting built on top of ActiveMQ and Camel using camel bean invocation. There's a route from direct component to jms on client side which injects the shiro security token (nothing special there) And on the other side I have a route from jms to bean which has policy(shiroSecurityPolicy)

Re: org.apache.shiro.session.StoppedSessionException

2013-09-10 Thread jethwani.bi...@gmail.com
Tried securityManager.sessionManager.globalSessionTimeout=-1 but still facing issues with Session, this time it says it's unknow session. -- View this message in context: http://camel.465427.n5.nabble.com/org-apache-shiro-session-StoppedSessionException-tp5739016p5739018.html Sent from the Cam

Re: camel-redis strings serialization

2013-09-10 Thread Bilgin Ibryam
Hi Tommaso, what you have seems correct. Basically you have to use the same serializer for publishing and reading data. If you are using camel producer/consumer for publishing and reading data, you don't have to specify anything, it will just work. But if you are using a different client for read

Re: Got an error "PropertiesComponent with name properties must be defined in CamelContext to support property placeholders"

2013-09-10 Thread bonnahu
Hi Christian, I didn't define the propertyPlaceholder component in any other place. I added the propertyPlaceholder just to avoid the error. If you want, I can send the project to you to take a look. -- View this message in context: http://camel.465427.n5.nabble.com/Got-an-error-PropertiesComp

Re: camel-redis strings serialization

2013-09-10 Thread Tommaso
Hi bibryam I thought to have done exactly what you suggest. From resources gathered from the net I've found I should use the StringRedisSerializer (instead of the default JdkSerializer), but still the strings saved in redis are "dirty". Should I use another serializer to have plain strings in redi

Re: Got an error "PropertiesComponent with name properties must be defined in CamelContext to support property placeholders"

2013-09-10 Thread Christian Posta
Yah, publish to github or the like. Camel's propertyPlaceholder must be available to use within the camel context. On Tue, Sep 10, 2013 at 6:14 AM, bonnahu wrote: > Hi Christian, I didn't define the propertyPlaceholder component in any > other > place. I added the propertyPlaceholder just to av

Re: camel-redis strings serialization

2013-09-10 Thread Bilgin Ibryam
Tommaso, I had a look at the source code and it seems that the custom serializer you are specifying is set only for consumers and not for producers. So the the serializer you created is not used in your case. You can create a jira ticket for it. In the mean time, what you can do is create a Redis

Re: camel-redis strings serialization

2013-09-10 Thread Tommaso
Thank you! If you have are on Stackoverflow and want to answer the question I will be happy to accept your answer. thanks again. --Tommaso -- View this message in context: http://camel.465427.n5.nabble.com/camel-redis-strings-serialization-tp5738994p5739030.html Sent from the Camel - Users ma

Need Help in a scenario, which is not working as expected: Camel Route based code

2013-09-10 Thread gudiseashok
Hi Greetings everyone, I am new to Apache Camel, but I am really trying hard to learn this. I am a Spring Integration developer from 4 years, and I felt to explore Camel based on recent reviews I read. I have a scenario here where I am facing trouble to proceed further, my requirement is 1) Rea

Re: Problems with Camel and Spring remoting

2013-09-10 Thread Erwin Etchart
I made a little changes and i think that im a little bit closer. 1) I didnt have the camel-http dependency (big mistake) jms:INCOMING.MAIN.QUEUE bean:spring.remote http://camel.apache.org/schema/spring"; autoStartup="true" trace="true">

Re: getting java.io.NotSerializableException when soap request recived in POJO format is routed to active mq

2013-09-10 Thread John D. Ament
Does DTPowerConsumption implement java.io.Serializable? It needs to. On Tue, Sep 10, 2013 at 10:52 AM, vsmahesh wrote: > Hi i am getting the following erro when i try to route to activemq from cxf > endpoint which is getting soap request in POJO format.When i route to queue > i am getting not

Re: Got an error "PropertiesComponent with name properties must be defined in CamelContext to support property placeholders"

2013-09-10 Thread bonnahu
Hi Christian, I understand what you said "Camel's propertyPlaceholder must be available to use within the camel context." But here I was not planning to use a propertyPlaceholder, what I wanted to do is to use the defined VM argument ,prop.env in camel context, like following . So I don't think

Re: Got an error "PropertiesComponent with name properties must be defined in CamelContext to support property placeholders"

2013-09-10 Thread Claus Ibsen
You still need to add it, as its the property placeholder component that understands and resolves the {{ }} stuff. On Tue, Sep 10, 2013 at 5:15 PM, bonnahu wrote: > Hi Christian, I understand what you said > "Camel's propertyPlaceholder must be available to use within the camel > context." > But

getting java.io.NotSerializableException when soap request recived in POJO format is routed to active mq

2013-09-10 Thread vsmahesh
Hi i am getting the following erro when i try to route to activemq from cxf endpoint which is getting soap request in POJO format.When i route to queue i am getting not serializable error.The error is java.lang.RuntimeException: outotec.pi.mes.id59.powerconsumption.DTPowerConsumption at

InheritableThreadLocal

2013-09-10 Thread sylvain.perez
Hi, we need to use legacy code which performs some sort of authentication which rely on InheritableThreadLocal variables (keep security token, user principal and so on). The first step of one of our route is a processor which extract from the input message the user credentials and use legacy code

Re: InheritableThreadLocal

2013-09-10 Thread Claus Ibsen
Hi Yeah as long you do synchronous processing then its the same thread in use. You can force synchronous using synchronous=true. If you store values on the exchange properties then they are kept for the lifetime of the exchange. On Tue, Sep 10, 2013 at 5:22 PM, sylvain.perez wrote: > Hi, > > we

Second router in Pipeline not being reached in repeated interval scheldule

2013-09-10 Thread gudiseashok
I am new to Apache Camel, but I am really trying hard to learn this. I working on below scenario 1) Read from Remote server, to local directory 2) Use above local folder with Apache Lucene to index those files 3) Inform listerner to update this step ***Repeating those above steps for every 30

Re: Second router in Pipeline not being reached in repeated interval scheldule

2013-09-10 Thread gudiseashok
Hi Ibsen, Thanks allot for responding to my problem, but I have tried like that initially doing everything in one route. But problem with that was, if my "remote folder" has 10 fiels then it has to do indexing after completion on all those 10 files, instread that it is reacting on each file downl

Re: camel blueprint - unit tests

2013-09-10 Thread Claus Ibsen
On Mon, Sep 9, 2013 at 5:56 PM, AlanFoster wrote: > @Claus - This is true when deployed to an OSGi container. However, within the > context of camel testing this is not true. When using the camel testing > framework you need to supply all of the camel routes within your > `getBlueprintDescriptor`

Re: Second router in Pipeline not being reached in repeated interval scheldule

2013-09-10 Thread Claus Ibsen
Hi You should not use the timer to trigger this, but let the ftp consumer do that instead. It reacts when there is new files on the ftp server to download. You can configure its scheduling also how frequent to check for new files etc. So something like this will download the files, and call the b

Re: getting java.io.NotSerializableException when soap request recived in POJO format is routed to active mq

2013-09-10 Thread vsmahesh
Hi, Thanks for the reply.I am able to route to queue from cxf endpoint.But when I am forwrding the data from that queue to to jaxws :client I am getting the error.I am following WSDL first approch.The error is given below org.apache.cxf.interceptor.Fault: Could not send Message. at org.apac

Re: File renaming problems under Windows

2013-09-10 Thread Christian Müller
I think we fixed an issue in Camel 2.12.0 which could be related to this. Can you give it a try? Camel 2.12.0 was released one day ago... Best, Christian - Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.apache.

Re: Problems with Camel and Spring remoting

2013-09-10 Thread Christian Müller
I didn't use spring remoting until now (and I think this component isn't use very often)... Any specific reason why do use spring remoting? Are you able to use camel-cxf (if this interface is exposed as JAX-WS or JAX-RS service) or camel-http4 (if this interface is exposed as a "normal" HTTP servi

Re: JAX-WS and JAX-RS Webservice with Camel

2013-09-10 Thread Christian Müller
I recommend to use the camel-cxf component. You can find some tutorials [1], examples [3] and articles [4] how to use this component. [1] http://camel.apache.org/cxf.html [2] http://camel.apache.org/tutorials.html [3] http://camel.apache.org/examples.html [4] http://camel.apache.org/articles.html

Re: Problems with Camel and Spring remoting

2013-09-10 Thread Erwin Etchart
No personal reasons for use spring remoting.. jejeje , just a legacy system. I think that is exposed as a normal http service, and i think that i should consider use another interface as you said. I will try for a few hours more in this way, after that i going to change the strategy to obtain difer

Re: Camel throws StackOverflowException while converting message body

2013-09-10 Thread Christian Müller
It looks like your body is a "java.util.Scanner" and you try to convert this into a "java.util.List" what isn't working: ERROR \--> Previous exception on exchangeId: ID-vsedykh-nb-54170-1377503204942-0-2 org.apache.camel.TypeConversionException: Error during type conversion from type: java.util.Sc

Re: camel-cxf and HTTP BASIC authentication

2013-09-10 Thread Christian Müller
${fromCxfEndpointUri.port} is resolved with the port number this service is using. Regarding your issue: org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.3: '{ http://es0sreao:8181/mes/bw/MEStoBW_CopperRecoveryPercentage_JAAS}.8181' is not a valid value of union type 'ParameterizedInt'. use

Re: Got an error "PropertiesComponent with name properties must be defined in CamelContext to support property placeholders"

2013-09-10 Thread bonnahu
Thanks Claus. So you are saying is that I still need to create a fake properties file, even I don't use it. Do I understand it correctly? -- View this message in context: http://camel.465427.n5.nabble.com/Got-an-error-PropertiesComponent-with-name-properties-must-be-defined-in-CamelContext-to-s

Re: getting java.io.NotSerializableException when soap request recived in POJO format is routed to active mq

2013-09-10 Thread vsmahesh
Hi, I changed to public class DTPowerConsumption implements Serializable.But it is still throwing the same error. public class DTPowerConsumption ,is a class generated automatically from the WSDL.I am stuck with this error. java.lang.RuntimeException: outotec.pi.mes.id59.powerconsumption.DTPower

Re: getting java.io.NotSerializableException when soap request recived in POJO format is routed to active mq

2013-09-10 Thread Claus Ibsen
On the JMS uri set jmsMessageType=Text to use text messages instead of java objects. And install camel-jaxb feature in your ESB. On Tue, Sep 10, 2013 at 6:57 PM, vsmahesh wrote: > Hi, > > I changed to public class DTPowerConsumption implements Serializable.But it > is still throwing the sam

Re: File renaming problems under Windows

2013-09-10 Thread bocamel
Christian, I tested this under Camel 2.12.0 and the issue that I reported did not occur. Thank you very much for fixing it! FYI. This is the first time I tried Camel 2.12.0. Eclipse complained about " The method getTextContent() is undefined for the type Node” (org.w3c.dom.Node) unless I move

Re: Using HTTP and HTTPS proxies with Camel HTTP Component

2013-09-10 Thread Christian Müller
Did you tried setting the proxy host/port as we described here [1]? [1] http://camel.apache.org/http.html Best, Christian - Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.apache.org/foundation/ Apache Member:

Re: Processing Asynchronous Interceptors

2013-09-10 Thread bpinto
Thanks for the reply Claus. That explains the behavior I have been seeing Essentially, I was expecting wrongly of asyncprocessors to kick off a separate thread and continue processing the exchange. Thanks, Brian -- View this message in context: http://camel.465427.n5.nabble.com/Processing-A

Camel-jetty and hawt.io

2013-09-10 Thread Mark
I have some Camel routes that I have running in a standalone java app, and I'd like to embed hawt in the JVM. Is it possible to do since Camel and Hawt will want their own jetty instance running in the JVM? Thanks in advance, Mark

Re: Need Help in a scenario, which is not working as expected: Camel Route based code

2013-09-10 Thread Taariq Levack
Hi You weren't clear about the step it's getting stuck at, enable trace logging to see what it's doing. And to transfer from ftp to the file system you don't need "bean:fileCopier", not sure what it's doing because you didn't include details of it. Perhaps it's getting stuck there or at "bean:luce

Re: camel blueprint - unit tests

2013-09-10 Thread Achim Nierbeck
wow, now that is something I call a rant :D anyhow, you're only telling half the truth ;) yes developing osgi might be cumbersome but to be hones EJB is the same PITA and I really hated working with JBoss and maven when I needed to work with EJBs, the turnaround cycles where awful and to me much b

Re: camel blueprint - unit tests

2013-09-10 Thread Jean-Baptiste Onofré
Agree with Achim, it's something that I plan for Camel (and other projects like ActiveMQ): pax-exam with the Karaf container allows good itests. We use it for Cellar: the itests, we can bootstrap a Karaf container, perform commands, check the result, etc. Regards JB On 09/11/2013 08:34 AM,