As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
No clue: it hasn't been done as far as I know…iBatis 2 is also pretty old by now …
<br>public void contextInitialized(ServletContextEvent sce) {<br> <br> <br> System.out.println("begin");<br> WebApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(sce.getServletContext()); <br> <br> processEngineConfiguration= (ProcessEngineConfiguration)ctx.getBean("processEngineConfiguration"); <br> ProcessEngines.init(); <br> ProcessEngines.registerProcessEngine(processEngineConfiguration.buildProcessEngine());<br> logger.info("Activiti begin.");<br> System.out.println("Activiti begin");<br> context=sce.getServletContext();<br> context.setAttribute("processengines",ProcessEngines.getDefaultProcessEngine());<br> <br> }<br>
<br>ProcessEngine processEngine=(ProcessEngine)this.getServletContext().getAttribute("processengines");<br><br> RepositoryService repositoryService = processEngine.getRepositoryService();<br><br>