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 ...

Get Enterprise JavaBeans™ Component Architecture: Designing and Coding Enterprise Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.