I need translate this for standalone widfly version config
<listener>
<listener-class>org.camunda.bpm.engine.rest.hal.cache.HalRelationCacheBootstrap</listener-class>
</listener>
<context-param>
<param-name>org.camunda.bpm.engine.rest.hal.cache.config</param-name>
<param-value>
{
"cacheImplementation": "org.camunda.bpm.engine.rest.hal.cache.DefaultHalResourceCache",
"caches": {
"org.camunda.bpm.engine.rest.hal.user.HalUser": {
"capacity": 100,
"secondsToLive": 900
},
"org.camunda.bpm.engine.rest.hal.group.HalGroup": {
"capacity": 100,
"secondsToLive": 900
},
"org.camunda.bpm.engine.rest.hal.processDefinition.HalProcessDefinition": {
"capacity": 100,
"secondsToLive": 600
}
}
}
</param-value>
</context-param>
To springBoot aplication. Can you help me plis?
I start with this but I need add the contexto params:
@SpringBootApplication
@EnableProcessApplication("Wizard")
public class CamundaApplication extends SpringBootServletInitializer{
public static void main(String... args) {
SpringApplication.run(CamundaApplication.class, args);
}
// <context-param>
// <param-name>org.camunda.bpm.engine.rest.hal.cache.config</param-name>
// <param-value>
// {
// "cacheImplementation": "org.camunda.bpm.engine.rest.hal.cache.DefaultHalResourceCache",
// "caches": {
// "org.camunda.bpm.engine.rest.hal.user.HalUser": {
// "capacity": 100,
// "secondsToLive": 900
// },
// "org.camunda.bpm.engine.rest.hal.group.HalGroup": {
// "capacity": 100,
// "secondsToLive": 900
// },
// "org.camunda.bpm.engine.rest.hal.processDefinition.HalProcessDefinition": {
// "capacity": 100,
// "secondsToLive": 600
// }
// }
// }
// </param-value>
// </context-param>
@Override
public void onStartup(ServletContext servletContext) throws ServletException {
// DefaultHalResourceCache defaultHalResourceCache = new DefaultHalResourceCache();
// defaultHalResourceCache.
// servletContext.setAttribute("org.camunda.bpm.engine.rest.hal.cache.config", defaultHalResourceCache);
// HalUser halUser = new HalUser();
// halUser.
super.onStartup(servletContext);
servletContext.addListener(new HalRelationCacheBootstrap());
}