Hello i try to use transaction from camel in osgi bundle.
My route look like this
from("jms:myqueue").transacted().id("DestRoute").throwException(new
Exception("persistence error"))
And i my configuration look like this:
<bean id="activemq"
class="org.apache.activemq.camel.component.ActiveMQComponent">
<property name="connectionFactory">
<osgi:reference interface="javax.jms.ConnectionFactory"
/>
</property>
<property name="transacted" value="true" />
<property name="transactionManager">
<osgi:reference
interface="org.springframework.transaction.PlatformTransactionManager" />
</property>
</bean>
<camelContext xmlns="http://camel.apache.org/schema/spring">
<routeBuilder ref="destRoute" />
</camelContext>
At bundle startup it tell me that that doesn't find camel-spring
'Cannot create a transacted policy as camel-spring.jar is not on the classpath'
It 'very clear but in my header package
org.springframework.transaction
org.apache.camel.spring
are present.
Where am I mistaken or forgotten, or what?