Modifying an Existing Resource Adapter Configuring the ra.xml File
3-2 Programming Resource Adapters for Oracle WebLogic Server
connection-impl-class com.sun.connector.blackbox.JdbcConnection
connection-impl-class
For more information, see Chapter 4, Programming Tasks.
2.
Compile the Java code for the interfaces and implementation into class files, using a standard compiler.
3.
Create the resource adapters deployment descriptors. A WebLogic resource adapter uses two deployment descriptor files:
■
ra.xml describes the resource adapter-related attributes type and its
deployment properties using the standard XML schema specified by the J2CA 1.5 Specification.
■
weblogic-ra.xml adds additional WebLogic Server-specific deployment
information, including connection and connection pool properties, security identities, Work Manager properties, and logging.
For detailed information about creating WebLogic Server-specific deployment descriptors for resource adapters, refer to
Section 3.4, Configuring the weblogic-ra.xml File,
and Appendix A, weblogic-ra.xml Schema.
4.
Package the Java classes into a Java archive JAR file with a .rar extension. Create a staging directory anywhere on your hard drive. Place the JAR file in the
staging directory and the deployment descriptors in a subdirectory called META-INF
. Then create the resource adapter archive by executing a jar command similar to
the following in the staging directory: jar cvf myRAR.rar
5.
Deploy the resource adapter archive RAR file on WebLogic Server in a test environment and test it.
During testing, you may need to edit the resource adapter deployment descriptors. You can do this using the WebLogic Server Administration Console or
manually using an XML editor or a text editor. For more information about editing deployment descriptors, see
Section 3.4, Configuring the weblogic-ra.xml File, and Configure resource adapter properties in the Oracle Fusion Middleware Oracle
WebLogic Server Administration Console Help. See also Appendix A,
weblogic-ra.xml Schema, for detailed information on the elements in the
deployment descriptor.
6.
Deploy the RAR resource adapter archive file on WebLogic Server or include it in an enterprise archive EAR file to be deployed as part of an enterprise application.
For information about these steps, see Chapter 9, Packaging and Deploying
Resource Adapters. See also Oracle Fusion Middleware Deploying Applications
to Oracle WebLogic Serverfor detailed information about deploying components and applications in general.