A step-by-step tutorial in which we will create a Session EJB which will read a given XML file. So in this tutorial you will learn two things; how to read XML files in Java and how to add this functionality in EJBs. Every step has been explained in detail.