camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rakesh <>
Subject Issues Using Mybatis Camel Component and SpringBoot
Date Fri, 20 May 2016 14:37:14 GMT

Need help with below problem:
I am trying to connect database, using camel mybatis component. I am using
spring boot started for both 
camel and mybatis.


Since I am using Springboot, all the datasource properties are load on the
start-up. Also I am using mybatis "MapperScan" to get the mybatis mappers.
Then I use the came RouteBuilder class, to execute the "select" sql from the
Mapper.xml file.

		.log("Starting Mybatis Camel Compotent Run...")
		.log("Mybatis DB Message: "+ body())

but getting NPE

Caused by: java.lang.NullPointerException: null
	... 15 common frames omitted

After debugging, found the mybatis is getting NULL environment. 

*Question:* Has any one tried using springboot+mybatis and camel? any
What additional configuration is required to get these 3 framework together?

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message