18.4. A simple resource adapter
In this section, we will describe the implementation and testing of a simple, but complete, resource adapter. This will provide EJBs with access to a stock quote server, as described at the start of this chapter. This is a ‘real’ resource adapter in that it does communicate with an external resource using a custom protocol; it is not just ‘Hello World’ in a connector. To test the resource adapter, we will need to implement an EJB that uses it, and a test client for the EJB. For the purposes of testing, we will also use a ‘dummy’ quote server that runs on the local machine. Because the example is already complicated enough, this simulated server won’t do authentication. Figure 18.6 summarizes the software components ...
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.