In this post I will present how to connect to MongoDB from a stateless Java EE application, to take advantage of the built-in pool of connections to the database offered by the MongoDB Java Driver. This might be the case if you develop a REST API, that executes operations against a MongoDB.
Really Understanding Javascript Closures
This post will explain in a simple way how Javascript Closures work. We will go over these topics and frequently asked questions:
- What is a Javascript Closure
- What is the reason behind the name ‘Closure’
- Actually viewing closures in a debugger
- how to reason about closures while coding
- the most common pitfalls of it’s use
First batch job on Podcastpedia.org with EasyBatch
Remember the first batch job for Podcastpedia.org, presented in Spring Batch Tutorial with Spring Boot and Java Configuration… There, I would read submitted podcasts from a .csv file to add them to the Podcastpedia.org directory (database). Well today I will present how I automated the creation of this kind of input file, with the help of Easy Batch. Why EasyBatch? Because, after seeing my initial post, I was contacted by its founder, Mahmoud Ben Hassine, to have a look at Easy Batch and give it a try. I did, and I am happy about that. Read on to find out why…
How does Spring @Transactional Really Work?
In this post we will do a deep dive into Spring transaction management. We will go over on how does @Transactional
really works under the hood. Other upcoming posts will include:
- how to use features like propagation and isolation
- what are the main pitfalls and how to avoid them
jQuery ui autocomplete not working in Spring 4.1
You may recall from my post Autocomplete search box with jQuery and Spring MVC, that I use jQuery ui autocomplete to dynamically search for keywords on Podcastpedia.org. I am now in the process of migrating the source base for Podcastpedia.org to Spring 4. I decided to go with the latest version 4.1.0.RELEASE
and everything worked pretty smoothly until I got to test the auto-complete functionality presented in the post mentioned before.