I've create a JPA consumer using the following URI: jpa://com.lynden.peoplenet.Locationhistory?consumer.namedQuery=Locationhistory.findUnprocessed&consumeDelete=false&persistenceUnit=PN-SQL-Local
I have also added an @Consumed method to the com.lynden.peoplenet.Locationhistory class. The process reads out the records from the database with no problem, however the @Consumed method is never called on the Locationhistory class. Upon debugging further, it looks like the entityType variable in the JpaEndpoint object is set to null for some reason, and so the JpaConsumer class can't find the entity class to invoke its Consumed method. I've also tried adding the entityType property to the URI: jpa://com.lynden.peoplenet.Locationhistory?consumer.namedQuery=Locationhistory.findUnprocessed&consumeDelete=false&persistenceUnit=PN-SQL-Local&entityType=com.lynden.peoplenet.Locationhistory But I get the following error: Failed to resolve endpoint: jpa://com.lynden.peoplenet.Locationhistory?consumeDelete=false&consumer.namedQuery=Locationhistory.findUnprocessed&entityType=com.lynden.peoplenet.Locationhistory&persistenceUnit=PN-SQL-Local due to: Could not find a suitable setter for property: entityType as there isn't a setter method with same type: java.lang.String nor type conversion possible: No type converter available to convert from type: java.lang.String to the required type: java.lang.Class with value com.lynden.peoplenet.Locationhistory. I'm using camel-core and camel-jpa 2.13.1 Any ideas of what I should be looking for? thanks, -Rob -- View this message in context: http://camel.465427.n5.nabble.com/JPA-entityType-always-Null-tp5752284.html Sent from the Camel - Users mailing list archive at Nabble.com.
