BEA WebLogic Server™ 8.1 Unleashed
by Mark Artiges, Gupreet Singh Bhasin, Bernard Ciconte, Malcolm Garland, Saranathan Govindarajan, James Huang, Subramanian Kovilmadam, Kunal Mittal, Paul J. Perrone, Tom Schwenk, Steve Steffen
Composition of a Session Bean
A Session Bean is composed of three parts: the home interface, the component interface, and the Bean class. The home interfaces list the life cycle methods of the bean, whereas the component interfaces list its business methods. The Bean class, or Bean implementation, is where you code the business logic of the bean's business methods and also define its life cycle methods. All three are required constituents of a Session Bean. If a bean needs to be accessed over the network, you must provide a remote home interface and a remote interface along with the bean implementation. With EJB 1.1, the only way to access an EJB was remotely, and hence a set of remote interfaces was mandatory.
EJB 2.0 introduced a new concept ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access