JBoss EAP 6.x is based on JEE 6. But as JPA 2.1 is part of the JEE 7 Spec, it will not be possible to directly deploy applications built using JPA 2.1 in JBoss EAP 6.x. However, with the following workaround we can make this possible. You need to include a ‘jboss-deployment-structure.xml’ with the following […]
How to Create Cron Expression for Quartz Scheduler
Quartz is one of the most widely used enterprise job scheduler in Java applications. It has got an open source .Net variant as well. As quartz makes use of Cron Expression to schedule the jobs, it’s very important that we learn to create cron expressions to meet our scheduling requirements. Cronmaker.com is one such utility […]
HTTP Redirection Configuration in JBoss
In our previous article we have explained how to configure Wildcard SSL Certificate in JBoss application server. As the next step, you will have to configure HTTP redirection so as to redirect all the incoming HTTP request’s to HTTPS to make sure your Java app is completely secured. In this article we will give you […]
Wildcard SSL Certificate Configuration in JBoss
Securing the webtraffic or connection to the servers is of paramount interest for any one who wants to prevent any kind of malicious attacks on their servers. One of the most popular ways to secure the web traffic is to use https. In order to enable https, we have to buy a SSL digital certificate […]
How to Check Free Disk Space in Java
For those who manage file systems and storage in Java applications, monitoring disk space is crucial. Java provides straightforward ways to check free disk space, ensuring that applications handle storage efficiently and avoid issues related to insufficient space. This article will walk you through how to check free disk space in Java, complete with the […]
How to iterate Java HashMap
HashMap is one of the data structure in Java which implements the Map Interface. It makes use of the key value pair to store the data. Following are the four ways to iterate Java HashMap. The same approach can be used for iterating over other Map implementations like HashTable, TreeMap, etc. JaCoCo Code Coverage in […]
How to Deploy Exploded WAR file in JBoss EAP Server
In the realm of Java EE application servers, JBoss EAP (Enterprise Application Platform) stands as a market leader. Whether you’re optimizing for development or production, understanding how to deploy applications is crucial. Among deployment formats, an ‘exploded’ WAR (Web Application Archive) file offers some advantages like hot deployment and easier debugging. In this guide, we’ll […]
MySQL Scheduler Overview with Examples
MySQL Scheduler (also called Event Scheduler) lets you to schedule the tasks or events at a specified time. MySQL Event Scheduler could be very useful if you want to follow a specific schedule (predefined time or regular intervals) to execute one or more queries. When we create an Event, MySQL would be internally creating a named […]
Five minutes guide for creating SOAP web service in Java using Axis2
This tutorial is intended for Java developers who are looking forward for developing SOAP Web Service in Java . The sample SOAP web service developed here makes use of Axis2 as the web service engine. Theoretical knowledge of SOAP Web Service and practical knowledge of Eclipse IDE , ANT will be a prerequisite for understanding this […]
How to Update MySQL Collation for all tables in the schema
As per MySQL docs, MySQL Collation is a set of rules for comparing characters in a character set. MySQL collation affect how Strings are sorted and compared with each other. While creating a database table, you will have multiple collation options to choose from. Your choice of collation while creating a database mainly depends on […]