Re: oracle.jms.AQjmsException: JMS-110: Property JMSXDeliveryCount not writeable

2016-08-18 Thread Claus Ibsen
Hi Yes its a bug in that Camel release. We have a ticket logged: https://issues.apache.org/jira/browse/CAMEL-10237 You can downgrade to last working Camel version. And then later upgrade to 2.17.4 when its released with the fix. On Fri, Aug 19, 2016 at 7:48 AM, james555 wrote: > > Hello, > > a

Re: Can't sent many sms with smpp. Producer binding problems.

2016-08-18 Thread Adios27
Were you able to resolve the negative response error 0005. If yes what steps did you take. TIA -- View this message in context: http://camel.465427.n5.nabble.com/Can-t-sent-many-sms-with-smpp-Producer-binding-problems-tp5742053p5786615.html Sent from the Camel - Users mailing list archive

oracle.jms.AQjmsException: JMS-110: Property JMSXDeliveryCount not writeable

2016-08-18 Thread james555
Hello, after enqueuing a message to a jms-queue with Camel 2.17.3, Java 1.8 and Oracle Web Logic Server 12.1.3 ... .to(ExchangePattern.InOnly, "jms:xy.xz_queue?jmsMessageType=Text") ... I get an UncategorizedJmsException wrapping: oracle.jms.AQjmsException: JMS-110: Property JMSXDeliveryCou

Invoking a REST client

2016-08-18 Thread Brad Johnson
Most of the switch over from using XML route builders to Java route builders is fairly painless and straightforward and the new CDI is a pleasure to work with. But there are certain aspects that I'm not quite familiar with like how to do the same thing as this in the Java DSL, http://localhost

JAXB: Marshal class containing String containing XML

2016-08-18 Thread David Sharpe
Hello fellow Camel users, (Using Camel 2.15.3) The legacy system and XML schema I'm working with has a frustrating use case where the (@XmlValue) String property of a JAXB annotated class contains XML that should be marshalled as-is without escaping, but what I'm getting is this:

Re: poll enrich and file endpoint

2016-08-18 Thread Alex Soto
Dennis, In your case, I think you are missing the idempotent option in the File URI. Best regards, Alex soto > On Aug 18, 2016, at 10:59 AM, Dennis Bohnstedt Hansen wrote: > > Hi > > I’m seeing the same problem with pollEnrich, using a dynamic endpoint. I > send a my route a filename in

Re: Return contents of a file in a route

2016-08-18 Thread Mark
but then why would .log("${body}") print out the contents of the file? On Thu, Aug 18, 2016 at 3:13 PM, Brad Johnson wrote: > That makes some sense as I believe what you're getting there is the handle > to the GenericFile object and not the contents itself. You probably have to > put a transfor

Re: Return contents of a file in a route

2016-08-18 Thread Mark
That works. Thanks Brad !! On Thu, Aug 18, 2016 at 3:26 PM, Brad Johnson wrote: > .convertBodyTo(String.class) > > I'm not sure if that will trigger the read of the file by itself as I > usually don't process them this way but see if putting that after the > from() causes it to load and then

Re: Return contents of a file in a route

2016-08-18 Thread Brad Johnson
.convertBodyTo(String.class) I'm not sure if that will trigger the read of the file by itself as I usually don't process them this way but see if putting that after the from() causes it to load and then also log it. The logger may be smart enough when it sees the body is a file to load it but I

Re: poll enrich and file endpoint

2016-08-18 Thread Alex Soto
Wow, I didn’t know this was possible. Nice trick. Still the poll consumer seems to be the most intuitive choice if you come from EIP mindset. I never thought of my route as doing a data transformation, but rather a content enrichment. Anyway, I wonder if others will be hit by the same pr

Re: Return contents of a file in a route

2016-08-18 Thread Brad Johnson
That makes some sense as I believe what you're getting there is the handle to the GenericFile object and not the contents itself. You probably have to put a transform/simple to get the contents but I don't recall off the top of my head. On Thu, Aug 18, 2016 at 2:00 PM, Mark wrote: > Actually, it

Re: Return contents of a file in a route

2016-08-18 Thread Mark
Actually, it is working when I use .log("${body}"). It prints out the contents of the file. When I was calling .to("log:FILE") it was not printing the file contents, but I think I was reading the log statement incorrectly. What is strange is that the test app that makes the HTTP GET command only

Re: Return contents of a file in a route

2016-08-18 Thread Brad Johnson
Are you getting any errors? How are you testing it? The reason I ask is are you sure that it is finding the file at that location? Are you doing this as a test stub to deploy for others to use or is this something you want to test during unit tests only? You can use mocks or other mechanism for

Return contents of a file in a route

2016-08-18 Thread Mark
I want to be able to simulate a system that I'm integrating with. I'd like a route to return the contents of a file in a REST DSL route. Is it possible to do this in Camel? This is what I'd like to do: restConfiguration() .component("jetty") .host("localhost") .port(1234) .bindingMo

Re: Need help for routing

2016-08-18 Thread Brad Johnson
Part of the answer here, I suspect, is to use the EIPs for content based router (CBR) or if you later need more sophistication and flexibility use a recipientList. http://camel.apache.org/content-based-router.html http://camel.apache.org/recipient-list.html On Thu, Aug 18, 2016 at 6:50 AM, MD.Ras

Re: poll enrich and file endpoint

2016-08-18 Thread Dennis Bohnstedt Hansen
Hi I’m seeing the same problem with pollEnrich, using a dynamic endpoint. I send a my route a filename in the message-body, and expect the file content as a reply: from("direct:getFileContent") .log("Filename : ${body}") .pollEnrich().simple("file:/temp?readLock=none&noop=true&fi

Re: Camel 2.17.1 and Cassandra 3.7 or 3.x

2016-08-18 Thread habdank
Hi, I had a look at pom. It seems all 2.17.x releases use Cassandra 2.x. I see in the relase 2.18.x upgrade to the Cassandra 3.x (concrete to 3.7). When approximately Camel 2.18.0 will be available? Best regards, Seweryn. -- View this message in context: http://camel.465427.n5.nabble.com/Ca

Re: Camel 2.17.1 and Cassandra 3.7 or 3.x

2016-08-18 Thread habdank
Hi, Thanks a lot for the fast responce! The main problem is that there are quite much breaking changes in Cassandra Java driver between version 2.x and 3.x. The full list is here: https://github.com/datastax/java-driver/tree/3.0/upgrade_guide I will look at POM. Best regards, Seweryn. -- Vi

Need help for routing

2016-08-18 Thread MD.Rashed Mhabub
Hi, I am very new at camel. I study it only for one day. But I need to perform a task immediately. Could you please help me. I will be very thankful to you if I got the solution of the following problem - 1. select scheduled [※1:notice record list]. select * from push_notice_queue where deli

Re: Camel 2.17.1 and Cassandra 3.7 or 3.x

2016-08-18 Thread Claus Ibsen
Hi You can look in parent/pom which versions of JARs are used / tested with. Look like its Cassandra 2.2.2 https://github.com/apache/camel/blob/camel-2.17.1/parent/pom.xml#L86 It does look like those versions are a bit old. We could try to upgrade to 3.x. You are welcome to log a JIRA. And we lo

Camel 2.17.1 and Cassandra 3.7 or 3.x

2016-08-18 Thread habdank
Dears, Does Camel 2.17.1 works with Cassandra 3.7 or whatever 3.x version? When I am trying to connect over camel cassandra component to Cassandra version 3.7 I got: InvalidQueryException: unconfigured table schema_keyspaces It was not the case when I tried to connect to Cassandra 2.1.8 and 2.2.

Re: using camel tracer

2016-08-18 Thread Minh Tran
Hi There’s no need to do declare the bean, just call setTracing(true) on your camel context. > On 18 Aug 2016, at 6:54 PM, mayur_bm wrote: > > Hi, > i want to use class="org.apache.camel.processor.interceptor.Tracer"> with log4J. any > example i can see? > > i have configured bean like belo

Re: Camel SEDA timeout: Update it at runtime

2016-08-18 Thread dcparga
Ranx, the timeouts can change even for the same resource. The main idea behind this approach is to be able to use a Resource in different workflows, so, the available time allowed per operation can change in function of the process that is being performed. I'm setting up the routes using REST DSL

using camel tracer

2016-08-18 Thread mayur_bm
Hi, i want to use with log4J. any example i can see? i have configured bean like below in camelcontext: i have log4j.properties with below values: log4j.rootLogger=INFO, out log4j.logger.org.apache.camel=DEBUG log4j.appender.file=org.apache.log4j.Rolling