odiszapc
odiszapc

Reputation: 4109

Reconfiguring Apache Camel route parameters at runtime

I have aggregation configured in my code:

.aggregate(new BodyAggregationStrategy())
    .constant(true)
    .completionSize(1000)    // Static value
    .completionTimeout(300)  // Static value

After I have started the Apache Camel context is it possible to change various parameters like completionSize and completionTimeout values?

When context is running a lot of data are transfering throught it and I want to increase some parameters like queue size and so on.

Upvotes: 0

Views: 456

Answers (2)

Frederic Close
Frederic Close

Reputation: 9639

What you could do, is via the CameContext

  • stop the route
  • remove the route
  • add the route with new parameters
  • start the route

Upvotes: 2

Mikhail Stepura
Mikhail Stepura

Reputation: 3374

Have you tried to connect via JMX and see if those parameters can be configured?

Upvotes: 0

Related Questions