HTTP4 Component and encoding message body

2012-05-31 Thread Andrew Thorburn
When sending a message to an HTTP4 Endpoint, will the content of the message body be automatically encoded? e.g. The spaces replaced with %20 and whatever else is necessary to ensure that the POST request isn't mangled on the other side. I can't see anything in the documentation to tell me whether

Re: HTTP4 Component and encoding message body

2012-05-31 Thread Andrew Thorburn
? > > On Thu, May 31, 2012 at 4:54 AM, Willem Jiang >wrote: > > > Camel-HTTP4 components just takes the message body as an input stream, if > > you want to do the encoding you can add a processor or dataformat to do > > this kind of work. > > > >

Handling complex, multi-record, single-line pipe-separated text?

2013-11-13 Thread Andrew Thorburn
First up, I'm currently building a proxy, effectively, for some interfaces that I have to work with. On one side is a set of web services that my application will be calling, so that I can standardise on *something*. On the other side is a set of IBM MQ queues that - mostly - require fixed-length r

Re: Handling complex, multi-record, single-line pipe-separated text?

2013-11-19 Thread Andrew Thorburn
out of the box in beanio. > > Otherwise you may need to write your own code to format the date accordingly. > > > > On Thu, Nov 14, 2013 at 3:05 AM, Andrew Thorburn wrote: >> First up, I'm currently building a proxy, effectively, for some >> interfaces t

Access Camel Context or OSGi Context from XSL Extension method?

2013-11-20 Thread Andrew Thorburn
tAddress(NodeList address) { String unitNo = address.item(0).getChildNodes().item(0).getTextContent(); ... } public static String translate(String type, String val) { InputStream is = XSLUtil.class.getResourceAsStream(...); ... } Thanks, - Andrew Thorburn

Re: Access Camel Context or OSGi Context from XSL Extension method?

2013-11-21 Thread Andrew Thorburn
gesting it was being shut down, but there were a lot of errors scrolling by very fast). I had to head into the cache and nuke the bundle after force-quitting SMX to get it to work properly, which was quite awkward. I will raise a full bug report for that when I can. - Andrew On Fri, Nov 22, 20

Re: Access Camel Context or OSGi Context from XSL Extension method?

2013-11-21 Thread Andrew Thorburn
in XSL way (no java mapping)? Doing everything in XSL > and using a generic template for address mapping. You could import it as > needed and overide as needed. > > Cheers, Thomas. > > Am 21.11.2013 um 03:13 schrieb Andrew Thorburn : > > > I am currently in the process o

Accessing property on bean in header?

2013-12-03 Thread Andrew Thorburn
I've been having a bunch of trouble trying to do something that seems like it should be really simple... Using Camel 2.10.7 on ServiceMix 4.5.2. Basically, I'm sending a SOAP message, which contains a SOAP header that looks like this: ? ? ? Camel takes th

Re: Accessing property on bean in header?

2013-12-03 Thread Andrew Thorburn
want isn't possible, and that even thinking about using SOAP headers here was a terrible idea, given the amount of pain it's caused me. Thanks, - Andrew On Wed, Dec 4, 2013 at 7:50 PM, Andrew Thorburn wrote: > I've been having a bunch of trouble trying to do something that seem

Re: Accessing property on bean in header?

2013-12-03 Thread Andrew Thorburn
; operator a bit pointless (in one case, using ${bean:camelContext}, I got a nasty exception, which I can share if needed). I assume this is a bug? Has it been fixed in a later version of Camel? - Andrew On Wed, Dec 4, 2013 at 8:03 PM, Andrew Thorburn wrote: > I should add here that I

Re: Accessing property on bean in header?

2013-12-03 Thread Andrew Thorburn
y in a day or so. - Andrew On 4/12/2013 8:28 PM, "Claus Ibsen" wrote: > On Wed, Dec 4, 2013 at 8:22 AM, Andrew Thorburn wrote: > > Apologies for the spam, but this should be the last post, and I > > believe there's a bug somewhere. According the documentation >

Re: Accessing property on bean in header?

2013-12-04 Thread Andrew Thorburn
finitely not null - that's confirmed in a log message and by actually checking the header in another processor, so I think something has gone horribly wrong in Camel... I also still can't extract properties from header objects, so I'm assuming that's not supported. Thanks,

Re: Accessing property on bean in header?

2013-12-04 Thread Andrew Thorburn
h I'm not surprised that it doesn't work. Anyway, I can do what I want, I just have to name my header soap_header_* instead of soap.header.* (or what have you - just so long as the header name does not contain a period). Case closed. Thanks, - Andrew On Thu, Dec 5, 2013 at 2:15 PM,

JMS failed because destination does not exist, but keeps trying to refresh?

2014-01-27 Thread Andrew Thorburn
only occurs once. Does anyone know how I can deal with this? Do I need to set a particular property on the JMS Config or something? I see there is a receiveTimeout, but since it's not even connecting, I'm not sure that's going to be much use. Thanks, - Andrew Thorburn

Re: JMS failed because destination does not exist, but keeps trying to refresh?

2014-01-27 Thread Andrew Thorburn
//ws.client.org.com/";> http://ws.client.org.com/}clientPort"; /> nmr:requestTransform imq:queue:REQUEST_QUEUE?replyTo=REPLY_QUEUE&replyToType=Shared nmr:responseTransform ${in.header.requestTransformUri} ${in.header

JMS Request/Reply but without setting JMSReplyTo header on outgoing message?

2014-03-20 Thread Andrew Thorburn
ver the Camel side of things. I have zero control over any of the MQ servers. The decision about which queue to put the request or reply on is done on a per-environment level - basically we just have a properties file saying which queue to use (I believe it's roughly the same on the other side). Thanks, - Andrew Thorburn

Re: sql component and delay

2014-03-24 Thread Andrew Thorburn
It should be "&consumer.delay=5000". Since you're using XML, you'll need to escape the & character. - Andrew On Tue, Mar 25, 2014 at 12:08 PM, Lydie wrote: > When I do that: > > > uri="sql:{{sql.oracle.selectPull2}}?consumer.onConsume={{sql.oracle.markProcessed}}&consumer

Re: CXF Schema Validation with a Custom Response

2014-07-17 Thread Andrew Thorburn
Assuming that your schema is not embedded in the WSDL, but in separate XSD files, you should look at the Validator Component: http://camel.apache.org/validation.html As in the example there, you can just catch a org.apache.camel.ValidationException (or, more specifically, a org.apache.camel.Schema

JMS - asyncConsumer &

2014-09-24 Thread Andrew Thorburn
t on it anywhere. FWIW, as I'm integrating with WebSphere MQ, and the queue I'm consuming from is set to EXCLUSIVE_OPEN (or something along those lines), I don't believe that I can make any use of the concurrentConsumers/maxConcurrentConsumers options on the JMS endpoint. Thanks, - Andrew Thorburn

Re: JMS - asyncConsumer &

2014-09-25 Thread Andrew Thorburn
.org/contributing.html > > And here is how to help edit the docs > http://camel.apache.org/how-do-i-edit-the-website.html > > On Thu, Sep 25, 2014 at 4:07 AM, Andrew Thorburn wrote: > > Hey guys, > > > > Just want to clarify that I understand how this works correctly:

Re: Not all processors are listed in JMX, preventing detailed route statistics/profiling

2014-10-16 Thread Andrew Thorburn
I've seen issues like this in HawtIO, and it's actually a Jolokia issue. Basically, Jolokia will only fetch the first N elements (unsorted, I believe) from the server, and if your MBean isn't one of those N, then... bugger? The solution is to go into HawtIO / Preferences / Jolokia, and change Max