cancel
Showing results for 
Search instead for 
Did you mean: 

Camel integration with Activiti6 Beta4

wanderlan
Champ in-the-making
Champ in-the-making
Hello,

I'm trying to use Apache Camel with Activiti6 beta4 using only the UI (activiti-app).
But in the log of the execution of my process model I get the error:

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'myContext' is defined

It seems that the UI is unable to find my applicationContext.xml and/or "myContext" (the camel context inside applicationContext.xml).
My applicationContext.xml is in the /WEB-INF and has this content:

<beans xmlns="http://www.springframework.org/schema/beans"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:camel="http://camel.apache.org/schema/spring"
   xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
   
<camelContext id="myContext" xmlns="http://camel.apache.org/schema/spring">
   <route>
             :::::::MY ROUTE::::::
        </route>
</camelContext>
</beans>

Would anyone tell me what is missing?
The name and location of "applicationContext.xml" are correct?

TIA,
Wanderlan
1 REPLY 1

wanderlan
Champ in-the-making
Champ in-the-making

I taking another direction, instead of using Spring DSL to specify my routes in Camel, I have decided to use Groovy in Script Tasks.
This approach is more flexible, agile and powerful (at least for me), also I do not need an IDE like Eclipse.
Just I changed my Camel Tasks to Script Tasks and put the following Groovy script:
<java>
import org.apache.camel.*
import org.apache.camel.impl.*
import org.apache.camel.builder.*

def myContext=new DefaultCamelContext()
myContext.addRoutes(new RouteBuilder(){def void configure(){
   /*MY ROUTE*/
}})
myContext.start()
</java>
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.