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
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.
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
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
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
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
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)
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
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
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
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
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
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
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
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
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">
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
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
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
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
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
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
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
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
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`
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
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
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.
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
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
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
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
${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
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
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
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
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
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:
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
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
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
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
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,
43 matches
Mail list logo