For the static OID mappings that you set with compile-time annotations,
include the corresponding deployment descriptor file in the component’s jar
file.
The following build script snippet shows how to include the deployment descriptor files.
In this script, a wildcard is used to include both the resource-adaptor-jar.xml
and the oc-resource-adaptor-jar.xml
deployment descriptors in the target jar
file.
<target name="build-http-ra" depends="compile, generate">
<jar jarfile="${artifacts}/http-ra.jar">
...
<metainf dir="${generated}/com/opencloud/slee/resources/http/META-INF" includes="*resource-adaptor-jar.xml"/>
...
</jar>
</target>