You need to change the EJB specification used when generating EJB files.
Change the ejbdoclet attribute ejbspec to "1.1" or "2.0".
By default, the current version of the ejbdoclet task creates files based on the 2.0 version of the EJB specification. If you need to change this to an earlier version of the EJB specification, simply change the ejbdoclet attribute ejbspec. Here's an example:
<ejbdoclet
ejbspec="1.1"
destdir="${dir.generated.src}"
force="${force.ejb}">
<!-- all subtasks left out for brevity -->
</ejbdoclet>
|
If your project must run on 1.1 and 2.0-compliant servers, the build process can emit multiple versions of the application, one for each specification.
Recipe 9.5 shows how to generate an EJB deployment descriptor.