Re: HTTP parameter bug (was passing the HTTPServletRequest from Jetty to a SEDA consumer in Spring DSL)

2010-01-21 Thread Wayne Keenan
Hi, Nope, I am POSTing binary data as the body with a content-type of ' application/octet-stream', and am sending additional parameters in the URI Query that are not appearing as Camel headers. Perhaps this is not 'best practice', and the body should be multipart MIME encoded so it can be POST'e

How To Check If A Networked Connector Is Up

2010-01-21 Thread Carlo Camerino
Hi, I have a sistuation in which i use a network connector to communicate with another broker, my problem is that when the other networked connector is turned off, activemq still trys to send a message to i'm using producertemplate in camel btw, object.sendRequest(body, "activemq:financials");

Re: camel 2.1 with geronimo 2.2 (activemq 3.5)

2010-01-21 Thread Charles Moulliard
I have made a test in Geronimo with camel-core, camel-spring jars added in the folder lib but I got the same error as Ulise. 007 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.configs/activemq-broker/2.2/car?ServiceModule=org.a

Re: HTTP parameter bug (was passing the HTTPServletRequest from Jetty to a SEDA consumer in Spring DSL)

2010-01-21 Thread Willem Jiang
I just did a quick test on camel trunk, you can get the URL parameters by using the exchange.getIn().getHeader(Exchange.HTTP_QUERY) When you post the binary data with URI Query. I just took a look at camel-http and found we could parser the URL parameter for the post method. So I created a JI

Re: How To Check If A Networked Connector Is Up

2010-01-21 Thread Gary Tully
This does not sound right. The store and forward should happen async and should block pending a reconnect of the networkconnector in the event of a failure of the second broker. Can you post your activemq configuration? An active network connector is visible in JMX so you could validate its state

Re: How To Check If A Networked Connector Is Up

2010-01-21 Thread Carlo Camerino
Here is a networkbroker , i have an activemqcomponent which connects to broker client broker. in turn client broker is connected to another broker Here is th

Re: requestBodyAndHeader and HEADER_CLOSE_SESSION_WHEN_COMPLETE

2010-01-21 Thread huntc
Claus Ibsen-2 wrote: > > Yes you need to pass in this header every time you want to session closed. > I'm pretty convinced that this isn't happening for me despite passing in the header that I want the session closed when complete (which I presume is when I get a reply). Here's my log file:

camel-quickfix example

2010-01-21 Thread beat glattfelder
Hey camel riders I have tried the PassivefixGateway example in the test source, but it did not behave as expected. Though it's supposed route async responses back to the client it simply wont. Looking at the source, I reckon this behavior is by design, since the Processor registered with the "qui

Jetty Security Handler

2010-01-21 Thread SwenVogel
Hi, i created a customer jetty security handler and configured the spring configuration file accordingly. In the security handler i use my own "exec" camel component for the authentication. In short my "exec" component can executes external programs and makes use of the apache-commons-exec libra

FileConsumer move a file to wrong destination.

2010-01-21 Thread ariablu
using Apache Camel 2.1 and Spring, route: File -> Processor -> (cxf) -> Log When ... /_work/test/from/1.txt if I run test case, 1.txt file was moved to /_work/test/from/.done (not directory!) But I want /_work/test/from/.done/1.txt [[te

Re: Easy One way soap services

2010-01-21 Thread Daniel Kulp
Quite honestly, I'm not sure why the CXF stuff in Camel has to be so complex. To me, it should be based more on the technology in CXF that supports the JAX-WS Dispatch/Provider stuff (or implemented via the JAX-WS Dispatch/Provider stuff). In this case, if it was a "PAYLOAD" mode Provider, it

Re: Easy One way soap services

2010-01-21 Thread William Tam
I could be wrong but I think when camel-cxf PAYLOAD mode was developed, the CXF Dispatch/Provider interface support wasn't quite ready (or we haven't done enough due diligence). I agreed with you the benefit. We could rewriting it using the Dispatch/Provider APIs. However, I seriously doubt

Re: FileConsumer move a file to wrong destination.

2010-01-21 Thread Claus Ibsen
Hi Could you try with 2.2-SNAPSHOT ? It is a bit odd since Camel should pickup .done as a relative directly and not as a absolute filename. You can also try to use move=.done/${file:name} Which should be what Camel translates .done to under the covers. On Thu, Jan 21, 2010 at 5:08 PM, ariabl

FTP Component - How to Disconnect?

2010-01-21 Thread Gunnar Hillert
Hi, I am creating a simple flow uploading files using FTP and FTPs. Here is the process definition: I drop a file in a folder, Camel picks it up and uploads it to the server. Everything works perfectly. My problem is that I would like to disconnect from the FTP server (terminate session) ev

Re: requestBodyAndHeader and HEADER_CLOSE_SESSION_WHEN_COMPLETE

2010-01-21 Thread Claus Ibsen
Debug the code :) You should see this in the DEBUG log LOG.debug("Closing session when complete"); On Thu, Jan 21, 2010 at 11:49 AM, huntc wrote: > > > Claus Ibsen-2 wrote: >> >> Yes you need to pass in this header every time you want to session closed. >> > > I'm pretty convinced that this

Re: Easy One way soap services

2010-01-21 Thread William Tam
As another option, you can use the cxfbean compound but your bean needs to have JAXWS annotations. http://localhost:9090?matchOnUriPrefix=true"; /> Please see the unit test here: https://svn.apach

Re: FTP Component - How to Disconnect?

2010-01-21 Thread Christian Müller
Hey Gunnar, you are right. At present, we disconnect only after a failed write/upload from the server. Currently you have no choice to configure a session disconnect after a write. @Claus: Should Gunnar open a JIRA ticket for that or won't we change this? Regards, Christian On Thu, Jan 21, 2010

Re: Easy One way soap services

2010-01-21 Thread Willem Jiang
Hi Dan, What we do in camel-cxf is try to reuse everything what CXF can provide. First we use the cxf-simple-front and cxf-jaxws-front endpoint to export or consumer the WS services, then we provides MESSAGE, and PAYLOAD DataFormat by massage the interceptors ourself, then we have cxfBeans, cx

camel-spring:test-jar missing from snapshot releases?

2010-01-21 Thread tide08
I upgraded to camel 2.2-SNAPSHOT and my project fails to compile as it looks like camel-spring:tests-jar is missing? All the other components downloaded fine, I did lookup in camel snapshot repository and did not find specified jar there as well. Here is mvn error stack trace: [INFO] ---

Camel 1.6.x vs 2.x performance comparisons?

2010-01-21 Thread tide08
Hi, I was looking for some performance metrices on how camel 1.6.x performs vs 2.x? Since there are lot of platform improvements in camel 2.x, how does it fair as compared to 1.6.x? I upgraded my app recently and my app and load test is showing degraded results and only change being upgrade to c

Re: FTP Component - How to Disconnect?

2010-01-21 Thread Stan Lewis
My 2 cents is that it's a worthwhile option to have, many FTP servers would close the connection on you after a timeout anyway. On Thu, Jan 21, 2010 at 4:02 PM, Christian Müller wrote: > Hey Gunnar, > > you are right. At present, we disconnect only after a failed write/upload > from the server. C

Re: Camel 1.6.x vs 2.x performance comparisons?

2010-01-21 Thread Willem Jiang
Hi, Clause did some performance enhancement in Camel 2.x. Here is the wiki page[1]. Can you show us your camel route ? That could be helpful for us to dig the issue. Willem tide08 wrote: Hi, I was looking for some performance metrices on how camel 1.6.x performs vs 2.x? Since there are lot

Re: camel-spring:test-jar missing from snapshot releases?

2010-01-21 Thread Willem Jiang
I think you can avoid to use the camel-spring:tests-jar by using camel-test.jar in your test. We introduced camel-test module in camel 2.x to avoid user's test dependency on the tests-jar. Willem tide08 wrote: I upgraded to camel 2.2-SNAPSHOT and my project fails to compile as it looks like c

Re: FTP Component - How to Disconnect?

2010-01-21 Thread Claus Ibsen
On Thu, Jan 21, 2010 at 10:02 PM, Christian Müller wrote: > Hey Gunnar, > > you are right. At present, we disconnect only after a failed write/upload > from the server. Currently you have no choice to configure a session > disconnect after a write. > > @Claus: Should Gunnar open a JIRA ticket for

Re: FTP Component - How to Disconnect?

2010-01-21 Thread Claus Ibsen
Hi I have created the ticket https://issues.apache.org/activemq/browse/CAMEL-2391 And also implemented this new feature. There is a new option disconnect=true which will disconnect from the remote ftp server right after use. It can be used on both the consumer or producer side. Will be in the n