Camel based Polling Provider for HTTP with XML payloads

2009-07-10 Thread huntc
I've just posted some code re. how to implement an HTTP based polling provider for XML objects using Camel. I hope this forum finds it useful (feedback is of course welcome!). http://christopherhunt-software.blogspot.com/2009/07/camel-based-xml-payload-http-polling.html -- View this message in c

Re: Disabling stream caching for multicast in 1.6.1

2009-07-10 Thread Claus Ibsen
On Thu, Jul 9, 2009 at 2:59 PM, huntc wrote: > > Hi there, > > Is it possible to disable stream caching when using multicast via the fluent > builder api in 1.6.1? > I actually do not think so, its kinda auto enabling itself when using dead letter channel or multicast. In 2.0 you got full control

Re: JMS publish consuming sockets?

2009-07-10 Thread Claus Ibsen
Hi Are your routes InOnly? Eg you do not consume from a JMS queue? There was a bad default in camel-jms. See the warning on the JMS component page. Maybe it can help. And have you tried asking on the ActiveMQ forums. Must be an issue they have heard before. AMQ have a ton of settings to adjust.

Mistake in FAQ sample code.

2009-07-10 Thread Jörn Kottmann
Hello everyone, Thats the FAQ item in question: http://camel.apache.org/how-do-i-write-a-custom-processor-which-sends-multiple-messages.html The sample code implements a Processor which returns an Exchange object from its process method, but the process method returns nothing, right ? Jörn

Re: Mistake in FAQ sample code.

2009-07-10 Thread Claus Ibsen
On Fri, Jul 10, 2009 at 10:16 AM, Jörn Kottmann wrote: > Hello everyone, > > Thats the FAQ item in question: > http://camel.apache.org/how-do-i-write-a-custom-processor-which-sends-multiple-messages.html > > The sample code implements a Processor which returns an Exchange object from > its > proces

Re: Jetty component and HTTP parameter

2009-07-10 Thread SwenVogel
I have tested the feature with apache-camel-2.0-SNAPSHOT.zip (Thu Jul 09 17:35:12 GMT+00:00 2009) and send a very simple XML file as request body: Hello World And i encountered two problems: 1. In the IN message exists the following curious header: HEADER NAME: Hello World

Re: Jetty component and HTTP parameter

2009-07-10 Thread SwenVogel
I have tested the feature with apache-camel-2.0-SNAPSHOT.zip (Thu Jul 09 17:35:12 GMT+00:00 2009) and send a very simple XML file as request body: Hello World And i encountered two problems: 1. In the IN message exists the following curious header: HEADER NAME: Hello World

Retrying queue

2009-07-10 Thread Leen Toelen
Hi, I would like to use an synchronous queueing mechanism, where the processing (posting to an HTTP endpoint) is retried muliple times on failure. The retry schedule schould be manageable so the retry timer increments and in the end a warning is provided, much like most email servers work. The queu

Re: Jetty component and HTTP parameter

2009-07-10 Thread Willem Jiang
Hi, Did you set the content-type to be "application/x-www-form-urlencoded" ? If so , camel-http will try to build the parameter map with the message body which you post to service endpoint. Willem SwenVogel wrote: I have tested the feature with apache-camel-2.0-SNAPSHOT.zip (Thu Jul 09 17:35

Camel with intergated ActiveMQ Web Console and JBoss

2009-07-10 Thread chu_man_fu
I have Camel working great in ActiveMQ intergated into JBoss but only by modifying my activemq.xml file: http://activemq.apache.org/camel/schema/spring";> my.package.name

Re: Retrying queue

2009-07-10 Thread Leen Toelen
Hi, thanks a lot for the very detailed feedback. I'll give it a try. Regards, Leen On Fri, Jul 10, 2009 at 12:42 PM, Claus Ibsen wrote: > On Fri, Jul 10, 2009 at 11:19 AM, Leen Toelen wrote: > > Hi, > > I would like to use an synchronous queueing mechanism, where the > processing > > (posting t

Re: Camel based Polling Provider for HTTP with XML payloads

2009-07-10 Thread Claus Ibsen
On Fri, Jul 10, 2009 at 9:42 AM, huntc wrote: > > I've just posted some code re. how to implement an HTTP based polling > provider for XML objects using Camel. I hope this forum finds it useful > (feedback is of course welcome!). > > http://christopherhunt-software.blogspot.com/2009/07/camel-based-

Re: Retrying queue

2009-07-10 Thread Claus Ibsen
On Fri, Jul 10, 2009 at 12:51 PM, Leen Toelen wrote: > Hi, > thanks a lot for the very detailed feedback. I'll give it a try. > The last bit, the warning. What kind of warning do you have in mind? BTW: Camel itself can also handle redelivery and do all sorts of tricks in relation to this. See gen

Re: Camel with intergated ActiveMQ Web Console and JBoss

2009-07-10 Thread chu_man_fu
I have routing configured via XML working with no problems. It's the part I want to get working but I don't know where to put my classes/package. I have looked at apache-camel-jboss-5-spring but I don't understand how to get it to work. Are there any examples of this on the net which I could lea

Re: Camel with intergated ActiveMQ Web Console and JBoss

2009-07-10 Thread Claus Ibsen
On Fri, Jul 10, 2009 at 1:00 PM, chu_man_fu wrote: > > I have routing configured via XML working with no problems. > It's the part I want to get working but I don't know where to put > my classes/package. Do you deploy your application as a WAR file in JBoss? If so just put your classes in WEB-IN

Re: Faster!!

2009-07-10 Thread Claus Ibsen
This discussion about IN, OUT, FAULT is moved to the topic we current have on the dev forum. This topic should be used for performance talk. On Thu, Jul 9, 2009 at 7:44 PM, Claus Ibsen wrote: > On Thu, Jul 9, 2009 at 4:50 PM, Hadrian Zbarcea wrote: >> I hardly see a reason for the IN message to

Re: Retrying queue

2009-07-10 Thread Claus Ibsen
On Fri, Jul 10, 2009 at 11:19 AM, Leen Toelen wrote: > Hi, > I would like to use an synchronous queueing mechanism, where the processing > (posting to an HTTP endpoint) is retried muliple times on failure. The retry > schedule schould be manageable so the retry timer increments and in the end > a w

Re: Camel with intergated ActiveMQ Web Console and JBoss

2009-07-10 Thread Claus Ibsen
Hi The package scan uses class loading and classloaders in J2EE servers is "a nightmare". There have been some JBoss people creating a Camel plugin that allows it to use JBoss specific classloading. http://codeandtell.wordpress.com/2009/03/03/apache-camel-jboss-5-spring/ So I guess its the probl

Re: Camel with intergated ActiveMQ Web Console and JBoss

2009-07-10 Thread chu_man_fu
I have added my route builder to the classes directory but I now get this error: ERROR [0]] Exception sending context initialized event to listener instance of class org.apache.activemq.web.WebConsoleStarter org.springframework.beans.factory.BeanCreationException: Error creating bean with name '

Re: Have anybody here tried the tutorial-osgi-camel-part2?

2009-07-10 Thread Charles Moulliard
Hi Kevin, I have done a full installation and everything works fine. I have done some modifications (see remarks here after) 1) I have slightly modified the pom files to facilitate the maven build. Please have a look on the web site - wiki page of my tutorial 2) The features to be installed have

Re: Camel with intergated ActiveMQ Web Console and JBoss

2009-07-10 Thread Claus Ibsen
On Fri, Jul 10, 2009 at 3:58 PM, chu_man_fu wrote: > > I have added my route builder to the classes directory but I now get this > error: > >  ERROR [0]] Exception sending context initialized event to listener instance > of class org.apache.activemq.web.WebConsoleStarter > org.springframework.beans

Re: Camel with intergated ActiveMQ Web Console and JBoss

2009-07-10 Thread chu_man_fu
The jars I have are those which are included in activemq-web-console-5.2.0.war: activeio-core-3.1.0.jar activemq-camel-5.2.0.jar activemq-console-5.2.0.jar activemq-core-5.2.0.jar activemq-pool-5.2.0.jar activemq-web-5.2.0.jar activemq-xmpp-5.2.0.jar aopalliance-1.0.jar backport-util-concurrent-2

Re: Have anybody here tried the tutorial-osgi-camel-part2?

2009-07-10 Thread Kevin.Zhang
Hi Charles, Could you please update the tutorial-osgi-camel-part2.zip in the tutorial page to reflect your latest changes? Please also send me the server zip so that I can have a good start point. Best, Kevin cmoulliard wrote: > > Hi Kevin, > > I have done a full installation and everythin

Re: Have anybody here tried the tutorial-osgi-camel-part2?

2009-07-10 Thread Charles Moulliard
Hi Kevin, I have already updated the code of the tutorial on the wiki page. How can I send to you a zip of 57 Mb ? Regards, Charles Moulliard Senior Enterprise Architect Apache Camel Committer * blog : http://cmoulliard.blogspot.com On Fri, Jul 10, 2009 at 5:32 PM,

Re: Have anybody here tried the tutorial-osgi-camel-part2?

2009-07-10 Thread Kevin.Zhang
Charles, The zip file tutorial-osgi-camel-part2.zip in page http://camel.apache.org/tutorial-osgi-camel-part2.html still shows that it's created in May 04, 2009. Please let me know if it's the right file to download. For the big zip file, could you please upload it to http://www.sendspace.com/ a

Re: JMS publish consuming sockets?

2009-07-10 Thread huntc
Claus Ibsen-2 wrote: > > Are your routes InOnly? Eg you do not consume from a JMS queue? > Yes I do have some in-only routes. Could the maxMessagesPerTask default issue cause an unwieldily number of connections to be made with the broker? Also is there any feel for when 1.6.2 is out or better

Re: JMS publish consuming sockets?

2009-07-10 Thread Claus Ibsen
On Sat, Jul 11, 2009 at 1:26 AM, huntc wrote: > > > Claus Ibsen-2 wrote: >> >> Are your routes InOnly? Eg you do not consume from a JMS queue? >> > > Yes I do have some in-only routes. Could the maxMessagesPerTask default > issue cause an unwieldily number of connections to be made with the broker?

Re: Camel with intergated ActiveMQ Web Console and JBoss

2009-07-10 Thread Claus Ibsen
Hi Sorry but that class is still from Camel 2.0. What about you own code. Did you compile it against 2.0? Make sure you are only using Camel 1.5 .jars On Fri, Jul 10, 2009 at 4:35 PM, chu_man_fu wrote: > > The jars I have are those which are included in > activemq-web-console-5.2.0.war: > > acti