Java/JVM, Software development
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,...
Java/JVM, Software development
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...
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...
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...
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...
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...
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...
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...
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...
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...
The requirement to send delayed/scheduled message is to publish any message with a delay time. To achieve this, earlier we had to use dead letter exchange but now we can send scheduled/delayed messages from RabbitMQ with "rabbitmq_delayed_message_exchange" plugin. we can send scheduled/ delayed messages from rabbitMQ by following these...
Sometimes we need to access details of current logged in user but that will be an additional database query. To save that query we can use principal object of Spring security which provides details of logged in user . But by default principal object have few fields like id, username and password. If we need to access user's name /...