Re: Example of scheduling

2012-09-20 Thread Jim Talbut
On 20/09/2012 17:53, surya theva wrote: Hello, I am new to Camel, I am looking for a example that every day at 12 am my application need to login into ftp server to get the encrypted files. Is there any example I can follow? Regards, ST I have a separate system that runs Quartz in a clustered c

Re: Camel Web Console and OSGi

2012-07-12 Thread Jim Talbut
On 12/07/2012 01:18, helander wrote: What is the current state regarding running the Camel Web Console in OSGi? Is someone working on this or is it already available ? /Lars -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Web-Console-and-OSGi-tp5715906.html Sent from t

Re: camel-web contexts

2011-09-27 Thread Jim Talbut
On 27/09/2011 01:26, aedwards wrote: I know this is late on this post... but This would be a nice feature. Curious if there has been any progress? Also, another really great feature would be if the camel-web application could use the jmx endpoints to communicate with camel-contexts so that the w

Re: How can I call a web service with no parameters via a producerTemplate?

2011-09-16 Thread Jim Talbut
Thank you Willem, that works. My call is now: return template.requestBodyAndHeaders( this.groupsUri, new Object[0], headers, String.class ); and I get the expected response. The "ping" operation is just a test one, but now it means I can make my test use much more of my main co

Re: Embedded web console

2011-09-08 Thread Jim Talbut
Claus, I /think/ I fixed some relative URL issues in my patch for CAMEL-3519 (I tested it embedded and in OSGi). Jim On 08/09/2011 15:34, Claus Ibsen wrote: On Thu, Sep 1, 2011 at 5:57 PM, boday wrote: hmmm...I'd think those paths would be relative to the web app context...not sure why you

Any way to force MDC logging ?

2011-09-08 Thread Jim Talbut
Hi, In an OSGi environment, is there any way to force all Camel Contexts to use MDC logging ? Is there any kind of event I can listen for that gets called early enough to configure the context before it is used? The aim of this is to simplify the configuration of each context. Thanks Jim

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

Re: How to get Exchange from a within a POJO without changing the interface?

2011-07-26 Thread Jim Talbut
, 2011 at 07:56:15AM +0100, Jim Talbut wrote: Just read the 2.8.0 release notes, could I use MDC for this? It's not currently enabled on my context, but I'll be using either Pax or logback so I can enable it. If so, what excellent timing, thank you :) Jim On 26/07/2011 07:43, Jim Talb

Re: How to get Exchange from a within a POJO without changing the interface?

2011-07-25 Thread Jim Talbut
Just read the 2.8.0 release notes, could I use MDC for this? It's not currently enabled on my context, but I'll be using either Pax or logback so I can enable it. If so, what excellent timing, thank you :) Jim On 26/07/2011 07:43, Jim Talbut wrote: Claus, That's useful, it

Re: How to get Exchange from a within a POJO without changing the interface?

2011-07-25 Thread Jim Talbut
ines logic POJO I'll run into threading issues (it may be called concurrently). Thanks Jim On 26/07/2011 07:06, Claus Ibsen wrote: On Tue, Jul 26, 2011 at 7:39 AM, Jim Talbut wrote: Hi, I have a POJO that benefits from having a non-Camel interface (it means I can know that the

How to get Exchange from a within a POJO without changing the interface?

2011-07-25 Thread Jim Talbut
Hi, I have a POJO that benefits from having a non-Camel interface (it means I can know that the interface matches that of a given web service). Internally this POJO needs to extract a couple of properties from the Exchange. Is there any way to get the "currently executing Exchange" without

Re: Best component to use for a synchronous InOut route?

2011-07-14 Thread Jim Talbut
Just to say thanks to Claus and Ben. I've ended up using @Producer with a direct component - it's not totally free of Camel, but it has to have some kind of non-POJO thing in there so that's OK. Jim On 14/07/2011 05:24, Claus Ibsen wrote: On Wed, Jul 13, 2011 at 6:07 PM, James Talbut wrote:

Is there any way for a CXF interceptor to access the Camel Exchange?

2011-07-07 Thread Jim Talbut
Hi, I want to log the "on the wire" data seen by CXF, which I can do with a CXF interceptor, but I want to be able to correlate that log with the state of the Camel Exchange at that point. What I really want is a cross between a CXF interceptor and a Camel TraceEventHandler, but that's not pos

Claim check example - why use persistent storage

2011-07-07 Thread Jim Talbut
Hi, In the claim check example (http://camel.apache.org/claim-check.html) the 'unwanted' information is placed in persistent storage and a tag is added to the exchange. What are the merits of doing this as opposed to simply storing the information in the exchange? i.e.: exchange.setProperty(

Is there any way to 'park' values for later use

2011-06-28 Thread Jim Talbut
Hi, I want to provide a single web service that makes calls to two separate web services. The arguments for the two services are different and some of them are independent, so the service I offer will have a combined argument list, and I need to do a couple of transformations to generate the a

Camel-3519, camel-web on OSGi

2011-06-20 Thread Jim Talbut
Hi, Is there any chance of getting my patch for CAMEL-3519 into trunk before 2.8.0? I know it's quite a big change to review and I'm sure all the committers have a ton of others things to work on. Thanks Jim

Re: Build break in camel-jetty

2011-06-12 Thread Jim Talbut
n Fri, Jun 10, 2011 at 9:14 PM, Jim Talbut wrote: I think both the test in camel-jetty and the code in camel-http are wrong. In camel-http (DefaultHttpBinding) we have: protected void populateAttachments(HttpServletRequest request, HttpMessage message) { // check if there is multipart

Re: Build break in camel-jetty

2011-06-12 Thread Jim Talbut
pply a right mime.types file in your environment. [1]http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/javax/activation/MimetypesFileTypeMap.java#MimetypesFileTypeMap On 6/11/11 3:14 AM, Jim Talbut wrote: I think both the test in camel-jetty and the code in cam

Re: Build break in camel-jetty

2011-06-10 Thread Jim Talbut
ectly (though I couldn't work out where to get it from). We'd then have to fix the test to check for the correct content-type. 2. Remove the assertion from the test. Jim On 10/06/2011 07:20, Jim Talbut wrote: On 09/06/2011 19:54, Jim Talbut wrote: On 09/06/2011 15:32, James Talb

Re: Build break in camel-jetty

2011-06-09 Thread Jim Talbut
On 09/06/2011 19:54, Jim Talbut wrote: On 09/06/2011 15:32, James Talbut wrote: On Thu, Jun 09, 2011 at 10:13:00PM +0800, Willem Jiang wrote: Maybe it relates to the openjdk. Can you try the latest SUN/Oracle JDK 1.6 to run the test ? That's possible, I should be able to try later

Re: Build break in camel-jetty

2011-06-09 Thread Jim Talbut
On 09/06/2011 15:32, James Talbut wrote: On Thu, Jun 09, 2011 at 10:13:00PM +0800, Willem Jiang wrote: Maybe it relates to the openjdk. Can you try the latest SUN/Oracle JDK 1.6 to run the test ? That's possible, I should be able to try later today. I've also tried on Windows 7 and that works

Re: Build break in camel-jetty

2011-06-09 Thread Jim Talbut
On 09/06/2011 05:40, Claus Ibsen wrote: Hi Yeah. We have not seen this error on the other OS. Do you get this error if you run the test multiple times? On Wed, Jun 8, 2011 at 9:21 AM, Jim Talbut wrote: Environmet: Apache Maven 2.2.1 (rdebian-4) Java version: 1.6.0_22 Java home: /usr/lib/jvm

Build break in camel-jetty

2011-06-08 Thread Jim Talbut
Environmet: Apache Maven 2.2.1 (rdebian-4) Java version: 1.6.0_22 Java home: /usr/lib/jvm/java-6-openjdk/jre Default locale: en_GB, platform encoding: UTF-8 OS name: "linux" version: "2.6.38-8-generic" arch: "amd64" Family: "unix" Source: URL: https://svn.apache.org/repos/asf/camel/trunk Reposito

Re: Camel Web Console Questions

2011-06-02 Thread Jim Talbut
On 26/05/2011 13:13, James Strachan wrote: On 26 May 2011 12:57, Jim Talbut wrote: Yeah. How about /camel/{contextId}/routes/{routeId} I picked /camel as the root URI for all contexts so that we can then mix this web app with other web apps showing other things without clashing James I&#x

Re: email listener

2011-05-26 Thread Jim Talbut
Some time ago someone wrote here about an actual SMTP listener component for Camel, I think it was part of Apache James. The project that made me interested in it got canned, so I don't know whether it ever vecame usable. Jim On 26/05/2011 21:57, Donald Whytock wrote: from("pop3://m...@emailh

Re: Camel Web Console Questions

2011-05-26 Thread Jim Talbut
On 26/05/2011 11:51, James Strachan wrote: Also we don't need to rewrite camel-web just to provide support for multiple contexts; all thats really required is one or two resource beans using the OSGi or JMX API to discover the contexts and a template page or two and multiple contexts could be sup

Re: Camel Web Console Questions

2011-05-26 Thread Jim Talbut
Tarun, I'm just another user, but I've recently been trying to turn camel-web into something that suits my needs. There are certainly problems with camel-web, but I'm not convinced that Tarun's heading in completely the right direction. The two big problems with camel-web for me are: 1. I u

Attaching a to a

2011-02-21 Thread Jim Talbut
Hi, Is there any way to attach a route (from one spring XML file) to a camelContext (defined in another at an earlier time)? I'm thinking, for example, of an OSGi situation where I want to add a route to a predefined context without writing code. Is there any fundamental reason why there couldn

Re: Camel Tracer impedes performance.

2011-02-17 Thread Jim Talbut
On 17/02/2011 11:58, Naira & Kobo wrote: I am curious, is it the TraceEventHandler that impedes the performance or the TraceInceptor or the InterceptStrategy? Well it's definitely not the TraceEventHandler, because unless you provide one, there isn't one. Beyond saying that if you want a defin

Re: Camel Tracer impedes performance.

2011-02-17 Thread Jim Talbut
On 17/02/2011 11:21, Naira & Kobo wrote: Thanks a lot for your response. Whats is the name of the default trace event handler used by camel tracer? I 'd like to take a look at that class and see how I can optimize it. I will actually prefer if messages intercepted and logged in a separate thr

Re: Camel Tracer impedes performance.

2011-02-17 Thread Jim Talbut
On 17/02/2011 10:01, Naira & Kobo wrote: Hi, I noticed that extending the camel tracer to log exchange data into the database impedes performance on the ESB. I followed the example in the camel samples, where I defined a direct endpoint http://ca

Re: Camel webconsole in Karaf

2011-02-03 Thread Jim Talbut
Does the camel-web allow management of multiple camel contexts (yet)? Without that I'm intrigued as to how it's being used with OSGi - a separate OSGi process for each camel context? Jim On 03/02/2011 09:28, Claus Ibsen wrote: On Wed, Feb 2, 2011 at 7:19 PM, Bengt Rodehav wrote: I mostly u

Re: Clustering with camel-quartz

2010-06-24 Thread Jim Talbut
On 25/06/2010 06:17, Claus Ibsen wrote: I think the reason is the scheduler is started before the other routes has been fully started. And quartz starts very quick. We could add an option so you can configure a delay option so it can be started with delay. It has a startDelayed method: http://ww

Re: When will the camel features.xml file for Apache karaf support Spring 3.X?

2010-05-09 Thread Jim Talbut
a Feature to support Spring 3.x and Spring 2.5.x at the same time. Maybe we can create a new feature in camel which uses the Spring 3.x directly, in this way we don't need to wait for Karaf. Willem Jim Talbut wrote: Hi, When will the camel features.xml file for Apache karaf support S

When will the camel features.xml file for Apache karaf support Spring 3.X?

2010-05-09 Thread Jim Talbut
Hi, When will the camel features.xml file for Apache karaf support Spring 3.X? I'm guessing that the answer is: when Karaf supports Spring 3.X itself. It would be useful to have the option now, as it is in order to use Spring 3.X in Karaf I have to manually hack a few features files. Thanks

Re: Camel SMTP Server

2010-05-04 Thread Jim Talbut
On 03/05/2010 18:00, Norman Maurer wrote: Hi Jim, sorry for the delay.. Job was just crazy over the last week. Anyway are you still interested in a smtp camel component ? I'm currently writing the code and will have it avaible soon. Maybe there is a place in camel itself for it ? Bye, Norman

Re: Camel SMTP Server

2010-04-20 Thread Jim Talbut
ss it via camel route without use JMS at all. Maybe this is what you are looking for ? Bye, Norman 2010/4/20 Jim Talbut: Is there a camel smtp server component? i.e. I want to recieve mails via SMTP and then pass them on to the route, not have them stored in a mail server and picked up by

Camel SMTP Server

2010-04-20 Thread Jim Talbut
Is there a camel smtp server component? i.e. I want to recieve mails via SMTP and then pass them on to the route, not have them stored in a mail server and picked up by a POP/IMAP poll. If not, is there any reason for the absence other than the lack of a suitable library? Thanks Jim

Test failure in HawtDBAggregateLoadAndRecoverTest

2010-04-12 Thread Jim Talbut
Following an "svn up" (to 933112) this morning, I'm seeing a failure in HawtDBAggregateLoadAndRecoverTest.. I haven't looked into this further yet (working over remote desktop, not entirely pleasant). This is with a virgn codebase, I haven't got any changes in it. When I just ran the test by its

Possible to have a unit test in camel-core that uses spring?

2010-03-30 Thread Jim Talbut
Hi, I'm working on this: https://issues.apache.org/activemq/browse/CAMEL-2563 and I want to have a unit test for it that tests that I can configure the tracer using spring, but I don't think this is possible. Am I right? All the tests I can find using spring reference one or more of camel-tes

Re: Building camel from source deletes C:\Temp\*

2010-03-26 Thread Jim Talbut
On 26/03/2010 08:12, Claus Ibsen wrote: Its your stupidity to store files you want to keep in the TEMP folder. I don't see much point in hurling abuse about it: you accept that your code shouldn't delete files that it didn't create and I'll accept that I ought to organise my files better.

Re: Building camel from source deletes C:\Temp\*

2010-03-26 Thread Jim Talbut
On 25/03/2010 08:02, Claus Ibsen wrote: Well the temp folder is there for a reason since its a temp folder. If you want to keep stuff use a NON temp folder :) That's just a joke isn't it - the folder C:\Temp is not %TMP% or %TEMP%; there is nothing giving an application permission to delete

Building camel from source deletes C:\Temp\*

2010-03-24 Thread Jim Talbut
Hi, Building camel from source on Windows (Vista 64 bit) deletes everything in C:\Temp\* I think it's one of the unit tests but a quick look hasn't shown up which. That is a major bad thing for it to do - it's deleted lots of things from my machine that I did not want to lose. Jim

Re: Unable to throw Soap Fault

2010-03-24 Thread Jim Talbut
Hi, I'm no expert on this, but have you tried setting it as an exception instead? This is working for me: public class SoapFaultConversionProcessor implements Processor { private static final String ANONYMOUS_FAULT_STRING = "An unexpected error has occured."; private static final Logger

Re: Modifying SOAP:Fault errors raised by endpoints

2010-03-19 Thread Jim Talbut
TracedExchange method was removed a bit later. I have adde a ticket to track this https://issues.apache.org/activemq/browse/CAMEL-2556 On Wed, Mar 17, 2010 at 7:06 PM, Jim Talbut wrote: I'm sorry, but I'm afraid I must be missing something. You say "just use your own JPA code to

Re: Modifying SOAP:Fault errors raised by endpoints

2010-03-17 Thread Jim Talbut
your own JPA code to persist the message instead of the out of the box feature. On Sat, Mar 13, 2010 at 9:54 AM, Jim Talbut wrote: On 13/03/2010 07:36, Claus Ibsen wrote: On Sat, Mar 13, 2010 at 8:27 AM, Jim Talbut wrote: Willem, Ah. I still have no idea how the TypeConve

Re: Modifying SOAP:Fault errors raised by endpoints

2010-03-13 Thread Jim Talbut
On 13/03/2010 07:36, Claus Ibsen wrote: On Sat, Mar 13, 2010 at 8:27 AM, Jim Talbut wrote: Willem, Ah. I still have no idea how the TypeConverter is being called, but it's working great :). I can make my SOAP:Fault converter into an interceptor, which has the benefit of making the r

Re: Modifying SOAP:Fault errors raised by endpoints

2010-03-12 Thread Jim Talbut
eed to add TypeConverter[2] to turn the CxfPayLoad object into String. [1]http://svn.apache.org/viewvc?rev=920708&view=rev [2]http://camel.apache.org/type-converter.html Willem Jim Talbut wrote: Thanks Willem. Whilst that change will solve my particular problem, wouldn't it be bet

Re: Modifying SOAP:Fault errors raised by endpoints

2010-03-09 Thread Jim Talbut
mation, it just redirect the input stream. PAYLOAD and POJO DataFormat will give you the exception that you want. Willem Jim Talbut wrote: On 07/03/2010 20:08, Jim Talbut wrote: exchange.getIn().On 07/03/2010 07:05, Claus Ibsen wrote: Hi You can enable the soapFault=true on the CamelCont

Re: Modifying SOAP:Fault errors raised by endpoints

2010-03-08 Thread Jim Talbut
t the input stream. PAYLOAD and POJO DataFormat will give you the exception that you want. Willem Jim Talbut wrote: On 07/03/2010 20:08, Jim Talbut wrote: exchange.getIn().On 07/03/2010 07:05, Claus Ibsen wrote: Hi You can enable the soapFault=true on the CamelContext which turns faults

Re: Modifying SOAP:Fault errors raised by endpoints

2010-03-07 Thread Jim Talbut
On 07/03/2010 20:08, Jim Talbut wrote: exchange.getIn().On 07/03/2010 07:05, Claus Ibsen wrote: Hi You can enable the soapFault=true on the CamelContext which turns faults into exceptions. Or you can simply add a processor step at the end of your route, and check if the exchange is a fault

Re: Modifying SOAP:Fault errors raised by endpoints

2010-03-07 Thread Jim Talbut
exchange.getIn().On 07/03/2010 07:05, Claus Ibsen wrote: Hi You can enable the soapFault=true on the CamelContext which turns faults into exceptions. Or you can simply add a processor step at the end of your route, and check if the exchange is a fault public void process(Exchange exchange) { b

Modifying SOAP:Fault errors raised by endpoints

2010-03-06 Thread Jim Talbut
Hi, I have a route that looks like this: from( sourceEndpoint ) .onException( java.lang.Throwable.class ).process( new Processor() { public void process(Exchange exchange) throws Exception {