Appendix B. Sun Specification Alternatives

The Apache Geronimo project maintains implementations of various enterprise Java specifications. Table B-1 lists the artifactId and artifact version for all of the specifications implemented by the Geronimo project. To use one of these dependencies, use a groupId of org.apache.geronimo.specs, locate the version of the specification you want to use, and reference the dependency with the artifactId and artifact version listed in Table B-1.

Note

All artifacts in Table B-1 have a groupId of org.apache.geronimo.specs.

Table B-1. Alternate spec implementations artifacts
SpecificationSpec versionArtifact IDArtifact version
Activation1.0.2geronimo-activation_1.0.2_spec1.2
Activation1.1geronimo-activation_1.1_spec1.0.1
Activation1.0geronimo-activation_1.0_spec1.1
CommonJ1.1geronimo-commonj_1.1_spec1.0
Corba2.3geronimo-corba_2.3_spec1.1
Corba3.0geronimo-corba_3.0_spec1.2
EJB2.1geronimo-ejb_2.1_spec1.1
EJB3.0geronimo-ejb_3.0_spec1.0
EL1.0geronimo-el_1.0_spec1.0
Interceptor3.0geronimo-interceptor_3.0_spec1.0
J2EE Connector1.5geronimo-j2ee-connector_1.5_spec1.1.1
J2EE Deployment1.1geronimo-j2ee-deployment_1.1_spec1.1
J2EE JACC1.0geronimo-j2ee-jacc_1.0_spec1.1.1
J2EE Management1.0geronimo-j2ee-management_1.0_spec1.1
J2EE Management1.1geronimo-j2ee-management_1.1_spec1.0
J2EE1.4geronimo-j2ee_1.4_spec1.1
JACC1.1geronimo-jacc_1.1_spec1.0
JEE Deployment1.1MR3geronimo-javaee-deployment_1.1MR3_spec1.0
JavaMail1.3.1geronimo-javamail_1.3.1_spec1.3
JavaMail1.4geronimo-javamail_1.4_spec1.2
JAXR1.0geronimo-jaxr_1.0_spec1.1
JAXRPC1.1geronimo-jaxrpc_1.1_spec1.1
JMS1.1geronimo-jms_1.1_spec1.1
JPA3.0geronimo-jpa_3.0_spec1.1
JSP2.0geronimo-jsp_2.0_spec1.1
JSP2.1geronimo-jsp_2.1_spec1.0
JTA1.0.1Bgeronimo-jta_1.0.1B_spec1.1.1
JTA1.1geronimo-jta_1.1_spec1.1
QName1.1geronimo-qname_1.1_spec1.1
SAAJ1.1geronimo-saaj_1.1_spec1.1
Servlet2.4geronimo-servlet_2.4_spec1.1.1
Servlet2.5geronimo-servlet_2.5_spec1.1.1
STaX API1.0geronimo-stax-api_1.0_spec1.0.1
WS Metadata2.0geronimo-ws-metadata_2.0_spec1.1.1

Note

The version numbers in the artifact version column may be out of date by the time you read this book. To check on the version number, visit http://repo1.maven.org/maven2/org/apache/geronimo/specs/ in a web browser and click on the artifactId you want to add. Choose the highest version of the spec you want to depend on.

To illustrate how to use this table, if we wanted to write some code in our project that interacted with the JTA 1.0.1B specification, we would need to add the dependency shown in Example B-1 to our project.

Example B-1. Adding JTA 1.0.1B to a Maven project
<dependency>
  <groupId>org.apache.geronimo.specs</groupId>
  <artifactId>geronimo-jta_1.0.1B_spec</artifactId>
  <version>1.1.1</version>
</dependency>

Notice how the version of the artifact isn’t going to line up with the version of the specification—the previous dependency configuration adds version 1.0.1B of the JTA specification using the artifact version of 1.1.1. Be aware of this when depending on the alternate Geronimo implementations, and always double-check that you are using the latest artifact version number for your specifications.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.15.245.1