Re: Enabling tracing in production

2010-11-02 Thread huntc
Christian Mueller wrote: > > The "-trace" option 'only' enables the tracing functionality. There is no > '-disable-trace' option what is what you need (if you configure a Tracer > but > it should not trace anything)... > Shall I raise an issue on JIRA? I think that the -trace option is complet

Re: Enabling tracing in production

2010-11-01 Thread huntc
Hi Christian, Thanks for your reply. I was hoping that they'd be a way that I could do it via external configuration. I guess I could create a "trace" property set from my external properties file and have Spring substitute it. However I was hoping that the "-trace" option to the Main class woul

Re: Enabling tracing in production

2010-11-01 Thread huntc
So, back to my original question then... If I declare the following in my Spring context: ...and nothing else at all, then tracing is enabled. So how do I then turn off tracing for production mode without having to modify my context? Kind regards, Christopher -- View this message in con

Re: Enabling tracing in production

2010-10-30 Thread huntc
Richard Kettelerij wrote: > > You don't have to add a Tracer to your Spring context yourself. Camel adds > one automatically if you have a CamelContext declared in Spring. Also your > don't have to do anything with the "trace" option in your Spring context. > This was not my experience. Are you

Enabling tracing in production

2010-10-29 Thread huntc
Hi there, I'm having difficulty understanding how the tracing facility can be applied at runtime in production; perhaps it cannot be. If I declare the following in my Spring context: ...and nothing else at all, then tracing is enabled. So how do I then turn off tracing for production mode wi

Re: camel tracing !!

2010-10-29 Thread huntc
In addition you should just be able to add a -trace option to the invocation of your java command e.g.: java org.apache.camel.spring.Main -trace (note that the -trace must come after the main class declaration as it isn't a standard Java option). More info: http://camel.apache.org/tracer.html (

Re: JSR-330 for configuring Camel Dependency Injection (DI)

2010-09-21 Thread huntc
Hi guys, Thanks for your responses. I realise that Camel is not an IoC container, but it might be a useful feature for Camel's classes to "lend themselves" to becoming auto injectable in a standardised way i.e. by following JSR-330. What'd think? Kind regards, Christopher -- View this message

JSR-330 for configuring Camel Dependency Injection (DI)

2010-09-21 Thread huntc
Has anyone used JSR-330 annotations in place of Spring XML for configuring Camel? If so then would you be able to report back on your experience and perhaps point to some example usage? I find the idea of configuring DI using JSR-330 quite attractive; in a similar vein to Java being used to conf

Re: CXFRS consumers - is there a better way?

2010-09-11 Thread huntc
Hi Willem, Just a FYI, I've resolved this issue and provided a patch on the JIRA issue. Let me know if you think it warrants a test case as I found it pretty trivial to implement. Kind regards, Christopher -- View this message in context: http://camel.465427.n5.nabble.com/CXFRS-consumers-is-th

Re: CXFRS consumers - is there a better way?

2010-09-10 Thread huntc
Hi Willem, Thanks for the response. I've now raised a JIRA at https://issues.apache.org/activemq/browse/CAMEL-3117 https://issues.apache.org/activemq/browse/CAMEL-3117 . Kind regards, Christopher -- View this message in context: http://camel.465427.n5.nabble.com/CXFRS-consumers-is-there-a-bet

Re: CXFRS consumers - is there a better way?

2010-09-10 Thread huntc
OK, previously I specified a provider in the providers element of a cxf:rsServer element. How do I now specify a provider when using cxfbean? This is what I had when using cxfrs:

Re: CXFRS consumers - is there a better way?

2010-09-10 Thread huntc
Gosh, how did I miss that... I've now updated the non-bean CXF pages of the Wiki to emphasise the benefits of using the bean component with a short note at the top of each page. -- View this message in context: http://camel.465427.n5.nabble.com/CXFRS-consumers-is-there-a-better-way-tp2834502p283

CXFRS consumers - is there a better way?

2010-09-09 Thread huntc
Hi there, I've been using the Camel CXFRS component and I have to say that I've found the learning curve steep. Perhaps this is due to not being familliar with CXF. Regardless, given my high level of familiarity with Camel and general experience, implementing a RESTful JSON endpoint was just too

Re: CXFRS and concurrency

2010-09-09 Thread huntc
Thanks again Willem. OK, nearly there... how does the rsServer configuration in my Spring XML relate to the httpj configuration? At the present, I have an rsServer declaration and nothing else. Kind regards, Christopher -- View this message in context: http://camel.465427.n5.nabble.com/CXFRS-a

Re: CXFRS and concurrency

2010-09-09 Thread huntc
Thanks Willem. I'm using a declaration - does that mean I'm using the cxf-http-jetty-transport? How many threads should I expect to be configured in the cxfrs consumer by default, and how can this configuration be changed? Kind regards, Christopher -- View this message in context: http://came

CXFRS and concurrency

2010-09-09 Thread huntc
Hi there, I'm interested in the throughput characteristics of a CXFRS consumer endpoint. What I'd like to understand specifically is how many threads are configured for the endpoint and whether the async API is being utilised in dispatching the requests as they come in. I couldn't find any menti

Re: Problem with maintaining a JMS subscription after waking from sleep

2010-06-25 Thread huntc
Hi Claus, I'm not quite sure how creating a property in my pom file influences the version of Spring that Camel depends on... did you mean a classifier on my Camel dependency declarations? Sorry if I'm missing something here... Kind regards, Christopher -- View this message in context: http:/

Re: Problem with maintaining a JMS subscription after waking from sleep

2010-06-24 Thread huntc
Claus Ibsen-2 wrote: > > I think we can fix the issue with a custom exceptionListener which > fixes the null message. > > Can you test it by creating a custom javax.jms.ExceptionListener class > and then set the message to a non null value. > > And in Camel you can register the listener using

Re: Problem with maintaining a JMS subscription after waking from sleep

2010-06-23 Thread huntc
Hi Willem, Willem.Jiang wrote: > > Hi, > > As Camel is used within ActiveMQ and ServiceMix, we can't just upgrade > Spring version in Camel. > But there is spring3 profile in camel parent/pom.xml, you can build > camel with spring 3.0.3.RELEASE with that profile if you like. > > Sounds to

Re: Problem with maintaining a JMS subscription after waking from sleep

2010-06-23 Thread huntc
Claus Ibsen-2 wrote: > > No you can replace the spring jars. > Upgrading to Spring 3.0.3.RELEASE fixes the problem. Should we move Camel to Spring 3? Kind regards, Christopher -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-maintaining-a-JMS-subscription-aft

Re: Problem with maintaining a JMS subscription after waking from sleep

2010-06-23 Thread huntc
Claus Ibsen-2 wrote: > > Can you post a bit more on the stacktrace? Maybe we can find a spot in > the camel-jms component to workaround this issue by setting an non > null message on the JmsException. This may help prevent this spring > bug. > Hi Claus, That was the entire stack trace I'm afr

Re: Problem with maintaining a JMS subscription after waking from sleep

2010-06-23 Thread huntc
After a little more research, I think its because the version of Spring we're using has this bug: https://jira.springsource.org/browse/SPR-5275 Any recommendations? Kind regards, Christopher -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-maintaining-a-JMS-subs

Re: Problem with maintaining a JMS subscription after waking from sleep

2010-06-23 Thread huntc
I've just made a discovery on my own machine. Looks as though this issue may actually be related to Spring. What I did was start up a broker, start up my application that subscribes to a topic, shutdown the broker and: Exception in thread "DefaultMessageListenerContainer-1" java.lang.NullPointer

Re: Problem with maintaining a JMS subscription after waking from sleep

2010-06-23 Thread huntc
Just for the record, I've updated the broker to 5.3.2 as well. I'm now using the latest of everything. I shall now start looking at the Camel component... -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-maintaining-a-JMS-subscription-after-waking-from-sleep-tp510

Re: Problem with maintaining a JMS subscription after waking from sleep

2010-06-21 Thread huntc
OK, upgrading to AMQ 5.3.2 didn't help either. Help! -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-maintaining-a-JMS-subscription-after-waking-from-sleep-tp510193p510536.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Problem with maintaining a JMS subscription after waking from sleep

2010-06-21 Thread huntc
Hi Willem, Thanks for that. Just to note that upgrading to Camel 2.3.0 did not change the outcome i.e. my application failed to re-connect to the topic upon waking up. I have now built and deployed a release using 5.3.2 AMQ artefacts so we'll see if that makes any difference (I shall know in abo

Re: Problem with maintaining a JMS subscription after waking from sleep

2010-06-20 Thread huntc
I was using Camel 2.2.0 so I've now upgraded to 2.3.0 in the hope that the problem may go away. My other thought is to upgrade the camel-activemq component. I noticed that I'm using activemq-camel:5.2.0 as per the doco. and that this brings in activemq-core:5.2.0 and activemq-pool:5.2.0. This is

Problem with maintaining a JMS subscription after waking from sleep

2010-06-18 Thread huntc
Hi there, I think this may be an Active/MQ issue, but I'm posting here too as it is the Camel ActiveMQComponent that I'm using. I have a broker on machine A that publishes a topic for machine B to subscribe to. Machine A shuts down each night at 12am and powers up at 5am. Machine B sleeps at 12

Monitoring tools for Camel/JMX applications

2010-05-13 Thread huntc
Hi there, Any recommendations for monitoring Camel applications i.e. JMX based applications? I've been playing around with the open source version of Hyperic but haven't quite managed to make it report on my Camel application. Kind regards, Christopher -- View this message in context: http://o

Camel Hyperic Agent plugin anyone?

2010-05-13 Thread huntc
Just wondering if anyone has created some plugin xml for a Hyperic Agent that they'd be willing to share... Kind regards, Christopher -- View this message in context: http://old.nabble.com/Camel-Hyperic-Agent-plugin-anyone--tp28555615p28555615.html Sent from the Camel - Users mailing list archi

Re: Transactional Camel Bean component : Should we define a transacted camel route or not ?

2010-05-13 Thread huntc
I would say so only if the scope of the transaction is beyond the DAO (presuming the bean is a DAO). Most, actually all, of what I've done ends up having the transactions atomically scoped by DAO methods (which in turn use the Spring @Transaction annotation). -- View this message in context: ht

Re: The timing of the timer component

2010-03-10 Thread huntc
Hi Claus, I understand that route order can be configured explicitly. However should a route start up and start firing during configuration of the routes? Intuitively, I wouldn't have thought so. Kind regards, Christopher -- View this message in context: http://old.nabble.com/The-timing-of-the

Re: single tcp connection with async requests and async responses

2010-03-10 Thread huntc
In terms of development time, this would depend on your familiarity with MINA I guess. My personal take is to utilise the existing Camel component. I think your custom component would end up looking quite simple and skinny. You can load balance custom components as you can any other type of compo

Re: single tcp connection with async requests and async responses

2010-03-10 Thread huntc
I do not recommend extending the MINA component. My recommendation is for you to roll your own component from scratch. This component should obtain the MINA endpoint and invoke its consumers and producers. You could do this within a Processor but writing a component should structure your code mor

Re: single tcp connection with async requests and async responses

2010-03-10 Thread huntc
There's no high level method that I can think of. I find that quite often, when dealing with TCP endpoints as you've described, you probably need to think about wrapping everything up into your own component. -- View this message in context: http://old.nabble.com/single-tcp-connection-with-async

Re: single tcp connection with async requests and async responses

2010-03-10 Thread huntc
Firstly if you need to guarantee just one tcp connection as per a connection-oriented protocol then you'll need to follow this recipe: http://camel.apache.org/fine-grained-control-over-a-channel.html You can send multiple requests by reading from a queue (perhaps consider using a http://java.su

The timing of the timer component

2010-03-10 Thread huntc
Hi there, Could it be that when the timer component is used it starts firing before all of the routes have been configured? I had a race condition where on one machine Camel complained that route X (produced to by a timer consumer) wasn't established. On another machine though it was fine. Movin

Re: requestBodyAndHeader and HEADER_CLOSE_SESSION_WHEN_COMPLETE

2010-01-26 Thread huntc
Hi Claus, I have now created a Cookbook recipe explaining this use case. http://cwiki.apache.org/confluence/display/CAMEL/Fine+Grained+Control+Over+a+Channel Kind regards, Christopher -- View this message in context: http://old.nabble.com/requestBodyAndHeader-and-HEADER_CLOSE_SESSION_WHEN_COM

Re: Jetty Security Handler

2010-01-23 Thread huntc
Hi, I needed to adorn my own authorisation policy to Jetty endpoints a while back and so we subsequently modified the component. Take a look at http://camel.apache.org/jetty.html and the section entitled "Jetty handlers and security configuration". The approach uses JAAS. Maybe this will be use

Re: camel and too many threads?

2010-01-23 Thread huntc
Could it be this: http://camel.apache.org/why-does-camel-use-too-many-threads-with-producertemplate.html -- View this message in context: http://old.nabble.com/camel-and-too-many-threads--tp27285126p27289273.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: requestBodyAndHeader and HEADER_CLOSE_SESSION_WHEN_COMPLETE

2010-01-23 Thread huntc
Hi Claus, I'm happy to create a ticket of course, however I'm not clear on what the resolution is. I am not sure that implementing a "disconnect" URI option is the way to go though as per FTP. My use case is that I want to establish a connection, send multiple messages within a loop through that

Re: requestBodyAndHeader and HEADER_CLOSE_SESSION_WHEN_COMPLETE

2010-01-22 Thread huntc
Hi guys, Turns out that I'm using MinaProducer and not MinaConsumer of course; MinaConsumer is the one that has the HEADER_CLOSE_SESSION_WHEN_COMPLETE logic and MinaProducer isn't so capable by the looks of it. I was hoping that stopping the template by calling its stop method would in turn caus

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:

requestBodyAndHeader and HEADER_CLOSE_SESSION_WHEN_COMPLETE

2010-01-15 Thread huntc
Hi there, Is the following code valid... my goal is to ensure that the MINA connection I'm using is closed upon having received a reply: Object replyMessage = producerTemplate .requestBodyAndHeader( smsSenderEndpoint, requestMessage, MinaConsumer.HEADER_CLOS

Re: Retrieving MailMessage bodies as DataHandler objects

2010-01-14 Thread huntc
Claus Ibsen-2 wrote: > > You can get access to the underlying javax.mail.Message... > Thanks Claus. I'm now trying out the following and just waiting for another message to come through: // See if our exchange body contains the calendar object. javax.mail.Message mailMessage = exchange.ge

Re: Retrieving MailMessage bodies as DataHandler objects

2010-01-14 Thread huntc
willem.jiang wrote: > > Camel Message has getAttachements() method which can help you get the > DataHandlers. > Thanks Willem - I know about the attachments. My case is where I'm dealing with a single part message and its not text content i.e. its text/calendar. -- View this message in contex

Retrieving MailMessage bodies as DataHandler objects

2010-01-13 Thread huntc
Hi there, Supposing that I receive an Exchange using Camel Mail and I want to see whether the body is of the required MIME type; is it valid to do this: // See if our exchange body contains the calendar object. DataHandler bodyDataHandler = exchange.getIn().getBody( DataHandl

Re: Startup invocation of a route

2009-12-29 Thread huntc
Claus Ibsen-2 wrote: > > On Tue, Dec 29, 2009 at 12:29 AM, huntc wrote: > > Just a note. Do you want the route to trigger *only* when CamelContext > has just been started? > What if you stop and start the route later, eg using JMX? > Having the route fired off in this

Re: Startup invocation of a route

2009-12-29 Thread huntc
Stephen Gargan wrote: > > Claus has got you covered ;) > How could I have doubted him! Stephen Gargan wrote: > > There is an EventNotification mechanism > that you can use... > This works beautifully. Thanks so much. -- View this message in context: http://old.nabble.com/Startup-invocat

Re: Startup invocation of a route

2009-12-28 Thread huntc
Hi Stephen, Thanks for your response. I do understand the use of the direct component, but thanks for the explanation any how. I guess using the Spring Events mechanism will get me there, but it'd be nice to codify the solution in a way that remains agnostic of being invoked from Spring. I'm t

Startup invocation of a route

2009-12-28 Thread huntc
One thing that has always eluded me is how to specify that something be done immediately upon the CamelContext having started up. For example, I have a Quartz based service that executes every hour at 10 minutes past the hour. However when the CamelContext starts up I'd like this service to be in

mail component "no folder found" problem still around

2009-11-26 Thread huntc
I think that this problem may still be around with 2.1-SNAPSHOT: http://fusesource.com/forums/thread.jspa?threadID=746&tstart=0 I noticed that I had a pop3 server outage and then subsequently had a similar problem i.e. IllegalStateException, folder not open. Here's when the outage started.

IllegalStateException, folder not open on pop3 mail uri

2009-11-26 Thread huntc
I think that this problem may still be around with 2.1-SNAPSHOT: http://fusesource.com/forums/thread.jspa?threadID=746&tstart=0 I noticed that I had a pop3 server outage and then subsequently had a similar problem i.e. IllegalStateException, folder not open. Here's when the outage started.

IllegalStateException, folder not open on pop3 mail uri

2009-11-26 Thread huntc
I think that this problem may still be around with 2.1-SNAPSHOT: http://fusesource.com/forums/thread.jspa?threadID=746&tstart=0 I noticed that I had a pop3 server outage and then subsequently had a similar problem i.e. IllegalStateException, folder not open. Here's when the outage started.

Dynamically re-schedule a timer or quartz endpoint

2009-11-25 Thread huntc
Hi there, Is there a way to dynamically program a timer or quartz endpoint such that we can modify when it should fire next? Kind regards, Christopher -- View this message in context: http://old.nabble.com/Dynamically-re-schedule-a-timer-or-quartz-endpoint-tp26524123p26524123.html Sent from th

Re: Quartz dependency missing for 1.6.6

2009-11-22 Thread huntc
Perhaps there's something that I don't understand about Nexus here, but if I use my public-snapshots profile then I see that Maven searches as follows: nexus (http://repo.classactionpl.com:8081/nexus/content/groups/public), nexus-public-snapshots (http://repo.classactionpl.com:8081/nexus/cont

Re: Quartz dependency missing for 1.6.6

2009-11-22 Thread huntc
Hi Claus, I think that the problem was that I did not have your repo configured as a proxy in Nexus. If I wasn't using Nexus then things probably would have worked straight away. I'll conduct some more tests this morning. However it would still be a good idea to remove that your repo dependency.

Re: getEndpoints deprecated for 2.1 - please advise why

2009-11-22 Thread huntc
Hi Claus, Claus Ibsen-2 wrote: > > On Sun, Nov 22, 2009 at 7:38 AM, huntc wrote: > There are plenty of other methods on CamelContext to get endpoints. So > use any of those. > We are trimming down the number of methods on the context to remove > methods which are very rar

Re: Quartz dependency missing for 1.6.6

2009-11-22 Thread huntc
I performed an install via my local Nexus repo - perhaps that confused things (may be I'd misconfigured something there - or perhaps I need to add the fuse repo to my local Nexus instance). That said, perhaps it'd be worth getting the Opensymphony guys to upload 1.6.6 to the central repo in case

getEndpoints deprecated for 2.1 - please advise why

2009-11-21 Thread huntc
Hi, I'm using the following method on the camel context: Collection cardReaderEndpoints = exchange.getContext().getEndpoints(bgReaderListenerURI); I note that with 2.1 this is marked as being deprecated. The source code states: makes no sense, is removed in Camel 2.2 Well, the deprecat

Quartz dependency missing for 1.6.6

2009-11-21 Thread huntc
Hi guys, I'm attempting to build against the 2.1-SNAPSHOT at the moment and experience: Missing indirectly referenced artifact opensymphony:quartz:jar:1.6.6:compile I see that 1.6.6 is a fairly new release and may not yet have made it to any well known repos. Any advice on this? Kind regards,

No asyncSendBodyandHeaders in Camel 2.0?

2009-10-05 Thread huntc
Hi there, Is there a good reason for there not be an asyncSendBodyandHeaders - the equiv. exists for requesting... Kind regards, Christopher -- View this message in context: http://www.nabble.com/No-asyncSendBodyandHeaders-in-Camel-2.0--tp25749971p25749971.html Sent from the Camel - Users (act

Camel 2.0 jms producer/consumer log indications around replies and persistence

2009-08-29 Thread huntc
Hi there, I've just noted something non-intuitive in the Camel 2.0 debug logs that'd be great to have explained. My scenario is that I wish to send out an exchange to a JMS queue endpoint. I require persistence of the exchange by the broker. I do not require a response. Similarly the queue is t

Re: Aggregator not working for me in 2.0

2009-08-29 Thread huntc
Many apologies - I found the problem. I thought that I was checking to see if the old exchange was null in my aggregation strategy. I was actually checking the body of the old exchange for null and thus a null pointer exception must have been thrown somewhere. -- View this message in context: ht

Aggregator not working for me in 2.0

2009-08-29 Thread huntc
Hi there, I'm in the process of migrating one of my applications to Camel 2 and have noticed that my aggregator is not working (it was working before). Here it is: from("jms-receiver:com.classactionpl.saveGPSTrackerCollection") .aggregate(gpsTrackerCollectionMer

multipart/x-mixed-replace and Jetty

2009-08-11 Thread huntc
Hi there, Has anyone tried streaming server content via the Jetty component and using multipart/x-mixed-replace content types? Indeed is this a viable mechanism to stream content via Camel? Thanks. Christopher -- View this message in context: http://www.nabble.com/multipart-x-mixed-replace-an

cometd vs jetty component

2009-08-11 Thread huntc
Hi there, I've just discovered the cometd component for Camel 2. Fantastic! However I wonder if the cometd's component interface should be regarded as a superset of the jetty component interface. I realise that the component's implementations may need to be different but I think that their inter

Re: Hello community

2009-07-30 Thread huntc
Ah yes - summer in the northern hemisphere appears to be why the list has quietened. Of course, it is winter down here in Australia so we're busy as ever! -- View this message in context: http://www.nabble.com/Hello-community-tp24735480p24747465.html Sent from the Camel - Users (activemq) mailin

seda uris for producers and consumers

2009-07-30 Thread huntc
Hi there, I just used the concurrentConsumers parameter of the seda component and fell into the trap of not including parameters in the producer URI. Having to have the producer and consumer specify the same parameters seems troublesome and non-intuitive. Additionally the producer URI shouldn't

Hello community

2009-07-30 Thread huntc
Traffic appears to have quietened on this forum recently - any known reason why? -- View this message in context: http://www.nabble.com/Hello-community-tp24735480p24735480.html Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.

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

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

Disabling stream caching for multicast in 1.6.1

2009-07-09 Thread huntc
Hi there, Is it possible to disable stream caching when using multicast via the fluent builder api in 1.6.1? Kind regards, Christopher -- View this message in context: http://www.nabble.com/Disabling-stream-caching-for-multicast-in-1.6.1-tp24409674p24409674.html Sent from the Camel - Users (ac

JMS publish consuming sockets?

2009-07-08 Thread huntc
Hi guys, I've just noticed a problem with my 1.6.0 based application. I believe it may be establishing a connection with AMQ for the purposes of publishing on a topic, and then while retaining that connection, opening another connection the next time it needs to publish. This is just a hypothesis

Continuations and direct components

2009-06-17 Thread huntc
Hi there, Given the following code: from("jetty:http://0.0.0.0:9000/myurl";) .inOut("direct:getSomething"); Will a jetty continuation become suspended and thus release its thread while "direct:getSomething" does its work, and then become active once "direct:getSomething" replies? I'm hop

Re: Avoiding type conversions with the direct component

2009-06-16 Thread huntc
Yes, it looks as though it is the stream cache, but what's interesting is that you can't disable the stream cache if you're using the default error handler: http://www.nabble.com/Re%3A-StreamCaching-in-Camel-1.6-to22305858.html So you've effectively got to disable the error handler for a route i

Avoiding type conversions with the direct component

2009-06-16 Thread huntc
Hi there, Quick (probably dumb) question. I'm looking to avoid a type conversion while using the direct: component. I've been of the opinion that using the direct: component is a nice way to break up my routes into nicely separated chunks. However I now find that sending a body with one of my (l

Re: throwFault deprecated - what is the equivalent for 1.x?

2009-05-25 Thread huntc
I presume that setFaultBody has the same behaviour as throwFault right? My goal is to throw an exception and have the message got to the dead letter channel for retry processing. Thanks again. -- View this message in context: http://www.nabble.com/throwFault-deprecated---what-is-the-equivalent

Re: throwFault deprecated - what is the equivalent for 1.x?

2009-05-25 Thread huntc
Thanks Claus. I presume you meant: .setFaultBody(constant("Unknown notification sent by fingerprint reader")) -- View this message in context: http://www.nabble.com/throwFault-deprecated---what-is-the-equivalent-for-1.x--tp23717019p23717251.html Sent from the Camel - Users (activemq) mailing l

Re: throwFault deprecated - what is the equivalent for 1.x?

2009-05-25 Thread huntc
Hi Claus, There is a setFaultBody and a setFaultHeader but I am not sure of how to use these in place of throwFault. Do you have an example? Here's what I presently do: ... .otherwise() .throwFault( "Unknown notification sent by fingerprint reader"); Thanks for your time. Kind regards,

throwFault deprecated - what is the equivalent for 1.x?

2009-05-25 Thread huntc
Hi there, Now that throwFault has been deprecated in 1.6.1, what should I be using to avoid strike throughs and warnings in my pretty code. :working: Christopher -- View this message in context: http://www.nabble.com/throwFault-deprecated---what-is-the-equivalent-for-1.x--tp23717019p23717019.h

Re: 1.6.1 spring namespace confusion

2009-05-25 Thread huntc
I shall update the wiki to reflect this situation unless there are objections. -- View this message in context: http://www.nabble.com/1.6.1-spring-namespace-confusion-tp23716403p23716923.html Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.

1.6.1 spring namespace confusion

2009-05-25 Thread huntc
Hi there, When using v.1.6.1 I find myself still having to use the old spring namespace i.e.: http://activemq.apache.org/camel/schema/spring ...which of course is contrary to the namespace recommended at: http://camel.apache.org/spring.html Does the wiki page need to be updated to reflect wha

Re: LDAP producers and re-entrancy

2009-05-02 Thread huntc
JIRA now raised: https://issues.apache.org/activemq/browse/CAMEL-1583 I shall write the patch very shortly. -- View this message in context: http://www.nabble.com/LDAP-producers-and-re-entrancy-tp23266701p23344787.html Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.

Re: LDAP producers and re-entrancy

2009-05-01 Thread huntc
Hi there, Any comments? I'm thinking that I'll patch the ldap component so that it obtains the context and closes it within the process method each time. Thoughts? Kind regards, Christopher -- View this message in context: http://www.nabble.com/LDAP-producers-and-re-entrancy-tp23266701p2334288

Re: HTTPS - help required

2009-04-27 Thread huntc
Hi there, Having found the need to be able to configure JAAS for my Camel Jetty component I made some changes on my system to JettyHttpComponent and JettyHttpEndpoint. These changes allow you to submit a Jetty Handler e.g. a security handler by referring to a handler bean in the Jetty URI e.g.:

LDAP producers and re-entrancy

2009-04-27 Thread huntc
Hi there, I was just playing around a bit more with the ldap component (I will write up that doco Claus!) and noticed that there is just one directory context being used per producer. I would have thought that a single producer instance be used by multiple threads... is this not the case? For ex

Re: Naming JMX artifacts from Java DSL

2009-04-13 Thread huntc
https://issues.apache.org/activemq/browse/CAMEL-1528 -- View this message in context: http://www.nabble.com/Naming-JMX-artifacts-from-Java-DSL-tp22986330p23033545.html Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.

Re: Naming JMX artifacts from Java DSL

2009-04-13 Thread huntc
Hi Claus, Yes, .id does exactly what I need. I think it is a useful method to keep as JMX is almost unusable without it - you have to trawl so many nodes In fact, I'd go as far as stating that I wouldn't bother creating a JMX node unless the programmer identifies it. If the node is important

Re: Storing context with exchanges

2009-04-13 Thread huntc
Thanks Claus - looks as though I'll have to wait for v2.0. -- View this message in context: http://www.nabble.com/Storing-context-with-exchanges-tp23017939p23033262.html Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.

Re: Naming JMX artifacts from Java DSL

2009-04-13 Thread huntc
Hi Claus, .id would have been great - however it is deprecated and not part of v2. Kind regards, Christopher -- View this message in context: http://www.nabble.com/Naming-JMX-artifacts-from-Java-DSL-tp22986330p23033229.html Sent from the Camel - Users (activemq) mailing list archive at Nabble.

Storing context with exchanges

2009-04-12 Thread huntc
I have two routes (A & B) that are in-out in nature. The client calls on A, A calls on B and then the reply is sent back from B to A and then back to the client. I'd like to store some context information relating to the client interaction with A and then have that available when B replies to A.

Naming JMX artifacts from Java DSL

2009-04-10 Thread huntc
Is there an easy way to name routes and processors when declaring them via the Java DSL? I would like to see some more meaningful names displayed via JMX. Thanks. -- View this message in context: http://www.nabble.com/Naming-JMX-artifacts-from-Java-DSL-tp22986330p22986330.html Sent from the Cam

Re: Router Blocked by full Destination Route Queue

2009-04-10 Thread huntc
Can you please provide the route's specification in code or XML. This will give us a better chance of answering your question. Having said that, sounds like you've got an internal seda queue... I would have thought that an exception would be thrown once the queue becomes full. By default a seda q

Re: Camel as a web server or Camel as part of a web server?

2009-04-07 Thread huntc
Great! Just what I was looking for! Thanks to both of you. On a side note for those who are interested in an example of serving up static resources in 1.x: from( "jetty:http://0.0.0.0:9080/images/plotdot9-ls.png";) .to("direct:getPNG"); from( "jetty:http://0.0.0

Camel as a web server or Camel as part of a web server?

2009-04-06 Thread huntc
Hey there, Does anyone have thoughts on using a stand-alone Camel application as a web server, or do people generally prefer packaging the Camel application in a WAR file? My use-case is that I have a web service provided by Camel and using the jetty component. This works nicely. However I want

Re: Is security support planned (JAAS, ACEGI, ...)

2009-03-25 Thread huntc
I'd like to dig up this old post in order to debate the topic of identity. More specifically what can be done to identify a consumer of a service provided by Camel, and then filter what this principal is allowed to see? Sounds like the JAAS domain but I've not yet got my head around how this shoul

Re: Mutual SSL authentication with Camel applications

2009-03-17 Thread huntc
Here's the promised blog entry: http://christopherhunt-software.blogspot.com/2009/03/mutual-ssl-authentication-and-ldap.html -- View this message in context: http://www.nabble.com/Mutual-SSL-authentication-with-Camel-applications-tp22490614p22558460.html Sent from the Camel - Users (activemq)

Re: Mutual SSL authentication with Camel applications

2009-03-17 Thread huntc
Hi Claus, Thanks for your reply. I forgot that I made this posting otherwise I would have sent through an update. I did post to the AMQ forum and then discovered for myself what the problem was - the java client consuming the services needed authenticated access to its keystore. I'm going to wr

Re: Mutual SSL authentication with Camel applications

2009-03-12 Thread huntc
By the way, here are some of the things I'm observing when attempting mutual authentication: 1. Wireshark shows: Client Hello Server Hello, Certificate, Certificate Request, Server Hello Done Certificate, Client Key Exchange Alert (Level: Fatal, Description: Bad Certificate) If I look at the Cer

  1   2   >