On 15 September 2013 05:36, Christian Posta christian.po...@gmail.com wrote:
Alex,
As Christian M. points out, use the camel config on the endpoint, not the
way you're doing in your OP.
Cheers
On Wed, Sep 11, 2013 at 6:03 AM, Alex Anderson a...@frontlinesms.comwrote:
On 10 September
On 10 September 2013 22:49, Christian Müller
christian.muel...@gmail.com wrote:
Did you tried setting the proxy host/port as we described here [1]?
Hi Christian,
Thanks for the suggestion. Do you mean something other than what I
referred to in my original post?
I'm writing some test code which uses and HTTP/HTTPS proxy to mock 3rd
party webservices.
For non-camel code, I configure the proxy using the java system properties:
http.proxyHost, http.proxyPort, https.proxyHost, https.proxyPort,
http.nonProxyHosts.
These settings seem to be ignored by camel,
On 5 February 2013 18:39, Henryk Konsek hekon...@gmail.com wrote:
Hi Alex,
When myBean.slip() throws SpecificException, If I print in.body in
handleSpecificException(), I can see that it is not null.
If I print it again in handleFailed() it is now null.
Actually I can't reproduce this
Henryk,
Sorry for the confusion - my error handler is written in Groovy, and
the definition of the exception handler is as follows:
// N.B. This method implicitly returns null
def exception(Exchange exchange) {
System.out.println(Exception: + exchange.getIn());
}
In Java this is
I have a route that looks like so:
onCompletion().onFailureOnly().beanRef('myBean', 'handleFailed')
from('seda:asdf')
.onException(SpecificException)
.beanRef('myBean', 'handleSpecificException')
.handled(false)
.end()
On 4 January 2013 17:26, Christian Müller christian.muel...@gmail.com wrote:
I think we don't have another camel component where the endpoint is a
consumer and producer. I'm not sure how/if it works or if we hit problems
in other areas (exception handling, ...).
We do this for the camel-smslib
Hi,
When my route is shutting down in Camel 2.9.2, I get a
NullPointerException on line 108 of SedaConsumer. The line reads:
LOG.debug(Preparing to shutdown, waiting for {} consumer threads
to complete., latch.getCount());
Is it possible that latch is null? Am I doing something wrong, or
This has been fixed. The issue is the seda consumer has not been
started prior to shutdown.
Thanks, Claus. Has the fix been released yet?
No will be in 2.9.3 and 2.10
Nice. I notice from JIRA that there aren't many issues left; is there
a date set for release?
On 9 May 2012 18:05, Claus Ibsen claus.ib...@gmail.com wrote:
On Wed, May 9, 2012 at 4:57 PM, rdifrango ron.difra...@gmail.com wrote:
There is an in flight registry you can see number of currently in
flight messages etc.
On 10 May 2012 11:28, Claus Ibsen claus.ib...@gmail.com wrote:
On Thu, May 10, 2012 at 10:06 AM, Alex Anderson a...@frontlinesms.com wrote:
On 9 May 2012 18:05, Claus Ibsen claus.ib...@gmail.com wrote:
On Wed, May 9, 2012 at 4:57 PM, rdifrango ron.difra...@gmail.com wrote
Hi Peter,
Thanks for the info. We're using RxTx and Java Serial with camel at
the moment, but specifically sending and receiving SMS via Hayes/AT
commands. Will keep an eye on MINA.
Alex
On 29 March 2012 19:21, c031917 peter.m...@knorr-bremse.com wrote:
Hi Alex,
no way today to collect
Hi Peter,
Out of interest, what's the current problem with ttyUSB? Are serial
ports not supported at all?
Alex
On 29 March 2012 18:49, Claus Ibsen claus.ib...@gmail.com wrote:
Camel 2.10 will have a camel-mina2 component.
On Thu, Mar 29, 2012 at 4:42 PM, c031917
Is it possible to get the ID of the current route from an Exchange, or
to have the routeId provided to a processor/beanRef method as an
argument?
On 23 March 2012 16:33, Claus Ibsen claus.ib...@gmail.com wrote:
Hi
You can use the tracer to help see where the headers dissappear
http://camel.apache.org/tracer
And see this FAQ as well
http://camel.apache.org/using-getin-or-getout-methods-on-exchange.html
Thanks, Claus. This helped me
. Currently the data is a bit scattered.
On Mon, Mar 26, 2012 at 11:14 AM, Alex Anderson a...@frontlinesms.com wrote:
Is it possible to get the ID of the current route from an Exchange, or
to have the routeId provided to a processor/beanRef method as an
argument?
--
Claus Ibsen
Hi, can I get a quick sanity check before we spend more time investigating?
We're using Camel 2.5.0 and have a setup like this: routing slip -
seda - processor
We set headers in our routing slip, and by the time the message has
hit the processor, the headers have been stripped. Is this expected
from( jms:request)
.process(new AddHeader())
.to(cxfrs://http://abc.com/; + header (test))
Have you tried:
.to(simple(cxfrs://http://abc.com/${header.test};))
Is it because the second example's URI starts http:0 - i.e. is
missing // after http:?
On 15 March 2012 09:49, asd09 nepa...@mail.ru wrote:
i wrote sample
route id=workingRoute autoStartup=true
from uri=timer:elsdfgsdfger?period=600/
setBody
groovy
Hi Claus Tuomas,
I faced a similar problem a couple of weeks ago and came to the
following solution:
The exception can be passed to a route in the Consumer like so:
public void handleEndpointException(EndpointException ex) {
Exchange exchange =
Hi Ashwin,
Thanks for your help on this. I ended up solving this by creating an
Exchange with the Exception attached, like so:
The exception can be passed to a route in the Consumer like so:
class MyConsumer { ...
public void handleEndpointException(EndpointException ex) {
, 2012 at 8:59 AM, Alex Anderson a...@frontlinesms.com wrote:
Hi Claus Tuomas,
I faced a similar problem a couple of weeks ago and came to the
following solution:
The exception can be passed to a route in the Consumer like so:
public void handleEndpointException(EndpointException ex
in this area in future.
Thanks,
Alex
On 22 February 2012 16:57, Claus Ibsen claus.ib...@gmail.com wrote:
On Wed, Feb 22, 2012 at 12:02 PM, Alex Anderson a...@frontlinesms.com wrote:
Thanks for the confirmation that this is ok, Claus. Are there any
other ways to do this within Camel, or would
Hi,
I'm working on an Endpoint which has a background service keeping it alive.
When this service fails, I would like the associated Exception (or a
derived Exception) to propagate to Camel so that it can be dealt with.
In the application I am working on, the behaviour in this case would
be to
Hi Ashwin,
Thanks for the tip.
If I have access to the Consumer, can I just call
`consumer.getExceptionHandler().handleException(new
ConnectException(...))`?
Alex
On 15 February 2012 18:00, Ashwin Karpe aka...@fusesource.com wrote:
Hi,
Since the Camel endpoint has no way of knowing whether
I'm working on a Camel component for SMSLib (http://www.smslib.org).
This is a Java library for communicating with mobile phones and modems
via a serial connection to send and receive SMS messages using the
Hayes (AT) command set.
I have a working prototype - you can see the source at
classes you need
Alex Anderson wrote
* are there any good resources for writing Endpoints that I should be
reading?
* does anyone know of any similarly-modelled components whose source
might provide guidance?
* are there any patterns or base classes that I should obviously be
using for my
have for you is how to you envision the unit testing for this
component? Is there a way to have a mock service provider? We obviously
cannot afford using a real service for the unit tests.
Cheers,
Hadrian
On 01/26/2012 09:21 AM, Alex Anderson wrote:
I'm working on a Camel component for SMSLib
29 matches
Mail list logo