What is an EJB Context?
EJBContext is an interface that is implemented by the container, and it is also a part of the bean-container contract. Entity beans use a subclass of EJBContext... Read more »
EJBContext is an interface that is implemented by the container, and it is also a part of the bean-container contract. Entity beans use a subclass of EJBContext... Read more »
If a developer doesn’t want a Container to manage transactions, it’s possible to implement all database operations manually by writing the appropriate JDBC code.... Read more »
The main reason is because there is a clear division of roles and responsabilities between the two interfaces. The home interface is your way to communicate with... Read more »
As per the specifications, there can be ‘ZERO’ or ‘MORE’ create() methods defined in an Entity Bean. In cases where create() method is not provided, the... Read more »
Static variables are only ok if they are final. If they are not final, they will break the cluster. What that means is that if you cluster your application server... Read more »
You can use CMP and BMP beans in the same application… obviously, a bean can be BMP or CMP, not both at the same time (they are mutually exclusive). There is a... Read more »
The bean class defines create methods that match methods in the home interface and business methods that match methods in the remote interface. The bean class also... Read more »
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... Read more »
Yes. In some cases the data is inserted NOT using Java application, so you may only need to retrieve the information, perform its processing, but not create your... Read more »
1. Transaction_read_uncommitted- Allows a method to read uncommitted data from a DB(fast but not wise). 2. Transaction_read_committed- Guarantees that the data you... Read more »
EJB was originally designed around remote invocation using the Java Remote Method Invocation (RMI) mechanism, and later extended to support to standard CORBA transport... Read more »
Although technically it is legal, static initializer blocks are used to execute some piece of code before executing any constructor or method while instantiating... Read more »
An entity bean represents persistent global data from the database; a session bean represents transient user-specific data that will die when the user disconnects... Read more »
EJBDoclet is an open source JavaDoc doclet that generates a lot of the EJB related source files from custom JavaDoc comments tags embedded in the EJB source file. Read more »
A ‘fine grained’ entity bean is directly mapped to one relational table, in third normal form. A ‘coarse grained’ entity bean is larger and more complex,... Read more »
Enterprise beans make use of the services provided by the EJB container, such as life-cycle management. To avoid conflicts with these services, enterprise beans... Read more »
Entity beans that have container-managed relationships with other entity beans, must be accessed in the same local scope as those related beans, and therefore typically... Read more »
Following are some of the main features supported in EJB 2.0: 1. Integration of EJB with JMS, 2. Message Driven Beans, 3. Implement additional Business methods in... Read more »
It must be abstract class. The container extends it and implements methods which are required for managing the relationships Read more »
A server group is a template of an Application Server(and its contents) i.e, it is a logical representation of the application server. It has the same structure... Read more »