In my study I faced EJB 2.0 and I don’t understand how the bean class can be compiled. It implements interface EJBLocalHome with methods like findByPrimaryKey() and create(). In XML descriptor we have mapping of methods to some other methods. But how we can compile this code if we don’t implement this methods?
Share
Short answer: you don’t compile it. At deploy time, it’s the application container the one in charge of creating all the necessary proxy classes that actually do implement the EJB interfaces, and those classes delegate their job to the bean classes you wrote.