Re: camel-http: Multiple Request Paramaters

2011-07-27 Thread Claus Ibsen
On Thu, Jul 28, 2011 at 4:43 AM, daveharris wrote: > Hi, > I am writing a route which sends a HTTP GET request with a bunch of request > parameters. > > Looking at the documentation, the way to do this is via: > from("direct:start") >  .setHeader(Exchange.HTTP_QUERY, constant("order=123&detail=sho

Re: Getting the JARs through Maven for additional components

2011-07-27 Thread Claus Ibsen
On Thu, Jul 28, 2011 at 1:34 AM, Robert J. Liguori wrote: > Just learning camel... I want to use the XSD validator component... > > How do I add the dependency for it to the POM file? > There is an artifact id shown in the components list page http://camel.apache.org/components > Thanks! > > -

camel-http: Multiple Request Paramaters

2011-07-27 Thread daveharris
Hi, I am writing a route which sends a HTTP GET request with a bunch of request parameters. Looking at the documentation, the way to do this is via: from("direct:start") .setHeader(Exchange.HTTP_QUERY, constant("order=123&detail=short")) .to("http://oldhost";); This is fine, but I was hoping

Re: Getting the JARs through Maven for additional components

2011-07-27 Thread Robert J. Liguori
Got it... "camel-spring"... thx. On Wed, 27 Jul 2011 19:34:03 -0400, "Robert J. Liguori" wrote: > Just learning camel... I want to use the XSD validator component... > > How do I add the dependency for it to the POM file? > > Thanks! > > -- > Sincerely, > Robert J. Liguori > STG Technologies,

Re: how to route one request with socket communications by many times?

2011-07-27 Thread xiangqiuzhao
i take a look at mina Consumer, i have some question MyConsumer must handle the processor in the DSL by "from().process()"? if have some processes how to write? why the mina call the process(exchange) only once? or it's recursive auto? the mina consumer code like : //received message try {

Getting the JARs through Maven for additional components

2011-07-27 Thread Robert J. Liguori
Just learning camel... I want to use the XSD validator component... How do I add the dependency for it to the POM file? Thanks! -- Sincerely, Robert J. Liguori STG Technologies, Inc.

Correlation via ProducerTemplate

2011-07-27 Thread Jim Talbut
Hi, For what I'm doing I need to correlate between an outer Exchange and one initiated via a ProducerTemplate. At the moment I'm manually adding the correlation ID as a header when the message is sent and then pulling it out and setting it on the child Exchange. This is nasty, and I'm thinki

Injecting data to routes loaded from xml file

2011-07-27 Thread rogelio_sevilla1
Hello everyone: I'm using camel as an osgi bundle on fuse esb. I currently have a bundle with a simple POJO that instantiates some camel routes that reside on another bundle. This works fine. However, my routes are written on java DSL and I would like to transform them to Spring DSL. Currently my

Re: camel-netty and camel-mina refuse connections unless IP is specified

2011-07-27 Thread Taariq Levack
Ah, that works great, thanks Claus. There's no warning though, I'll take a look why not, doesn't seem to be my logging config. Thanks again. Taariq On Wed, Jul 27, 2011 at 7:00 PM, Claus Ibsen wrote: > Hi > > You should use 0.0.0.0 instead of localhost. I think they even log a > WARN about thi

Re: camel-netty and camel-mina refuse connections unless IP is specified

2011-07-27 Thread Claus Ibsen
Hi You should use 0.0.0.0 instead of localhost. I think they even log a WARN about this. On Wed, Jul 27, 2011 at 6:06 PM, Taariq Levack wrote: > Hi > > This is possibly by design either by camel or by netty/mina, since the > behaviour is consistent between these similar components. > > Neither

Re: Favor static member classes over nonstatic

2011-07-27 Thread bvahdat
Hi Claus, thanks for applying those 2 changes as well... While I was looking into the conversation we had in this thread, I suddenly realized that I misunderstood your answer completely regarding unit-tests, that's the following answer of yours: > For unit tests I doubt it have any effect, as th

camel-netty and camel-mina refuse connections unless IP is specified

2011-07-27 Thread Taariq Levack
Hi This is possibly by design either by camel or by netty/mina, since the behaviour is consistent between these similar components. Neither netty nor mina accept connections from remote network locations. The code works on my machine, but from outside I get 'Connection refused'. If I use a plain

Re: camel-netty and multicast

2011-07-27 Thread WDS
No example :( On Wed, Jul 27, 2011 at 11:00 AM, Claus Ibsen wrote: > Hi > > Can you take a peek in the unit tests of camel-netty, there may be an > example for broadcast. > > However as udp broadcasting isn't much used, there may be a glitch in > the component. > As we love contributions, feel fr

Re: camel-netty and multicast

2011-07-27 Thread Claus Ibsen
Hi Can you take a peek in the unit tests of camel-netty, there may be an example for broadcast. However as udp broadcasting isn't much used, there may be a glitch in the component. As we love contributions, feel free to dig into the source. On Wed, Jul 27, 2011 at 2:35 PM, WDS wrote: > hihi- >

Re: Favor static member classes over nonstatic

2011-07-27 Thread Claus Ibsen
Hi Babak Thanks for spotting. Somehow patch rejected those 2 files. I have correct them now. On Wed, Jul 27, 2011 at 4:06 PM, bvahdat wrote: > FYI, just realized that there're two more classes I've already provided in > the patch which are missing by your revision 1151350: > > http://svn.apache

Re: Google Visualization API wire protocol from camel - how to do it!

2011-07-27 Thread Claus Ibsen
Hi Blair This is very cool. If you have the time then a blog entry how to do this, with maybe a screenshot of the google charts as eye candy would be awesome. We can then add a link to it from the Camel articles page. And help spread the word on twitter etc. On Wed, Jul 27, 2011 at 10:05 AM, Bla

Re: Favor static member classes over nonstatic

2011-07-27 Thread bvahdat
FYI, just realized that there're two more classes I've already provided in the patch which are missing by your revision 1151350: http://svn.apache.org/viewvc?view=revision&revision=1151350 That's: EventRecord @ https://svn.apache.org/repos/asf/camel/trunk/components/camel-quickfix/src/test/java/

camel-netty and multicast

2011-07-27 Thread WDS
hihi- I see broadcast is available flag in camel-netty. I find no test case for broadcast/multicast in source. If multicast is functioning, can show example? I have in Java: from("netty:udp://225.5.5.55:4455/?broadcast=true"). to("log:mylog?level="INFO"). end(); I expect to see join

Re: how to route one request with socket communications by many times?

2011-07-27 Thread Willem Jiang
You can take a look at the code of mina or netty component and add some custom process to handle your protocol. On 7/27/11 6:06 PM, xiangqiuzhao wrote: how to implement the transport protocol ? i create myComponent and myConsumer extends DefaultConsumer, where to add my protocol handle when i r

Re: Using CamelTestSupport within OSGI Environment

2011-07-27 Thread Willem Jiang
OSGiIntegrationTestSupport shows you a good example to run the OSGi Unit test with the help of PaxExam. If you just want to test the services within karaf, you can write some utils class to deploy the bundle into karaf and run the unit test which access the services outside of karaf. Willem

Using CamelTestSupport within OSGI Environment

2011-07-27 Thread Younes Ouadi
Dears, I have wrapped CamelTestSupport in a service to allow testing Camel Routes from GUI. The service works fine in a standalone application (unit tests) as well as in a JEE application. When I tried the same service within an OSGI environment (Karaf), I got the following error: java.lang.Runti

Re: how to route one request with socket communications by many times?

2011-07-27 Thread xiangqiuzhao
how to implement the transport protocol ? i create myComponent and myConsumer extends DefaultConsumer, where to add my protocol handle when i received client request. -- View this message in context: http://camel.465427.n5.nabble.com/how-to-route-one-request-with-socket-communications-by-many-tim

Google Visualization API wire protocol from camel - how to do it!

2011-07-27 Thread Blair
Ok, in the project I've been on, we have managed to do some pretty awesome stuff with camel, so I'd like to spend some time posting about some of the cool things we have done - with some example code. This is exposing a database as a google data source so that you can use google charts Its als

Re: create myComponent error use maven

2011-07-27 Thread Willem Jiang
Can you try the latest released Camel 2.8.0 ? I think there are some bug fixes on the mvn archetype. On 7/27/11 2:40 PM, xiangqiuzhao wrote: but it's successful when use mvn archetype:generate to select camel-archetype-component number and then selected step by step -- View this message in cont

anyone else want changes to the DSL?

2011-07-27 Thread Blair
Hi all, I'd like to add expressions to .to in the DSL... this is why My code is littered with .recipientList(constant("activemq:receiving:").append(header("app")) Because I am wanting to send the message to an endpoint that we define in an expression. (mostly queues) however... it is a sing