Java/JVM, Software development

Java Bitwise Operator using efficiently to improve Performance

Many of us know the various operators available in Java. But do we really use them all efficiently. Here I am illustrating one simple example which can show the high performance gain with bitwise operatator than the standard solution. Lets calculate the mathematical expression xn i.e. x's power n. To solve this problem anyone can...

by Sandeep Gupta
Tag: Java
26-May-2016

Android, Java/JVM

Swipe To Dismiss RecyclerView

This tutorial is about how to create “swipe to dismiss” RecyclerView item like Gmail app. For this, we don't need any 3rd party Library. For this purpose, you just need to add one class which is part of Android Support Library. The name is “ItemTouchHelper”. By now you know that this blog is all about how to use ItemTouchHelper...

by Bharat Ghimire
Tag: Java
24-May-2016

Java/JVM, Software development

Enabling Spring With Plugins

Writing a code to integrate MQTT functionality in my Spring application development made me think, am I not doing this over and over again. Having been involved in different IoT applications and numerous other domains, MQTT became an essential part of almost all the applications that I prepared. This is just one example of such a case,...

by Ankit Arora
Tag: Java
21-May-2016

Java/JVM, Software development

How to configure Templating Solution Engine SiteMesh with Spring boots

SiteMesh is a very simple, lightweight & flexible Templating Solution framework for Java Web applications. SiteMesh can be used in lot more ways if we combine it with Spring boot framework. Configuring the SiteMesh with Spring Boot is little bit tricky but not complex, as we need to create a custom filter and then inject it into...

by Sandeep Gupta
Tag: Java
19-May-2016

Grails, Java/JVM

Auto compilation in java springboot application

To run springboot appllication there is a task "bootRun" which compile and run the application for one deployment lifecyle. This is good enough for the production, where auto compilation is not required. In the dev environment auto compilation is used to avoid recompilation. Also it is very much needed to speed up the development time...

by Sanchit
Tag: Java
15-May-2016

AWS, Technology

Convert Apache (x509 cert) SSL Certificate to Tomcat (Keystore)

When setting up SSL certificate for a website, we mainly use two types of SSL certificate one is x509 mostly used with applications support OpenSSL library and other is Keystore which is used with Java 1.6+ applications. Apache/Nginx uses x509 pem/crt files which is is very different than a Jetty/Tomcat (Java 1.6+) system that uses...

by Nitin Bhadauria
Tag: Java
02-May-2016

Technology

Why the path to a Microservices Architecture is a promising one.

The latest entrant in the world of technological development is the microservice architecture, also abbreviated as MSA. It would not be completely illogical to think of the MSA as a refined version of a Service Oriented Architecture (SOA) , which has been the go to approach of most enterprises as the needs and demands of users for better...

by Prakashul
Tag: Java
05-Jan-2016

Java/JVM, Technology

Runnables with Timeout from submission time

Problem not covered by Java ExecutorService Java's ThreadPoolExecutor is a great tool. After configuring a thread pool we can keep on submitting Callables and get Futures. These futures can be used to get the values that the callable is supposed to return. In case we want to limit the execution time of this callable we have the...

by Aseem Bansal
Tag: Java
05-Nov-2015

Java/JVM

Issues while Migrating from Java6 to Java8 in AEM 6.1

Recently while working on AEM 6.1, I had to move from Java 6 to Java 8. Simply changing the Java version in POM led to some issues with OSGi services. Specifically, those services that were using @Reference annotation were not getting active and remained in "satistied" state. Here are all the steps I followed firstly to change Java...

by Shiffali Grover
Tag: Java
30-Oct-2015

Grails, iOS

Push Notification in IOS Using Grails

Hi All, In my previous blog . I have explained how to send the push notification to Android Device. Now, it's time to see how we can send push notification to iOS devices. For sending Push Notification in iOS I have used JavaPNS_2.2.jar . So before, directly jumping on example we should know that what are prerequisites of...

by madhav.khanna
Tag: Java
31-Jul-2015

Android, Grails

Push Notification in Android Using Grails

Hi All, I had a use case where I need to send the push notification to Android Device using Grails Application. For sending push notification I have used the Android GCM plugin. So, before going further we should know what is push notification and how it works. Push Notification : It is a message or events delivered by a...

by madhav.khanna
Tag: Java
31-Jul-2015

Technology

Perform any DB operation in an isolated transaction

Hi Friends, Sometimes we need to perform any DB operation in between a transaction, but due to transaction's property, it's getting committed only once the parent transaction will be finished. If you need to perform any operation that need to be committed immediately, irrespective of parent transaction (Example : for a dependent...

by Anil Agarwal
Tag: Java
28-Jul-2015