what are you trying to achieve? what kind of integration?
You shouldn't deploy a webapp via the console-ng.
Deploying both apps in the same wildly should do the work. You need to make sure that both apps uses the same database and you will be able to see the same data in both.
Thank you for quick responce, Mauricio!
I want processes from my webapp to be displayed in "Process Management" tab in jbpm-console, and to be able to start those processes from the jbpm-console.
My app stores only logging info to database. And I don't see any effect when deploying both apps on same server with same datasource. Jbpm-console shows nothing.
May be i forgot to perform some configuration in my webapp to fully enable persistence?
Here is the config part from my spring config file:
<kie:kbase name="kbase" packages="bpmn" default="true">
<kie:ksession name="ksession" type="stateful" default="true">
<kie:processEventListener ref="kieDbLogger" />
<kie:workItemHandler name="GateEventAction" type="eterra.ca.market.gate.gateeventactions.handler.GateEventActionHandler" />
<kie:workItemHandler name="SkipGateEventAction" type="eterra.ca.market.gate.gateeventactions.handler.SkipGateEventAction" />
<bean id="kiePostProcessor" class="org.kie.spring.KModuleBeanFactoryPostProcessor" />
<bean id="kieDbLogger" class="org.jbpm.process.audit.JPAWorkingMemoryDbLogger">
to be able to achieve that integration you need to package all your processes into kjar that can then be deployed to jbpm console and used within your application. The main requirement is that jbpm must be aware of the processes it can operate on. From version 6.2 that's easily achievable thanks to jbpm services that you can read up here. At the end of that article you will find a link to a complete application written with spring that does integrate with jbpm console.