Yes its by design the failed operation "rollback" so you can perform
redeliveries and whatnot, without having the exchange tangled with
side-effects and left overs from previous attempt.
The intent is that the data on exchange only changes if the operation
is success.
On Thu, Feb 11, 2016 at 6:41
Actually, in line with the above answer, the only way I found to set and
preserve headers in a catch block is to set the headers on the original message
acquired through the unit of work (which can be accessed through the exchange).
For example:
try{
//doing something awseome with my co
I am not sure if I completely understand the conversation but please note my
original issue was found using camel-scr i.e. Declarative Services so please
make sure any solution is compatible.
--
View this message in context:
http://camel.465427.n5.nabble.com/OsgiServiceRegistry-caching-service-
I have two routes, an ‘outer route’ that is called from ‘outside’ and an
‘inner route’ that processes some sub tasks. Both routes have individual
/onCompletions /(with route scope).
Now I am facing the problem, that the /onCompletion /of the ‘inner route’ is
only called when the ‘outer route’ fini
Hi Claus,
Perfect CAMEL-9504 addressed and solved my problem
Regards,
Thomas
--
View this message in context:
http://camel.465427.n5.nabble.com/onCompletion-has-no-Exception-CamelExceptionCaught-anymore-tp5777544p5777566.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Richard -
I’ll pull up my test project in the morning and put some more examples in the
JIRA ticket. The ticket I created for this is
https://issues.apache.org/jira/browse/CAMEL-9570
> On Feb 10, 2016, at 5:10 PM, Richard Davidson
> wrote:
>
> Quinn, regarding the other issues, it would be
Richard,
I ran into similar issues recently when I was using services with route
builders. I'd see non-proxied hard classes showing up. Restarts on ;the
bundle(s) would then cause failures because the service class was being
referenced. It makes sense now that I'm following the discussion since
Quinn, regarding the other issues, it would be good to get as many examples
of the issues as possible. I plan have a go at fixing this tomorrow evening
so. Is there a JIRA ticket for this issue, or has it just been a discussion
on the mailing list?
On Thu, Feb 11, 2016 at 12:05 AM, Richard Davids
No I plan to only proxy the service if it is available in the camel
OsgiServiceRegistry and therefore not using blueprint. That way it can
change in the background.
Beans that are obtained in the BlueprintContainer registry will have a
blueprint proxy and will be unchanged from what they where befo
If I’m understanding this correctly, you’re suggesting a proxy around the
references for ALL services - whether Blueprint has already proxied them or
not. Am I understanding you correctly? If I am, it seems a bit wasteful to
re-do what Blueprint is already doing for us.
The other really stran
I don’t think you want DUPS_OK_ACKNOWLEDGE and transacted both set.
As long as both queues are in the same ActiveMQ broker, all you should need is
the “transacted=true” URI option for both the consumer and producer.
If you have multiple ActiveMQ brokers involved, you’ll need to use camel-jms -
Sorry, that was a link to the processor working with JAX-RS contexts,
this one is doing something that a JAX-RS service has returned as a
result of 'performInvocation', in this case it is a Customer bean:
https://github.com/apache/camel/blob/master/components/camel-cxf/src/test/java/org/apache
I don't quite follow what are you saying about performInvocation,
there's a simple test, with the processor coded as follows:
https://github.com/apache/camel/blob/master/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsConsumerTest.java#L276
Are you trying to use it w
Using recipientList with header.operationName instead of
header.CamelHttpMethod will let you set the route to a name that matches
the method invoked on your interface.
@GET
@Path("foo/{fooId}")
@Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML})
@Consumes({MediaType.APPLI
>From what I saw in commits the CAMEL-9569 the idempotent of the problem has
been corrected.
But there is other leaks. In the same example of class even manually
removing the idempotent there's the leak.
--
View this message in context:
http://camel.465427.n5.nabble.com/Leak-of-Memory-using-Jdb
performInvocation allows you to use the resource file to match http method
type (GET POST PUT DELETE) to a method in the resource file. However, it
wipes out the Exchange headers and body, and the return value is set to the
Exchange.In body, except when null is returned. There doesn't seem to be
I found the skipBindingOnErrorCode(false) option in restConfiguration. This
solved the first problem at least.
On 9 February 2016 at 13:45, Matt Sicker wrote:
> I'm using the rest-dsl in Camel 2.16.2. On each rest route, I use
> consumes("application/json") and produces("application/json"). I am
So I found the problem. I was adding the property of "fileExist" to the
header file name not the actual Producer. That seemed to clean my errors.
-
Josh Toepfer
--
View this message in context:
http://camel.465427.n5.nabble.com/CSV-file-from-SQL-no-headers-tp5777379p5777550.html
Sent fro
I think there is a ticket logged about this, check the JIRA
On Wed, Feb 10, 2016 at 3:58 PM, Thomas Weinschenk
wrote:
> Hi folks,
>
> I am working on a monitoring system to trace the traffic handled by camel.
> From importance is the failure handling of course.
> No I facing the problem that ther
Yes I agree. Creating a proxy like blueprint which wraps a service tracker
is the best option as it allows other beans in the context to keep the
reference to the service. Otherwise the beans would need to be totally
stateless and lookup the registry every time.
On Wed, Feb 10, 2016 at 2:55 PM, Ch
Hi folks,
I am working on a monitoring system to trace the traffic handled by camel.
>From importance is the failure handling of course.
No I facing the problem that there is no Exception information within an
onCompletion block accessible. Neither by exchange.getException() nor via
the property C
Hi Richard,
I thought the issue was created by you but it was by Quinn.
I think we really have to avoid caching services. Especially as this can
cause problems with classloader cleanup when a bundle is uninstalled.
So I think we either need to put a proxy into the service registry like
in blue
Hi Christian,
The original ticket was not logged by me, I just commented on the
behaviour. The original issue described at the start of the ticket in which
the service object is being cached exists for scenario 2 and scenario 3.
Both these scenarios find the bean in the OsgiServiceRegistry, so the
Hi zappee,
I think If you want manage some header and class syntactically (compile
time)
you should use Processor feature [1]
from("").process(new Processor() {
public void process(Exchange exchange) throws Exception {
Person payload = exchange.getIn().getBody(Person.class);
On Wed, Feb 10, 2016 at 3:17 PM, Hans Orbaan wrote:
> Hi,
>
> Also you could try the more verbose way: $simple{date:now:yyyMMdd}.
>
> This is sometimes necessary. I am not sure why. Think it had something to do
> with loading from property files.
>
Ah yeah see the box on the of this page about t
Hi,
Also you could try the more verbose way: $simple{date:now:yyyMMdd}.
This is sometimes necessary. I am not sure why. Think it had something to do
with loading from property files.
With kind regards,
Hans Orbaan
-Oorspronkelijk bericht-
Van: Claus Ibsen [mailto:claus.ib...@gmail.com
What version of Camel do you use?
There is some examples here
http://camel.apache.org/file-language.html
At first glance your url looks correct.
On Tue, Feb 9, 2016 at 8:03 PM, camel_ch wrote:
> Hi
>
> I am trying the below using camel route
>
> uri="file:{{file.path}}?noop=true&fileExist=App
Hi Richard,
now I understand your problem. So the problem is only with Scenario 3.
Can you update the issue to reflect this?
So does the example you mentioned in the issue (which would probably be
scenario4) really not work?
I am pretty sure it should work.
Christian
On 10.02.2016 12:51, Ric
Hi
If you want to retry an entire route, you can mark the route with no
error handler, and call it from another route with direct, then the
redelivery will start again from the beginning of the route (eg it
redelivers the direct call)
An unit test is here
https://github.com/apache/camel/commit/84
Hi,
I had to implement some retry logic using camel as well, tried a lot of
different tricks but always failed.
I needed to be able to send a HTTP POST, then poll an URL (using exception
and redelivery). I case of error (other than my polling) I wanted to be
able to re-send my HTTP POST. But the
Hi.
Sorry, I may have caused more confusion!. You are correct that if the
blueprint registry is used, it will create a proxy, and the service can
come and go in the background without any issues. The issue on this ticket
is to do with the OsgiServiceRegistry in camel. When camel tries to lookup
a
Hi
Usually users register custom route processors, with CXFRS interface
only acting as a matcher, with the route processors checking next the
matched verb, etc, and deciding what to do. With latest Camel this
process can be simplified - JAX-RS contexts such as UriInfo,
SecurityContext, Reques
Hello,
is there a way how to ensure transactions between consumer-producer of two
JMS queues using SJMS component?
What I'm testing is this simple case:
1. prepare higher amount of JMS messages in broker (e.g. 1000)
2. have Camel route from input queue to output queue
3. start context (starts co
Hi Sashika,
Thanks for the reference. It was helpful.
--
View this message in context:
http://camel.465427.n5.nabble.com/Switch-to-route-in-case-original-route-fails-tp5777511p5777521.html
Sent from the Camel - Users mailing list archive at Nabble.com.
This might help you Apache Camel: Load Balancer This option can be used whether
or not roundRobin is enabled or not.Camel 2.3:
Whether or not the failover load balancer should operate in round…
camel.apache.org
On Wed, Feb 10, 2016 at 9:57 AM, mnl < mnlgoya...@gmail.com > wrote:
I have 2 routes
If you inject a blueprint reference to a service into a RouteBuilder
class then I would expect that the camel registry is not involved at all
and you would be able to use the service proxy injected by blueprint
inside the route.
When the service disappears the blueprint proxy should run into
S
36 matches
Mail list logo