O'Reilly logo

Applied Enterprise JavaBeans™ Technology by Kevin Boone

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

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

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