By Ramakrishna on Aug 24, 2008 in EJB Tutorial | 0 Comments
Q) What are stored procedures? How is it useful? A) A STORED PROCEDURES is a set of statements/commands which reside in the database. The stored procedure is pre-compiled and saves the database the effort of parsing and compiling sql statements every time a query is run. Each database has its own stored procedure language, usually [...]
By Ramakrishna on Aug 24, 2008 in EJB Tutorial | 0 Comments
Q) Why does EJB needs two interfaces(Home and Remote Interface) A) There is a pure division of roles between the two . Home Interface is the way to communicate with the container which is responsible for creating , locating and removing beans and Remote Interface is the link to the bean that allows acces to [...]
By Ramakrishna on Aug 24, 2008 in EJB Tutorial | 0 Comments
Q) How many EJB Objects are created for a Bean? A) For a Session bean – one EJB object for one bean instance. For entity bean – it depends , if 2 users are accessing one row at a time then one EJB object is used for both the beans other wise for each bean [...]
By Ramakrishna on Aug 24, 2008 in EJB Tutorial | 0 Comments
Q) What is software architecture of EJB? A) Session and Entity EJBs consist of 4 and 5 parts respetively: 1. A remote interface (a client interacts with it), 2. A home interface (used for creating objects and for declaring business methods), 3. A bean object (an object, which actually performs business logic and EJB-specific operations). [...]