Q.Every EJB class file has
Correct answer: two accompanying interfaces and one XML file
Explanation
Every Enterprise Java Beans (EJB) class file has two accompanying interfaces and one XML file. Two interfaces -1 Remote interface - specifies the business methods that clients of the object can invoke. 2. Home interface - Defines EJB life cycle methods such as a method to create and retrieve a reference to the bean object. One XML file - The XML file contains the deployment descriptor, which declares the contents of the module, defines the structure and external dependencies of the beans in the module and describes how the beans are to be used at run time.
Every Enterprise Java Beans (EJB) class file has two accompanying interfaces and one XML file. Two interfaces -1 Remote interface - specifies the business methods that clients of the object can invoke. 2. Home interface - Defines EJB life cycle methods such as a method to create and retrieve a reference to the bean object. One XML file - The XML file contains the deployment descriptor, which declares the contents of the module, defines the structure and external dependencies of the beans in the module and describes how the beans are to be used at run time.