To create a login module you must first create a Java project that will hold the login module class. Later you export the login module class in a JAR file.
1. Creating a new Java project.
You create a Java project in which you implement the source code of the login module.
2. Setting required classpaths to compile the Java project.
3. Implementing the login module source code.
4. Exporting the login module class in a JAR file.
You export the class of the login module in a JAR file. Later you add the JAR file to a deployable EAR file.