I'm having the same issue. It looks like that Camel keeps the dynamic REST urls and the endpoints definition keep growing in runtime.
For instance, I have an endpoint like:
/rs/my-endpoint/{id}
If I try to get:
/rs/my-endpoint/1
and get:
/rs/my-endpoint/2
It is being saved two different endpoint definitions dynamically. Kind of weird.
Well, My question is: how can I define a global CamelBehavior to resolve this problem without the need to set the CamelBehavior in every task?
In the CamelBehavior class, there's the javadoc that says:
<strong>* The chosen implementation should be set within your ProcessEngineConfiguration. To specify the implementation using Spring, include
* the following line in your configuration file as part of the properties for "org.activiti.spring.SpringProcessEngineConfiguration":
*
* <property name="camelBehaviorClass" value="org.activiti.camel.impl.CamelBehaviorCamelBodyImpl"/>
</strong>
but, I can't find anywhere to define this in the SpringProcessEngineConfiguration class. Does anyone can help?
Thanks in advance!