AW: How to set a header in custom DataFormat?

2013-09-19 Thread jhm
I tried building my own DF and that works (for me) Jan package org.apache.camel.dataformat; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.InputStream; import java.io.ObjectInputStream; import java.io.Ob

Re: Proper way to initialize Transaction management for Camel in an Application Server

2013-09-19 Thread Claus Ibsen
Hi I have logged ticket to implement the empty methods in JndiRegistry https://issues.apache.org/jira/browse/CAMEL-6769 Just to be sure are you using? http://camel.apache.org/servletlistener-component.html On Wed, Sep 18, 2013 at 5:12 PM, kraythe . wrote: > Greetings, we are running Camel route

Re: ConcurrentModificationException thrown from inside camel splitter

2013-09-19 Thread Joshua Groom
We use camel 2.11.1 running on the oracle 1.7 jvm for linux. -- View this message in context: http://camel.465427.n5.nabble.com/ConcurrentModificationException-thrown-from-inside-camel-splitter-tp5739793p5739814.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Proper way to initialize Transaction management for Camel in an Application Server

2013-09-19 Thread Robert Simmons
Yes I am. Same person btw, just a different email. Sent from my iPad > On Sep 19, 2013, at 4:00 AM, Claus Ibsen wrote: > > Hi > > I have logged ticket to implement the empty methods in JndiRegistry > https://issues.apache.org/jira/browse/CAMEL-6769 > > Just to be sure are you using? > http://

Questions on NotifyBuilder

2013-09-19 Thread berhack
This is great for creating coarse grained expectations on routes, but I am struggling with the documentation. Hoping the experts can help me answer the questions, based on the given example: from(direct:hello).process().to(direct:foo) from(direct:foo).process().to(direct:bar) from(direct:bar).m

Re: Apache Camel-Lucene- I want to use Field.Store.Yes when I use TextField(String,Reader)

2013-09-19 Thread Hilderich
Hello! IMHO your question has nothing to do with camel and is totally a lucene issue. Look at: http://lucene.472066.n3.nabble.com/ Hilderich -- View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-Lucene-I-want-to-use-Field-Store-Yes-when-I-use-TextField-String-Read

Camel Component for Pinging Service

2013-09-19 Thread contactreji
Hi Friends Just wanted to know if we have any camel component for checking the availability of a service before actually invoking it. I have basically a scenario where I need to retry a soap message from the Dead letter Queue and attempt a invocation only if the service is up and running Cheers

Re: Camel Component for Pinging Service

2013-09-19 Thread Hilderich
Hello! Maybe the following approach help. Do the following within a Camel Processor or in a Bean: -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Component-for-Pinging-Service-tp5739818p5739819.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: ConcurrentModificationException thrown from inside camel splitter

2013-09-19 Thread Claus Ibsen
Yeah seems like a bug. Feel free to log a JIRA ticket Do you do anything special in (new WindSplitterPojo() ? eg what do you return? If you can then feel free to post the code, or if not, then the method signature so we know what you takes as input, and what it returns as output. On Thu, Sep 1

Re: Endpoint, Routes and client connection

2013-09-19 Thread Bart
I'm trying to go forward with this. I have a few doubts and questions: 1. Route like: from("hl7Listener").to("lookupService"); is only invoke when actually something is send by client to listener. Am I right? In this way I can slightly change that route to: from("hl7Listener").process(new

Re: Apache Camel-Lucene- I want to use Field.Store.Yes when I use TextField(String,Reader)

2013-09-19 Thread gudiseashok
LOL, sorry about that. Since its sub product of Apache I thought somebody might have done this here (Apache Camel-Lucene integration) and can help me. I do realize that Apache is an ocean and should sail at the right spot. Thanks for your time Hilderich. Regards Ashok G -- View this message in

Re: Proper way to initialize Transaction management for Camel in an Application Server

2013-09-19 Thread kraythe
So am I to understand that there is no way possible right now to do this in a ServletListener component? Can I create a simple registry without blowing up the construction of the context or do something else? I would really like to enable this type of ACID transactions. -- View this message in

Is it possible to include XPath expression in simple expression?

2013-09-19 Thread bonnahu
Hi guys, I am wondering whether there is a way to do something like below: ${date:now:MMdd-HHmm}-incomingOrder-${@XPath("/order/@customerId")}-.xml -- View this message in context: http://camel.465427.n5.nabble.com/Is-it-possible-to-include-XPath-expression-in-simple-expression-tp5739830.

Using Camel to process files and associated metadata files

2013-09-19 Thread Scott Parkerson
I have an interesting integration problem: One of our business units drops report files in a directory. Each report is a PDF, and has an associated text metadata file that describes the report. I'd like to have Camel poll the directory for the metadata files, and then, upon reading the metadata f

Re: Deployment of Akka Camel CXF Osgi sample in Apache Karaf container

2013-09-19 Thread sramakrishna
The following is additional information to my original post: i have done similar steps as follows at karaf console after starting karaf before deploying my features file into deploy directory. 1) features:chooseurl cxf 2.7.5 2) features:install cxf 3) features:chooseurl camel 2.10.3 4) feature

Stopping route is hanging infinitly

2013-09-19 Thread marioradev
While executing one of our automation tests, it sometimes hangs out. The invoked code is camelContext.stopRoute(routeID); Here is the stacktrace: HTTP Handler 127.0.0.1" prio=6 tid=0x1035f000 nid=0x10d0 in Object.wait() [0x1423b000] java.lang.Thread.State: WAITING (on object mo

cast of property value for blueprint osgi implementation

2013-09-19 Thread cbuxbaum
Hi all, I am migrating an application from Spring dsl to blueprint. This worked previously: "/> in conjunction with this bean method: public void setExtractall(boolean extractall) { this.extractall = extractall; } So t

Re: Simple way to do some elementary bean operations

2013-09-19 Thread Dale King
Thinking about this some more the real issue is not so much direct support for setting properties or invoking arbitrary methods because we have things like OGNL which can do that work for us. For example, the OGNL expression: request.body.someProperty = request.headers.foo would do the trick f

RE: After camelContext shutdown, is any way to exit the Java main() method?

2013-09-19 Thread SyedBhai
Hello, If you are trying to invoke WSDL web service using Camel then this problem is solved I believe. Kindly search the post titled "Is it Camel Bug?". A JIRA was filled and the bug was removed. If you are doing something else then please print the list of current threads in execution. If

Re: Is it possible to include XPath expression in simple expression?

2013-09-19 Thread Dale King
The way to do it is to set a header using the xpath and then use the header's value in the simple expression. On Thu, Sep 19, 2013 at 12:54 PM, Robert Simmons wrote: > You can use the scripts component and use xpath by itself. > > Sent from my iPad > > > On Sep 19, 2013, at 10:25 AM, bonnahu w

Re: Is it possible to include XPath expression in simple expression?

2013-09-19 Thread bonnahu
yeah, that is what I am doing now. -- View this message in context: http://camel.465427.n5.nabble.com/Is-it-possible-to-include-XPath-expression-in-simple-expression-tp5739830p5739838.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Is it possible to include XPath expression in simple expression?

2013-09-19 Thread Christian Posta
Does it make sense to have some kind of "composite" expression? On Thu, Sep 19, 2013 at 12:06 PM, bonnahu wrote: > yeah, that is what I am doing now. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Is-it-possible-to-include-XPath-expression-in-simple-expression-tp

Re: Is it possible to include XPath expression in simple expression?

2013-09-19 Thread Robert Simmons
You can use the scripts component and use xpath by itself. Sent from my iPad > On Sep 19, 2013, at 10:25 AM, bonnahu wrote: > > Hi guys, > I am wondering whether there is a way to do something like below: > > ${date:now:MMdd-HHmm}-incomingOrder-${@XPath("/order/@customerId")}-.xml > > >

Re: ConcurrentModificationException thrown from inside camel splitter

2013-09-19 Thread Joshua Groom
The WindSplitterPojo simply returns List containing two messages that come data in the input message body. We copy the body headers to the result messages. It is thread safe, it has no state, ie there are no object fields that are modified. The method is like this it is edited for clarity/privacy

OGNL property syntax in documentation does not work

2013-09-19 Thread Dale King
In the documentation for the Camel OGNL component it shows the following syntax: property(name) Object the property by the given name property(name, type) the property by the given name as the given type This syntax does not actually work in camel and I do not see any tests that tried to test that

Re: Simple way to do some elementary bean operations

2013-09-19 Thread Claus Ibsen
Hi You can use the language component, and set transform=false http://camel.apache.org/language Though the idea of having a

Re: OGNL property syntax in documentation does not work

2013-09-19 Thread Claus Ibsen
Hi You can help improve the docs. See http://camel.apache.org/contributing.html On Fri, Sep 20, 2013 at 12:57 AM, Dale King wrote: > In the documentation for the Camel OGNL component it shows the following > syntax: > > property(name) Object the property by the given name property(name, type) th

Re: OGNL property syntax in documentation does not work

2013-09-19 Thread Claus Ibsen
Can you post the link to where you found this "mistake". I cannot see a problem at http://camel.apache.org/ognl On Fri, Sep 20, 2013 at 12:57 AM, Dale King wrote: > In the documentation for the Camel OGNL component it shows the following > syntax: > > property(name) Object the property by the giv

Re: cast of property value for blueprint osgi implementation

2013-09-19 Thread Claus Ibsen
Hi Did you setup blueprint property placeholders? You would need to do that for it to understand and support ${ }. You can see some details here http://camel.apache.org/using-propertyplaceholder.html And also if you google for blueprint cm or blueprint config admin to find some links for more de