You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Piotr Kaczmarski <Pi...@altkomsoftware.pl> on 2019/07/31 15:33:42 UTC

No MBean added for toD() endpoint

Hello,

My camel version is 2.23.1.

I'm using toD("velocity:...") to parse a velocity template which name is 
provided in a header.

I need to clear ResourceCache in the route, that's a requirement.

I tried using MBean as done in the patch file in this jira issue: 
https://issues.apache.org/jira/browse/CAMEL-4669

But no MBean is available for the route:/ If I change it to 
to("velocity:...") it works fine.

Is there a way to clear the resource cache on a dynamic route?

Best regards,

Piotr Kaczmarski


Re: No MBean added for toD() endpoint

Posted by Piotr Kaczmarski <Pi...@altkomsoftware.pl>.
Thank you, Claus, it worked perfectly!

W dniu 31.07.2019 o 19:42, Claus Ibsen pisze:
> Hi
>
> Not by default via JMX, but you can turn on JMX to always register
> endpoints also for dynamic. See the JMX docs. And there is also an
> option to give the toD an explicit id, and then tell JMX to also
> register for custom ids assigned.
>
>
> On Wed, Jul 31, 2019 at 5:33 PM Piotr Kaczmarski
> <Pi...@altkomsoftware.pl> wrote:
>> Hello,
>>
>> My camel version is 2.23.1.
>>
>> I'm using toD("velocity:...") to parse a velocity template which name is
>> provided in a header.
>>
>> I need to clear ResourceCache in the route, that's a requirement.
>>
>> I tried using MBean as done in the patch file in this jira issue:
>> https://issues.apache.org/jira/browse/CAMEL-4669
>>
>> But no MBean is available for the route:/ If I change it to
>> to("velocity:...") it works fine.
>>
>> Is there a way to clear the resource cache on a dynamic route?
>>
>> Best regards,
>>
>> Piotr Kaczmarski
>>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2

Re: No MBean added for toD() endpoint

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Not by default via JMX, but you can turn on JMX to always register
endpoints also for dynamic. See the JMX docs. And there is also an
option to give the toD an explicit id, and then tell JMX to also
register for custom ids assigned.


On Wed, Jul 31, 2019 at 5:33 PM Piotr Kaczmarski
<Pi...@altkomsoftware.pl> wrote:
>
> Hello,
>
> My camel version is 2.23.1.
>
> I'm using toD("velocity:...") to parse a velocity template which name is
> provided in a header.
>
> I need to clear ResourceCache in the route, that's a requirement.
>
> I tried using MBean as done in the patch file in this jira issue:
> https://issues.apache.org/jira/browse/CAMEL-4669
>
> But no MBean is available for the route:/ If I change it to
> to("velocity:...") it works fine.
>
> Is there a way to clear the resource cache on a dynamic route?
>
> Best regards,
>
> Piotr Kaczmarski
>


--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2