- Manning's MongoDB in Action by Kyle Banker - 312 pages of the perfect introduction to the MongoDB.
- MongoDB Java driver - basic Java client API.
- Camel MongoDB component - if you would like to orchestrate some message sources (like REST facade) with highly-scalable MongoDB document store, Camel MongoDB is a way to go.
- Spring Data MongoDB - Spring Data DAO for MongoDB is very handly if you can predict what documents will be used against MongoDB.
- Spring Mongo template - nice layer of abstraction over the MongoDB Java driver.
Sunday, January 4, 2015
MongoDB references worth your time
Here are some MongoDB references "certified by Henry" :) Wanna work with MongoDB? Give'em a shot!
Friday, January 2, 2015
Camel Spring Boot and type conversion API bridge
Spring comes with the powerful type conversion API. Spring API happens not to be much different from the Camel type converter API. As those APIs are so similar, Camel Spring Boot automatically registers bridge converter (SpringTypeConverter) that delegates to the Spring conversion API.
It basically means that out-of-the-box Camel will threat Spring Converters as Camel ones. With this approach you can enjoy both Camel and Spring converters accessed via Camel TypeConverter API:
Under the hood Camel Spring Boot delegates conversion to the Spring's ConversionService. If no ConversionService instance is available, Camel Spring Boot auto-configuration will create one for you.
It basically means that out-of-the-box Camel will threat Spring Converters as Camel ones. With this approach you can enjoy both Camel and Spring converters accessed via Camel TypeConverter API:
@Component public class InvoiceProcessor { @Autowired private TypeConverter typeConverter; public UUID parseInvoiceId(Invoice invoice) { // Using Spring's StringToUUIDConverter UUID id = invoice.typeConverter.convertTo(UUID.class, invoice.getId()); } }
Under the hood Camel Spring Boot delegates conversion to the Spring's ConversionService. If no ConversionService instance is available, Camel Spring Boot auto-configuration will create one for you.
Subscribe to:
Posts (Atom)