18.1. The need for connectivity

To understand why we need connectors, consider the simple application shown in outline in Figure 18.1. This EJB application uses a ‘stock quote server’ to retrieve current prices of a range of traded stocks. The quote server implements a custom protocol carried over TCP/IP, where clients connect, authenticate themselves, retrieve whatever quotes they require, and then disconnect.

Figure 18.1. An EJB application that makes use of a custom quote server. EJBs open network connections as required, download prices, then disconnect.

Of course this is just one example: EJB applications frequently need to communicate ...

Get Applied Enterprise JavaBeans™ Technology 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.