Exposing local web server publicly

When working on web development, there are times when we need to share our local changes quickly. If the change is small, deploying to web server by generating a war file would consume a lot of time. There needs to be a quick way to expose web server(running locally)...

Multiple level sorting in Groovy

When we interact with database records, we specify a criteria with an order(asc or desc) to get the results sorted by a particular field. Usually we sort on the basis of one field but a situation may arise to sort the objects on the basis of two or more fields. Here...

Access git information during war build

GIT is a widely used version control system which really helps us to keep track of our code in a quite managed way. When we have frequent deployments on server it becomes important to know the details of the build, commit reference, date of build etc. Though we have...

KahaDB Journal Files Accumulation

KahaDB is a file based database which is by default used by Apache ActiveMQ. It stores the messages in log files with a file name format data-id.log.  A very common problem in KahaDB is that the ActiveMQ broker is unable to delete the old log files which starts...

Geofencing

Geofencing is actually a process of creating/defining geofence on the maps. It can be either circle,rectangle or n-sided polygon shaped. Geofence is nothing but a virtual boundary that is drawn on map. Geofence have many applications like:   If a vehicle moves...