Re: jetty:http component "mangles" x-www-form-urlencoded POST in message:

2010-04-24 Thread Willem Jiang
greenstar wrote: When a POST arrives to an endpoint: ie: curl -d "x=1&y=2 http://localhost/foobar The IN body is removed and the form params are moved to the message header. How can I disable this feature? Current camel-jetty component doesn't support to disable this feature by doing some s

Re: CAMEL Spring Equivalent of body().isInstanceOf(AddEndpointNotificationMessage.class)

2010-04-24 Thread Willem Jiang
Hi, I don't think current Spring DSL support this, but you can delegate the predict to a bean[1] method just like this http://camel.apache.org/schema/spring";>

Re: CAMEL Spring Equivalent of body().isInstanceOf(AddEndpointNotificationMessage.class)

2010-04-24 Thread Claus Ibsen
Hi See the Camel expression language which is called Simple. It can do this http://camel.apache.org/simple.html Otherwise you can choose any of the scripting language which can do this, like Groovy etc. http://camel.apache.org/languages.html On Fri, Apr 23, 2010 at 8:50 PM, Gareth Collins wrote

Re: Remote broker message behavior

2010-04-24 Thread Willem Jiang
jfaath wrote: Well, I figured out the one issue with the pending messages. Guess I was confused about the difference between a consumer (using "from") and a producer (using "to"). Now I just have to figure out why the camel jms producer removes the message body when sending the message to the q

Re: jre 1.5 no longer available

2010-04-24 Thread Claus Ibsen
Hi You can build Camel fine with JDK 1.6, which we at FUSE have many servers that do. What OS, Maven are you using. And where do you get a failure? And what mvn command do you use? And have you read this page? http://camel.apache.org/building.html On Fri, Apr 23, 2010 at 10:01 PM, John J. Fran

Re: CLIENT_ACKNOWLEDGE and Sessions

2010-04-24 Thread Willem Jiang
Hi, camel-jms consumer is based on Spring JMSMessageListenerContainer, after digging the JMS message receiving code for a while, it's consuming one message per session. Willem Monica_G wrote: Hi, How do sessions work with Camel? Is there only one message consumed per session? I've set th

Re: jre 1.5 no longer available

2010-04-24 Thread Willem Jiang
Hi, You need to make sure you install the SUN JDK 1.6. Willem John J. Franey wrote: I build with java 1.6. Maven build fails. sun.com:tools:jar:1.5.0 is not resolved. I do not have jre or jdk 1.5 installed. jdk 1.5 is not available on the sun/oracle download site any longer, it is EOL. Wha

Re: Basic Authorization HTTP header with HttpComponent

2010-04-24 Thread Willem Jiang
Why do you want to do this? Do you want to send the request to another http server? Willem matthouston23 wrote: Hi, How to reproduce Basic Authorization HTTP header like this byte[] authBytes = Encoding.UTF8.GetBytes("user:password".ToCharArray()); request.Headers["Authorization"] = "Basic " +

Re: Retreiving messageId from JMS queue

2010-04-24 Thread Willem Jiang
jfaath wrote: I'm wondering if there is a way to retrieve the messageId of the message when a producer sends a message to the queue. For example, let's say I have these routes: from("wherever"). // do lots of stuff to("jms:queue:processed"); from("jms:queue:processed") .choice() .when(header("

Re: Basic Authorization HTTP header with HttpComponent

2010-04-24 Thread matthouston23
Yes, send the request to another http server (like http://server:port/file.php?param1=value1¶m2=value2...) This is the only authentication mode supported. Matt willem.jiang wrote: > > Why do you want to do this? > Do you want to send the request to another http server? > > Willem > matthousto

Generating multible files based on DB query in a nice way.

2010-04-24 Thread ChantingWolf
Dear all, I have a following question. I have to generate many files based on sql query. Let's say for example, I have get from database a list of orders made today and genarate file for each order and later store each file on ftp. Ideally I would like to get follewing. Not quite sure how to ge

Re: Generating multible files based on DB query in a nice way.

2010-04-24 Thread Norman Maurer
I think you got it already . Just use the splitter eip for that. Bye Norman 2010/4/24, ChantingWolf : > > Dear all, > > I have a following question. > I have to generate many files based on sql query. > > Let's say for example, I have get from database a list of orders made today > and genarate

Re: Generating multiple files based on DB query in a nice way.

2010-04-24 Thread ChantingWolf
Dear all, Well, let's say, we have a very simple bean: import java.util.*; public class MySplitterBean { public List splitBody() { List answer = new ArrayList(); answer.add("11"); answer.add("12"); return answer; } } I want

Re: jetty:http component "mangles" x-www-form-urlencoded POST in message:

2010-04-24 Thread greenstar
willem.jiang wrote: > > Here is a way for you to work around this issue by extending the > DefaultHttpBinding without calling the > HttpServletRequest.getParameterNames() if the method is POST , then you > set this binding into the JettyHttpComponent. > Thanks for the suggestion Willem. I'