I need your help, I'm using pretty much the same example with a RouteTest class and it does not work as expected because of the following line :
Bundle RouteTest is waiting for namespace handlers [http://aries.apache.org/xmlns/jpa/v1.1.0] I'm using the following blueprint.xml : <?xml version="1.0" encoding="UTF-8"?> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camel="http://camel.apache.org/schema/blueprint" xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0" xmlns:jpa="http://aries.apache.org/xmlns/jpa/v1.1.0" xsi:schemaLocation=" http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd http://aries.apache.org/xmlns/jpa/v1.1.0 http://aries.apache.org/schemas/jpa/jpa_110.xsd"> <bean id="jpa" class="org.apache.camel.component.jpa.JpaComponent"> <jpa:unit unitname="persistence-pu" property="entityManagerFactory" /> </bean> <camelContext trace="true" id="blueprintContext" xmlns="http://camel.apache.org/schema/blueprint"> <route id="persist"> <from uri="direct:persist"/> <to uri="jpa:Person"/> </route> </camelContext> </blueprint> and the following RouteTest.java public class RouteTest extends CamelBlueprintTestSupport { @Override protected String getBlueprintDescriptor() { return "/OSGI-INF/blueprint/blueprint.xml"; } @Test public void testRoute() throws Exception { getMockEndpoint("mock:result").expectedMinimumMessageCount(1); ProducerTemplate producerTemplate = new DefaultCamelContext().createProducerTemplate(); Person person = new Person(); person.setName("Bob"); producerTemplate.sendBody("direct:persist", person); // assert expectations assertMockEndpointsSatisfied(); } } -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-Camel-Jpa-Component-and-Container-Managed-Transaction-tp5714815p5730257.html Sent from the Camel - Users mailing list archive at Nabble.com.