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

2010-04-23 Thread greenstar
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? When this happens, I cannot "proxy" through to another http endpoint that expects a POST of type applicat

Re: about Camel Transaction

2010-04-23 Thread ext2
Maybe I hasn't illustrated my usage clearly. My usage is two separate nested global transaction(jta), not just a single transaction. If only a single jta transaction, exception process and transaction could work well together. But if new nested jta transaction declared(using require-new), excepti

Retreiving messageId from JMS queue

2010-04-23 Thread jfaath
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("errorsFound").i

Re: Remote broker message behavior

2010-04-23 Thread jfaath
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 queue. At least

CLIENT_ACKNOWLEDGE and Sessions

2010-04-23 Thread Monica_G
Hi, How do sessions work with Camel? Is there only one message consumed per session? I've set the acknowledgment mode to be CLIENT_ACKNOWLEDGE via the JmsComponent http://camel.apache.org/jms.html (http://camel.apache.org/jms.html) . However, I read the following on the http://java.sun.com/j

jre 1.5 no longer available

2010-04-23 Thread John J. Franey
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. What is your suggestion? Thanks, John -- View this message in context: http://old.nabb

Basic Authorization HTTP header with HttpComponent

2010-04-23 Thread matthouston23
Hi, How to reproduce Basic Authorization HTTP header like this >byte[] authBytes = Encoding.UTF8.GetBytes("user:password".ToCharArray()); >request.Headers["Authorization"] = "Basic " + Convert.ToBase64String(authBytes); with Http Component? Regards -- View this message in context: http://old

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

2010-04-23 Thread Gareth Collins
Hello, I had originally written my CAMEL application using Java DSL. Now I want to convert to the Spring DSL. I am sure this conversion is obvious (I am new to Spring), but I haven't found in the documentation or on the web how to convert body().isInstanceOf(xxx.class) i.e.: .choice() .when(

Re: Using local camel schema on server with no internet access

2010-04-23 Thread Claus Ibsen
Hi The trick is in the top of the XML file with all those namespace mappings. What you must do is to use http uris which is included in that spring file in the .jar in META-INF/spring.schemas And I think AMQ (if you use AMQ) had an issue with a missing entry in their jar so you may have to use th

Re: XPath Spliiter Problem

2010-04-23 Thread Claus Ibsen
Hi I have implemented this in Camel 2.3 so it can do your example out of the box. On Thu, Apr 22, 2010 at 12:10 PM, Claus Ibsen wrote: > On Thu, Apr 22, 2010 at 12:00 PM, mitul1411 wrote: >> >> I used file  output for testing the values. >> My requirement is that I have to send the values from

Using local camel schema on server with no internet access

2010-04-23 Thread Krystian Szczesny
Hi, I have to deploy my applictaion on a server with no internet access. When using schemaLocation pointing to the web spring will throw errorsduring processing of applicationContext.xml file. It was easy enough to fix the problem for spring, I simply changed http:// location to: classpath:org/sp

Re: about Camel Transaction

2010-04-23 Thread Claus Ibsen
Hi I have explain to you before that such a scenario is described in chapter 9 in the Camel in Action book. The source code is at a public and free site. Also this use case is explained on the Camel wiki pages, which does only rollback on B and let A commit http://camel.apache.org/transactional-c

about Camel Transaction

2010-04-23 Thread ext2
Hi: Sorry to raise the question again. Recently , I check the EJB specification and do some test with ejb's container managed transaction-policy , also the spring-transaction template(they both are same) After checking and testing EJB, I think the camel's current transaction is deficiency; Fo

Re: Message counter

2010-04-23 Thread Pjotr
Hi, are there other possibilities with functions that directly come along with Camel (ActiveMQ) ? If not I'll do it that way you described it - but if it was possible to do it with included functionality, I would prefer this. (Because I assume the stability and reliability "out-of-the-box" is be

Re: What will happen if there is a data loss?

2010-04-23 Thread Charles Moulliard
Maybe the user speak about the banzai client existing in camel-quickfix project ;-) Charles Moulliard Senior Enterprise Architect (J2EE, .NET, SOA) Apache Camel Committer *** - Blog : http://cmoulliard.blogspot.com - Twitter : http:

Re: What will happen if there is a data loss?

2010-04-23 Thread Claus Ibsen
Hi On Fri, Apr 23, 2010 at 12:03 PM, kelvinJK wrote: > > i would to modify the code in banzai and executor to simulate what will > happen if there is a data loss. > > for example, assume there is a order that will 5 partially filled execution > report. i want to know what will happen if the secon

What will happen if there is a data loss?

2010-04-23 Thread kelvinJK
i would to modify the code in banzai and executor to simulate what will happen if there is a data loss. for example, assume there is a order that will 5 partially filled execution report. i want to know what will happen if the second partially filled execution report due to unknown reasons, maybe

Re: Some camel - jmx properties are not described in wiki web page

2010-04-23 Thread Charles Moulliard
It should interesting to have a table like in ActiveMq wiki page showing properties/attributes/operations and of course a description http://activemq.apache.org/jmx.html see ActiveMQ MBeans Reference In our page, we only have a table with type list + MbeanWrapper Kind regards, Charles Moulliard

Re: Some camel - jmx properties are not described in wiki web page

2010-04-23 Thread Claus Ibsen
Hi What do you mean? This wiki page http://camel.apache.org/camel-jmx.html Tells you how to setup and have JMX enabled for Camel. And how to have 3rd party components expose JMX attributes/options etc. Its not a complete overview of each and every attribute / operation. If you dont understand w

Some camel - jmx properties are not described in wiki web page

2010-04-23 Thread Charles Moulliard
Hi, Some jmx properties of Camel JMX are not described in jmx wiki web page: ex : inflightexchanges, logRetryStackTrace, ... Kind regards, Charles Moulliard Senior Enterprise Architect (J2EE, .NET, SOA) Apache Camel Committer ***

Re: camel-mina and multicast

2010-04-23 Thread Claus Ibsen
I have updated the wiki page as it works now On Thu, Apr 22, 2010 at 2:45 PM, Charles Moulliard wrote: > I update the page. > > Charles Moulliard > > Senior Enterprise Architect (J2EE, .NET, SOA) > Apache Camel Committer > > *** > -

Re: Typo in docs

2010-04-23 Thread Claus Ibsen
Hi Should be fixed now. On Thu, Apr 22, 2010 at 5:04 PM, Claus Ibsen wrote: > Hi > > Thanks for spotting this. > > Unfortunately the Apache wiki pages cannot be edited right now, that > does not work currently. > I will add the "name.ext" variation as well so you can use either in > 2.3 onwards.

Re: Message counter

2010-04-23 Thread Claus Ibsen
Hi You can use a POJO/bean which returns the counter value. See the last example here http://camel.apache.org/file-language.html Then all you do is defining your bean in spring And then you invoke the method on the bean, as shown in that last example. On Fri, Apr 23, 2010 at 10:09 AM, Pjotr

Message counter

2010-04-23 Thread Pjotr
Hi, first of all I have to say I'm a beginner with ActiveMQ / Camel so please have mercy on me I would like to store ActiveMQ messages in the filesystem with a specific naming scheme [date]-[id]-[counter] Currently I got date and Id working - but I found no way to set a counter :confused: Ac