FYI - I wrote a blog post yesterday: http://camundabpm.blogspot.de/2013/09/camunda-bpm-apache-camel-integrating.html. Hope that helps to gather more community feedback :-)
Cheers
Bernd
<camelContext id="camelContext" xmlns="http://camel.apache.org/schema/spring">
<routeBuilder ref="myBuilder" />
</camelContext>
<bean id="myBuilder" class="org.camunda.demo.camel.MyCamelRouteBuilder" />
<bean id="camel" class="org.camunda.bpm.camel.spring.CamelServiceImpl">
<property name="processEngine" ref="processEngine" />
<property name="camelContext" ref="camelContext" />
</bean>
@Component
public class MyCamelRouteBuilder extends SpringRouteBuilder
Hi Caro.
Which manual are you referring to exactly (just to know which ones gets read most ;-))?
Cool that it works with almost no modifications in Spring. Maybe it would be interesting to share this as well – could you maybe send over your source code or is this is a problem?
Cheers
Bernd
--
You received this message because you are subscribed to the Google Groups "camunda BPM users & process application developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/camunda-bpm-users/02a290b4-a7f3-4178-8870-16ceb5b3747a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
That works perfectly. Thanks again for the feedback! I put it on my list – let’s see when I have time to add it to the docs
--
You received this message because you are subscribed to the Google Groups "camunda BPM users & process application developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/camunda-bpm-users/81586816-d897-43d9-9a81-39ccfad0ea44%40googlegroups.com.
Caused by: org.camunda.bpm.engine.ProcessEngineException: Cannot deploy process archive 'processArchive' to process engine 'processEngine' no such process engine exists.16:38:43,956 INFO [org.camunda.bpm.container.impl.jmx.deployment.ParseProcessesXmlStep] (ServerService Thread Pool -- 174) Found process application file at vfs:/.../WEB-INF/classes/META-INF/processes.xml
16:38:43,959 INFO [org.camunda.bpm.container.impl.jmx.JmxRuntimeContainerDelegate] (ServerService Thread Pool -- 174) Process Application ...-routes-1.0.0-SNAPSHOT successfully deployed. <!-- JBoss Transaction Manager -->
<bean id="transactionManager"
class="org.springframework.transaction.jta.JtaTransactionManager" />
<!-- Camunda BPM ProcessEngineConfiguration -->
<bean id="processEngineConfiguration"
class="org.camunda.bpm.engine.spring.SpringProcessEngineConfiguration">
<property name="dataSourceJndiName" value="java:jboss/datasources/datasourceXADS" />
<property name="transactionManager" ref="transactionManager" />
<property name="transactionsExternallyManaged" value="true" />
<property name="history" value="full" />
<property name="deploymentResources" value="classpath*:/bpmn/*.bpmn20.xml" />
</bean>
<!-- Camunda BPM ProcessEngine -->
<bean id="processEngine" class="org.camunda.bpm.engine.spring.ProcessEngineFactoryBean">
<property name="processEngineConfiguration" ref="processEngineConfiguration" />
</bean>Hi Christian.
How do you run the process engine – self-started (embedded) via your own WAR file? Then you do not need a processes.xml. Or as shared engine? See http://docs.camunda.org/latest/guides/user-guide/#introduction-architecture-overview-camunda-bpm-platform-architecture for info on the differences. Or asked differently: Do you use the pre-packed Tomcat from our download page (http://camunda.org/download/)?
You need the processes.xml ONLY if you want to use the shared engine approach (which we normally recommend). But then you need a process application class as well, see http://docs.camunda.org/latest/guides/user-guide/#process-applications-the-process-application-class-the-springprocessapplication. And in this case you should not startup the engine via spring as described here. So I guess you go for embedded (why?) – in this case you do not need a processes.xml.
Does this help?
Cheers
Bernd
Von: camunda-...@googlegroups.com [mailto:camunda-...@googlegroups.com] Im Auftrag von Cristian Requena
Gesendet: Freitag, 4. Oktober 2013 10:08
An: camunda-...@googlegroups.com
Betreff: Re: [camunda-bpm-users] Re: camunda-bpm-camel Blog Post
Hi Carolin, thank you for your reply.
--
You received this message because you are subscribed to the Google Groups "camunda BPM users & process application developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/camunda-bpm-users/7fae929d-6bce-48a8-870b-9e2efdec363d%40googlegroups.com.
Sorry: Hi Cristian (we have a Christian in the team – types natural with H ;-)).
To view this discussion on the web visit https://groups.google.com/d/msgid/camunda-bpm-users/e5f1d92d.00001924.00000097%40ca-ruecker.
Hi Cristian.
I think it is not (yet) really clear in the docs – but you can start multiple engines for multi tenancy as well in Tomcat (I guess you are working on tomcat? Otherwise see corresponding section for other container) shared process engine mode (see http://docs.camunda.org/latest/guides/installation-guide/tomcat/#bpm-platform-install-the-platform-on-a-vanilla-tomcat-add-bpm-platformxml, add multiple engines) and use them by name. This way even cockpit can handle this and shows a dropdown for selecting the right tenant. Maybe that would be an idea to check first?
If you stick with the embedded engine remove the processes.xml completely please. You use Spring – right? Then you have to create the services yourself as Spring beans:
<bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" />
<bean id="runtimeService" factory-bean="processEngine" factory-method="getRuntimeService" />
<bean id="taskService" factory-bean="processEngine" factory-method="getTaskService" />
<bean id="historyService" factory-bean="processEngine" factory-method="getHistoryService" />
<bean id="managementService" factory-bean="processEngine" factory-method="getManagementService" />
Maybe that was missing?
Cheers
Bernd
To view this discussion on the web visit https://groups.google.com/d/msgid/camunda-bpm-users/f9126e90-2727-405d-bba6-fab6ccb8fd91%40googlegroups.com.
INFO [org.camunda.bpm.container.impl.jmx.deployment.ParseProcessesXmlStep] (ServerService Thread Pool -- 93) No processes.xml file found in process application [...]-1.0.0-SNAPSHOT
INFO [org.camunda.bpm.container.impl.jmx.JmxRuntimeContainerDelegate] (ServerService Thread Pool -- 93) Process Application [...]-1.0.0-SNAPSHOT successfully deployed. <!-- JBoss Transaction Manager -->
<bean id="transactionManager"
class="org.springframework.transaction.jta.JtaTransactionManager" />
<!-- Camunda BPM ProcessEngineConfiguration -->
<bean id="processEngineConfiguration"
class="org.camunda.bpm.engine.spring.SpringProcessEngineConfiguration">
<property name="dataSourceJndiName" value="java:jboss/datasources/projectXADS" />
<property name="transactionManager" ref="transactionManager" />
<property name="transactionsExternallyManaged" value="true" />
<property name="history" value="full" />
<property name="deploymentResources" value="classpath*:/bpmn/*.bpmn20.xml" />
</bean>
<!-- Camunda BPM ProcessEngine -->
<bean id="processEngine" class="org.camunda.bpm.engine.spring.ProcessEngineFactoryBean">
<property name="processEngineConfiguration" ref="processEngineConfiguration" />
</bean>
<!-- Camunda BPM ProcessEngine Services -->
<bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" />
<bean id="runtimeService" factory-bean="processEngine" factory-method="getRuntimeService" />
<bean id="taskService" factory-bean="processEngine" factory-method="getTaskService" />
<bean id="historyService" factory-bean="processEngine" factory-method="getHistoryService" />
<bean id="managementService" factory-bean="processEngine" factory-method="getManagementService" />
<!-- Camunda BPM ProcessApplication -->
<bean id="processApplication" class="org.camunda.bpm.engine.spring.application.SpringServletProcessApplication" />
<!-- Camunda BPM and Camel integration -->
<bean id="camel" class="org.camunda.bpm.camel.spring.CamelServiceImpl">
<property name="processEngine" ref="processEngine" />
<property name="camelContext" ref="processesCamelContext" />
</bean>public class DemoProcessImpl implements DemoProcess {
@Autowired
private ProcessEngine processEngine;
@Autowired
private RuntimeService runtimeService;
@Override
public void changeState() {
System.out.println(processEngine == null ? "isNull" : "hasValue");
System.out.println(runtimeService == null ? "isNull" : "hasValue");
}Hi Cristian.
Unfortunately (?) I am on vacation (actually since I think like two or three hours ;-)) and will not really be able to look into it. Maybe somebody else can jump in?
I think it could help to provide a small zip containing the project – so we can have a look into it. Personally I am a Java EE / CDI guy so I have to have a look into the Spring issues on Tomcat first and do not know them out-of-my-head -sorry!
Cheers
Bernd
To view this discussion on the web visit https://groups.google.com/d/msgid/camunda-bpm-users/c6bfe3d2-d40d-4d69-9233-02eeb21d4898%40googlegroups.com.
Hi Christina.
Was this solved in the meanwhile o rare there any concrete questions still open?
Cheers
Bernd
Von: camunda-...@googlegroups.com [mailto:camunda-...@googlegroups.com] Im Auftrag von Cristian Requena
Gesendet: Montag, 7. Oktober 2013 10:19
To view this discussion on the web visit https://groups.google.com/d/msgid/camunda-bpm-users/c6bfe3d2-d40d-4d69-9233-02eeb21d4898%40googlegroups.com.