Re: nested catch-blocks in doCatch and doFinally

2014-06-17 Thread james555
additional Information: camel version is 2.13.0 -- View this message in context: http://camel.465427.n5.nabble.com/nested-catch-blocks-in-doCatch-and-doFinally-tp5752429p5752481.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to use a public endpoint outside of camecontext?

2014-06-17 Thread simafengyun
Hi Willem, I changed accordingly, it still doesn't work. In this case it has a special camel context which is created by akka, not managed by spring. Do you have any other idea? -- View this message in context: http://camel.465427.n5.nabble.com/How-to-use-a-public-endpoint-outside-of-cameconte

RE: JPA entityType always Null

2014-06-17 Thread Babak Vahdat
I’m not sure if you’re running into a bug of the Eclipselink 2.0 or something as it’s really an old version from December 2009. Regarding the Locationhistory prefix, I guess the Locationhistory name prefix is given by yourself, correct? NamedQuery(name = "Locationhistory.findUnprocessed", quer

Re: Best suitable architecture using Camel

2014-06-17 Thread techbird
Hi Christian - Your guidance in the matter, is very valuable. I'm also about to start work on a large integration project using jaxrs and have been thinking about the same questions. i.e. separation of concerns, SRP. Could I be so kind and ask - have you written more on the subject? Do yo

Re: IncompatibleClassChangeError

2014-06-17 Thread Willem Jiang
Can you recompile your FMSOutboundRoutesTest with Camel 2.13.x? There is the explanation[1] in the stack overflow. [1]http://stackoverflow.com/questions/1980452/what-causes-java-lang-incompatibleclasschangeerror -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.

Re: IncompatibleClassChangeError

2014-06-17 Thread GalinKinlin
I had this error just this morning. Basically, it means you are using an old version of a jar to build some part of your functionality, and a new jar to run it. I was using Spring 3.1.1.RELEASE within my base service, but Camel was using Spring 3.2.8.RELEASE. This is most likely your issue. Check

RE: JPA entityType always Null

2014-06-17 Thread robbob
Hi Babak, I am using Eclipselink 2.0 and running inside of a web application on glassfish. I tried remove the Locationhistory prefix and the query does not run at all, whereas when it runs with the prefix, it executes over and over again. Thanks, -Rob From: Babak Vahdat [via Camel] [mailto:

Re: Why do I get so many "external redeliveries" when using Camel with JMS topics?

2014-06-17 Thread Minh Tran
Is your non-camel subscriber running in the same JVM and using the same connection factory with the same client id? On 18/06/2014, at 1:59 AM, Jeff Bischoff wrote: > Not using a queue, just an AMQ topic. Was working fine before I introduced > Camel, so I think I must be misconfiguring something

Re: Why do I get so many "external redeliveries" when using Camel with JMS topics?

2014-06-17 Thread kraythe .
ActiveMQ connection factory is probably transacted so when the route consumes it doesn't ack the message permanently so it isn't consumed correctly. *Robert Simmons Jr. MSc. - Lead Java Architect @ EA* *Author of: Maintainable Java (Kindle

Re: Camel Filter Bean when return value is false

2014-06-17 Thread ychawla
I can do this:

IncompatibleClassChangeError

2014-06-17 Thread rrajen2
Hi Earlier we were using CamelSpringTestSupport based Junit test cases to test the Camel route based on Camel 2.11 and everything worked fine. Recently we upgraded Camel to 2.13 and we started getting the below error. Could you please advice? java.lang.IncompatibleClassChangeError at org.apache.c

Camel Filter Bean when return value is false

2014-06-17 Thread ychawla
Hello All, I have a bean that will return a boolean of true or false. When the value is false, I want to go in a camel filter. Filter looks for 'true', like below: However, when t

Re: Bug in org.apache.camel.util.FileUtil.renameFile(...) introduced in 2.13.0.

2014-06-17 Thread David R. Hoffman
Thanks for the speedy response. In the meantime I should be able to work around this by setting renameUsingCopy=true in my route. Correct me if I am wrong. -- View this message in context: http://camel.465427.n5.nabble.com/Bug-in-org-apache-camel-util-FileUtil-renameFile-introduced-in-2-13-0-

Re: Bug in org.apache.camel.util.FileUtil.renameFile(...) introduced in 2.13.0.

2014-06-17 Thread Claus Ibsen
Hi Thanks for the detailed report. I have logged a ticket and commited a fix https://issues.apache.org/jira/browse/CAMEL-7518 On Tue, Jun 17, 2014 at 8:29 PM, David R. Hoffman wrote: > For some time the method renameFile() in the class > org.apache.camel.util.FileUtil has supported the flag > co

Re: Request for Contribution: Camel-Extra ASF 2.0 Compliant Components

2014-06-17 Thread Christoph Emmersberger
Thanks for the invitation! My original question was intended to get some feedback about the transfer of existing Camel-Extra components [1] since I could not find any direct license dependency to a non ASF 2.0 compliant version. Camel-Extra is an affiliated project of ASF camel, hosting several

Bug in org.apache.camel.util.FileUtil.renameFile(...) introduced in 2.13.0.

2014-06-17 Thread David R. Hoffman
For some time the method renameFile() in the class org.apache.camel.util.FileUtil has supported the flag copyAndDeleteOnRenameFail. When this flag is set and the java.io.File.renameTo() method fails, the FileUtil.renameFile() attempts to rename the file using copy and delete. Up to version 2.12.3

Re: How to send the response back to the caller when exposing cxf webservice using camel

2014-06-17 Thread ravishankarhassain
Also, I have another query . If you notice the route dataFormat=PAYLOAD"/> I am using dataFormat as PAYLOAD. But If I change the dataFormat=POJO surprisingly the CXF Webservice is not getting exposed by camel. When I see the url http://localhost:8181/cxf its says No services have been found

Re: Disable auto redirect

2014-06-17 Thread Claus Ibsen
Hi The http client library has some options to turn on|off follow redirects. Though I am not sure what it does by default. On Tue, Jun 17, 2014 at 6:37 PM, koritoss wrote: > Thanks for the reply. > > I doubt the onException code is executed when 300~399 response code is > returned since I do not

How to send the response back to the caller when exposing cxf webservice using camel

2014-06-17 Thread ravishankarhassain
Hi All, I am trying to expose a sample CXF SOAP based webservice using camel cxfbean component. I am using JBoss Fuse for deploying camel route as bundle. I am folllowing the bottom up approach. I created the WSDL file first then I use the CXF code gen maven plugin to generate the java cla

Re: Disable auto redirect

2014-06-17 Thread koritoss
Thanks for the reply. I doubt the onException code is executed when 300~399 response code is returned since I do not see the log message below. .onException(HttpOperationFailedException.class) .process(new Processor() { public void process(Exchange exchange)

Re: Why do I get so many "external redeliveries" when using Camel with JMS topics?

2014-06-17 Thread Jeff Bischoff
Not using a queue, just an AMQ topic. Was working fine before I introduced Camel, so I think I must be misconfiguring something in Camel. If I do everything works, but if I do , then my non-Camel subscriber never gets the message. It's almost as if my Camel consumer is not actually creating a sub

Re: Why do I get so many "external redeliveries" when using Camel with JMS topics?

2014-06-17 Thread kraythe .
A JMS topic will send a copy of each message to every topic. If not then the system violates basic JMS spec. If the system is a mainstream system like ActiveMQ, then that is not your problem. If you are trying to use a queue as a topic it doesn't work that way. A queue is like throwing candy into

Camel Groovy Script

2014-06-17 Thread biswajits
I am new to camel. I am trying to parse a xml in "routeContext" using groovy. here is my xml IDV i am try to get the "src-dn" from xml and split it to get the "o=" i am trying the following util = new RouteUtil();

Re: Why do I get so many "external redeliveries" when using Camel with JMS topics?

2014-06-17 Thread Jeff Bischoff
Robert, thanks so much for replying. > Without that ack, the external system thinks it is not consumed and in >good faith tries to redeliver. Okay, that seems like a good explanation for why I am getting external redeliveries! I guess the root of my problem is that it seems like my Camel consume

Re: Unit testing from jms endpoint

2014-06-17 Thread kraythe .
Two possibilities. 1) Use an embedded JMS server and a direct: route to feed the embedded server. 2) Use adviceWith() on the route and the replaceFrom(). The second is the less desirable because you will have a heck of a time simulating all of the headers that the JMS system sets. It can be done b

Re: Request for Contribution: Camel-Extra ASF 2.0 Compliant Components

2014-06-17 Thread kraythe .
Contributions are welcome. You know the technologies and writing a component isn't that hard. ;) *Robert Simmons Jr. MSc. - Lead Java Architect @ EA* *Author of: Maintainable Java (Kindle )(iTunes

Re: Disable auto redirect

2014-06-17 Thread kraythe .
Looking at the route the exception will be caught but you haven't marked it as handled so after it runs your onException call, the exception will be propagated back to the caller, which is a timer component. Im not sure what the timer component will do with an exception. Id have to check the docume

Re: Why do I get so many "external redeliveries" when using Camel with JMS topics?

2014-06-17 Thread kraythe .
Good suggestions but you will need to check the JMS server config if you are getting external redeliveries. Those happen when an external system to the camel route performs a redelivery. As for your original route, there must always be a place for an exchange to go or it will stop routing. In the

nested catch-blocks in doCatch and doFinally

2014-06-17 Thread james555
Hello, I need to use nested catch-blocks in my project like the following: from("direct:start") .doTry() .setBody(simple("doTry")) .to("stream:out") .doCatch(Exception.class) .setBody(simple

Re: Simple message header.XXX and exchange property.XXX the same?

2014-06-17 Thread Claus Ibsen
On Tue, Jun 17, 2014 at 12:39 PM, moerty wrote: > Hi, > I have probably found a bug in Simple language evaluator. First let's have a > Camel message and with a new exchange property called KEY with some random > value such as 12345. Then in my Camel spring route I have this kind of > expression in

Re: How to consume HL7 with file/ftp component and skip startByte

2014-06-17 Thread Claus Ibsen
Hi There is a hl7 data format http://camel.apache.org/hl7-dataformat.html On Tue, Jun 17, 2014 at 1:14 PM, dagaz wrote: > We have to consume HL7v2 files from filesystem or ftp server. Most of those > files have startByte as in MLLP specification. > > How it would be possible to consume files and

Simple message header.XXX and exchange property.XXX the same?

2014-06-17 Thread moerty
Hi, I have probably found a bug in Simple language evaluator. First let's have a Camel message and with a new exchange property called KEY with some random value such as 12345. Then in my Camel spring route I have this kind of expression inside etc. ${property.KEY} == 12345 and this kind of a ex

How to consume HL7 with file/ftp component and skip startByte

2014-06-17 Thread dagaz
We have to consume HL7v2 files from filesystem or ftp server. Most of those files have startByte as in MLLP specification. How it would be possible to consume files and automatically skip the leading/tailing bytes from the protocol? Otherwise parser is unable to parse the the file. I saw a HL7co

Getting mail content as an attachment

2014-06-17 Thread neetu sharma
I m having this route for sending Email Alerts whenever any error occurs in my routes.. BUT i am getting email content as an attachment not as a body of Email.. Please suggest why i am getting this attachment ??? .routeId("WellmarkSGEmailToProductionSupport") .setBody(simp

Problem with adviceWith on 2.13.x

2014-06-17 Thread Preben.Asmussen
Hi There seems to be something broken when using AdviceWithRouteBuilder when you have a transactional route and/or have a global onException handler. I have attached a test case that illustrates the problem When running a test I get an exception java.lang.IllegalArgumentException: There are no

Re: split with bean: multithreading problem

2014-06-17 Thread cgiera
I've a workaround for this issue: I've introduced a new method which creates a new instance of the bean: However, I still think the split with bean(Ref) behavior is wrong. Should I create a ticket for this? kind regards, Christoph -- View this message in context: http://camel.465427.n5.nabb

Re: Unit testing from jms endpoint

2014-06-17 Thread mikaelfj
Hi Claus, Ok - I can see that I might be able to use inceptors to simulate the error. However, they won't let me intercept the route so that the from(queue) - will fail when polling it - right? I will have to send a message to the endpoint in order to trigger the interceptor, which will then al

Re: wiretap in otherwise does not work

2014-06-17 Thread Hilderich
Hello Claus, Thank you for your help. I have incorporated ".endChoice()" together with ".newExchangeBody(...)" and now it is working. In my case ".newExchangeBody(...)" was the crucial thing. Kind Regards Hilderich. -- View this message in context: http://camel.465427.n5.nabble.com/wiretap-in

Re: wiretap in otherwise does not work

2014-06-17 Thread Claus Ibsen
Hi Do like this from("direct:start") .choice() .when(property("falseproperty").isEqualTo(true)) .to("direct:falseproperty") .otherwise() .wireTap("direct:wir

Re: Camel configuration to pick up file from Shared location and remote file location

2014-06-17 Thread Pontus Ullgren
Hello, I have in the past successfully used the file component to access a remote windows share. However when doing so the share will be accessed by the user that the camel process is running as. So that user needs permission to read and write on the share. Also it only works when running the came

Re: wiretap in otherwise does not work

2014-06-17 Thread Hilderich
Hello All, In my camel route there is also a wireTab inside the otherwise section of choice and I got the same exception as mentioned above. Is there a solution available for that issue? Kind Regards Hilderich -- View this message in context: http://camel.465427.n5.nabble.com/wiretap-in-other

org.apache.cxf.cxf-api-Executor queue is full

2014-06-17 Thread vs_mahesh
Hi all, What is the probable reason for the below warning * 15:15:36,883 | WARN | 1962481300-86990 | OneWayProcessorInterceptor | 170 - org.apache.cxf.cxf-api - 2.6.0.fuse-71-047 | Executor queue is full, run the oneway invocation task in caller thread. Users can specify a larger executor

Request for Contribution: Camel-Extra ASF 2.0 Compliant Components

2014-06-17 Thread Christoph Emmersberger
Hi, I’ve done some checking regarding licenses of Camel-Extra components and figured, that we are currently not using any direct dependencies of any non ASF compliant licenses within the following components: camel-couchbase Couchbase itself remains under a proprietary and enterprise license, th