Resource Adapter Tutorial

This tutorial shows how to deploy the black box resource adapter stored in the blackbox-tx.rar file. To test the resource adapter, you will modify the examples/src/ejb/savingsaccount/SavingsAccountBean.java file so that it accesses the Cloudscape database through the resource adapter. The SavingsAccountBean.java file is also used in another example; see Running the SavingsAccountEJB Example (page 97).

Setting Up

1.
Start the J2EE server.
j2ee -verbose 
2.
Follow the instructions in the section Setting Up the Database (page 97).

Deploying the Resource Adapter

1.
Deploy a black box resource adapter that is packaged in the blackbox-tx.rar file. UNIX
 deploytool -deployConnector \ $J2EE_HOME/lib/connector/blackbox-tx.rar ...

Get J2EE™ Tutorial, The 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.