O'Reilly logo

Enterprise JavaBeans™ Component Architecture: Designing and Coding Enterprise Applications by Paul Anderson, Gail Anderson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

4.1. Session Beans and JDBC

Suppose a record store wants to provide users with a way to display recordings from their Music Collection database. If the database is accessible from an EJB, recordings could be available on the web and from computers in the store. The Music EJB will be similar to our Loan EJB from the previous chapter. Using the J2EE architecture, Figure 4-1 shows the design approach.

Figure 4-1. Architectural Overview of the Music Collection Enterprise Application

On the database server machine, the Music EJB accesses the Music Collection database in read-only mode. Music EJB is a stateless session bean because it does not perform ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required