You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

ejb.html 24 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>Ant EJB Tasks</title>
  5. </head>
  6. <body>
  7. <h1>Ant EJB Tasks User Manual</h1>
  8. <p>by</p>
  9. <!-- Names are in alphabetical order, on last name -->
  10. <ul>
  11. <li>Tim Fennell (<a href="mailto:tfenne@rcn.com">tfenne@rcn.com</a>)</li>
  12. <li>Conor MacNeill (<a href="mailto:conor@cortexebusiness.com.au">conor@cortexebusiness.com.au</a>)</li>
  13. </ul>
  14. <p>Version 1.1 - 2000/07/18</p>
  15. <hr>
  16. <h2>Table of Contents</h2>
  17. <ul>
  18. <li><a href="#introduction">Introduction</a></li>
  19. <li><a href="#ejbtasks">EJB Tasks</a></li>
  20. </ul>
  21. <hr>
  22. <h2><a name="introduction">Introduction</a></h2>
  23. <p>Ant provides a number of optional tasks for developing
  24. <a href="http://java.sun.com/products/ejb">Enterprise Java Beans (EJBs)</a>.
  25. In general these tasks are specific to the particular vendor's EJB Server. At present the tasks support
  26. <a href="http://www.bea.com">Weblogic</a> 4.5.1 and 5.1 EJB servers. Over time we expect further optional tasks
  27. to support additional EJB Servers.
  28. <hr>
  29. <h2><a name="ejbtasks">EJB Tasks</a></h2>
  30. <table border="1" cellpadding="5">
  31. <tr><td>Task</td><td>Application Servers</td></tr>
  32. <tr><td><a href="#ddcreator">ddcreator</a></td><td>Weblogic 4.5.1</td></tr>
  33. <tr><td><a href="#ejbc">ejbc</a></td><td>Weblogic 4.5.1</td></tr>
  34. <tr><td><a href="#wlrun">wlrun</a></td><td>Weblogic 4.5.1 and 5.1</td></tr>
  35. <tr><td><a href="#wlstop">wlstop</a></td><td>Weblogic 4.5.1 and 5.1</td></tr>
  36. <tr><td><a href="#ejbjar">ejbjar</a></td><td>Weblogic 5.1</td></tr>
  37. </table>
  38. <hr>
  39. <h2><a name="ddcreator">ddcreator</a></h2>
  40. <h3><b>Description:</b></h3>
  41. <p>ddcreator will compile a set of Weblogic text-based deployment descriptors into a serialized
  42. EJB deployment descriptor. The selection of which of the text-based descriptors are to be compiled
  43. is based on the standard Ant include and exclude selection mechanisms.
  44. <h3>Parameters:</h3>
  45. <table border="1" cellpadding="2" cellspacing="0">
  46. <tr>
  47. <td valign="top"><b>Attribute</b></td>
  48. <td valign="top"><b>Description</b></td>
  49. <td align="center" valign="top"><b>Required</b></td>
  50. </tr>
  51. <tr>
  52. <td valign="top">descriptors</td>
  53. <td valign="top">This is the base directory from which descriptors are selected.</td>
  54. <td valign="top" align="center">Yes</td>
  55. </tr>
  56. <tr>
  57. <td valign="top">dest</td>
  58. <td valign="top">The directory where the serialised deployment descriptors will be written</td>
  59. <td valign="top" align="center">Yes</td>
  60. </tr>
  61. <tr>
  62. <td valign="top">classpath</td>
  63. <td valign="top">This is the classpath to use to run the underlying weblogic ddcreator tool.
  64. This must include the <code>weblogic.ejb.utils.DDCreator</code> class</td>
  65. <td valign="top" align="center">No</td>
  66. </tr>
  67. </table>
  68. <h3>Examples</h3>
  69. <pre>&lt;ddcreator descriptors=&quot;${dd.dir}&quot;
  70. dest=&quot;${gen.classes}&quot;
  71. classpath=&quot;${descriptorbuild.classpath}&quot;&gt;
  72. &lt;include name=&quot;*.txt&quot; /&gt;
  73. &lt;/ddcreator&gt;</code>
  74. </pre>
  75. <hr>
  76. <h2><a name="ejbc">ejbc</a></h2>
  77. <h3><b>Description:</b></h3>
  78. <p>The ejbc task will run Weblogic's ejbc tool. This tool will take a serialised deployment descriptor,
  79. examine the various EJB interfaces and bean classes and then generate the required support classes
  80. necessary to deploy the bean in a Weblogic EJB container. This will include the RMI stubs and skeletons
  81. as well as the classes which implement the bean's home and remote interfaces.
  82. <p>
  83. The ant task which runs this tool is able to compile several beans in a single operation. The beans to be
  84. compiled are selected by including their serialised deployment descriptors. The standard ant
  85. <code>include</code> and <code>exclude</code> constructs can be used to select the deployment descriptors
  86. to be included.
  87. <p>
  88. Each descriptor is examined to determiune whether the generated classes are out of date and need to be
  89. regenerated. The deployment descriptor is de-serialized to discover the home, remote and
  90. implementation classes. The corresponding source files are determined and checked to see their
  91. modification times. These times and the modification time of the serialised descriptor itself are
  92. compared with the modification time of the generated classes. If the generated classes are not present
  93. or are out of date, the ejbc tool is run to generate new versions.
  94. <h3>Parameters:</h3>
  95. <table border="1" cellpadding="2" cellspacing="0">
  96. <tr>
  97. <td valign="top"><b>Attribute</b></td>
  98. <td valign="top"><b>Description</b></td>
  99. <td align="center" valign="top"><b>Required</b></td>
  100. </tr>
  101. <tr>
  102. <td valign="top">descriptors</td>
  103. <td valign="top">This is the base directory from which the serialised deployment descriptors are selected.</td>
  104. <td valign="top" align="center">Yes</td>
  105. </tr>
  106. <tr>
  107. <td valign="top">dest</td>
  108. <td valign="top">The base directory where the generated classes, RIM stubs and RMI skeletons are written</td>
  109. <td valign="top" align="center">Yes</td>
  110. </tr>
  111. <tr>
  112. <td valign="top">manifest</td>
  113. <td valign="top">The name of a manifest file to be written. This manifest will contain an entry for each EJB processed</td>
  114. <td valign="top" align="center">Yes</td>
  115. </tr>
  116. <tr>
  117. <td valign="top">src</td>
  118. <td valign="top">The base directory of the source tree containing the source files of the home interface,
  119. remote interface and bean implementation classes.</td>
  120. <td valign="top" align="center">Yes</td>
  121. </tr>
  122. <tr>
  123. <td valign="top">classpath</td>
  124. <td valign="top">This classpath must include both the <code>weblogic.ejbc</code> class and the
  125. classfiles of the bean, home interface, remote interface, etc of the bean being
  126. processed.</td>
  127. <td valign="top" align="center">No</td>
  128. </tr>
  129. </table>
  130. <h3>Examples</h3>
  131. <pre>&lt;ejbc descriptors=&quot;${gen.classes}&quot;
  132. src=&quot;${src.dir}&quot;
  133. dest=&quot;${gen.classes}&quot;
  134. manifest=&quot;${build.manifest}&quot;
  135. classpath=&quot;${descriptorbuild.classpath}&quot;&gt;
  136. &lt;include name=&quot;*.ser&quot; /&gt;
  137. &lt;/ejbc&gt;</code>
  138. </pre>
  139. <hr>
  140. <h2><a name="wlrun">wlrun</a></h2>
  141. <h3><b>Description:</b></h3>
  142. <p>The <code>wlrun</code> task is used to start a weblogic server. The task runs
  143. a weblogic instance in a separate Java Virtual Machine. A number of parameters
  144. are used to control the operation of the weblogic instance. Note that the task,
  145. and hence ant, will not complete until the weblogic instance is stopped.
  146. <h3>Parameters:</h3>
  147. <table border="1" cellpadding="2" cellspacing="0">
  148. <tr>
  149. <td valign="top"><b>Attribute</b></td>
  150. <td valign="top"><b>Description</b></td>
  151. <td align="center" valign="top"><b>Required</b></td>
  152. </tr>
  153. <tr>
  154. <td valign="top">home</td>
  155. <td valign="top">The location of the weblogic home that is to be used. This is the location
  156. where weblogic is installed.</td>
  157. <td valign="top" align="center">Yes</td>
  158. </tr>
  159. <tr>
  160. <td valign="top">classpath</td>
  161. <td valign="top">The classpath to be used with the Java Virtual Machine that runs the Weblogic
  162. Server. This is typically set to the Weblogic boot classpath.</td>
  163. <td valign="top" align="center">Yes</td>
  164. </tr>
  165. <tr>
  166. <td valign="top">wlclasspath</td>
  167. <td valign="top">The weblogic classpath used by the Weblogic Server.</td>
  168. <td valign="top" align="center">No</td>
  169. </tr>
  170. <tr>
  171. <td valign="top">properties</td>
  172. <td valign="top">The name of the server's properties file within the weblogic home directory
  173. used to control the weblogic instance.</td>
  174. <td valign="top" align="center">Yes</td>
  175. </tr>
  176. <tr>
  177. <td valign="top">name</td>
  178. <td valign="top">The name of the weblogic server within the weblogic home which is to be run.
  179. This defaults to &quot;myserver&quot;</td>
  180. <td valign="top" align="center">No</td>
  181. </tr>
  182. <tr>
  183. <td valign="top">policy</td>
  184. <td valign="top">The name of the security policy file within the weblogic home directory that
  185. is to be used. If not specified, the default policy file <code>weblogic.policy</code>
  186. is used.</td>
  187. <td valign="top" align="center">No</td>
  188. </tr>
  189. <tr>
  190. <td valign="top">jvmargs</td>
  191. <td valign="top">Additional argument string passed to the Java Virtual Machine used to run the
  192. Weblogic instance.</td>
  193. <td valign="top" align="center">No</td>
  194. </tr>
  195. <tr>
  196. <td valign="top">args</td>
  197. <td valign="top">Additional argument string passed to the Weblogic instance.</td>
  198. <td valign="top" align="center">No</td>
  199. </tr>
  200. </table>
  201. <hr>
  202. <h2><a name="wlstop">wlstop</a></h2>
  203. <h3><b>Description:</b></h3>
  204. <p>The <code>wlstop</code> task is used to stop a weblogic instance which is currently running.
  205. To shut down an instance you must supply both a username and a password. These will be stored
  206. in the clear in the build script used to stop the instance. For security reasons, this task is
  207. therefore only appropriate in a development environment.
  208. <h3>Parameters:</h3>
  209. <table border="1" cellpadding="2" cellspacing="0">
  210. <tr>
  211. <td valign="top"><b>Attribute</b></td>
  212. <td valign="top"><b>Description</b></td>
  213. <td align="center" valign="top"><b>Required</b></td>
  214. </tr>
  215. <tr>
  216. <td valign="top">classpath</td>
  217. <td valign="top">The classpath to be used with the Java Virtual Machine that runs the Weblogic
  218. Shutdown comment.</td>
  219. <td valign="top" align="center">Yes</td>
  220. </tr>
  221. <tr>
  222. <td valign="top">user</td>
  223. <td valign="top">The username of the account which will be used to shutdown the server</td>
  224. <td valign="top" align="center">Yes</td>
  225. </tr>
  226. <tr>
  227. <td valign="top">password</td>
  228. <td valign="top">The password for the account specified in the user parameter.</td>
  229. <td valign="top" align="center">Yes</td>
  230. </tr>
  231. <tr>
  232. <td valign="top">url</td>
  233. <td valign="top">The URL which describes the port to which the server is listening for T3 connections.
  234. For example, t3://localhost:7001</td>
  235. <td valign="top" align="center">Yes</td>
  236. </tr>
  237. <tr>
  238. <td valign="top">delay</td>
  239. <td valign="top">The delay in seconds after which the server will stop. This defaults to an
  240. immediate shutdown.</td>
  241. <td valign="top" align="center">No</td>
  242. </tr>
  243. </table>
  244. <hr>
  245. <h2><a name="ejbjar">ejbjar</a></h2>
  246. <h3><b>Description:</b></h3>
  247. <p>This task is designed to support building of arbitrary EJB1.1 jar files. Support is currently
  248. provided for 'vanilla' EJB1.1 jar files - i.e. those containing only the user generated class
  249. files and the standard deployment descriptor. Nested elements provide support for vendor
  250. specific deployment tools. Currently, a nested element is provided for building Weblogic 5.1
  251. session/entity beans using the weblogic.ejbc tool as well as a nested element for building
  252. TOPLink for WebLogic 2.5.1-enabled entity beans.</p>
  253. <p>This task supports two approaches to creating ejb jar files. The first approach assumes a particular
  254. naming convention for deployment descriptor files. For an Account bean, for example, the deployment
  255. descriptor would be named <code>Account-ejb-jar.xml</code>. This naming convention allows the task to
  256. distinguish deployment descriptors without relying on their positioning within a source tree. It is
  257. also used to derive the name of the .jar file which is generated. For the example this would be
  258. <code>Account.jar</code>. Vendor specific files are assumed to be named in a similar fashion. The
  259. deployment descriptor file which defines additional weblogic specific information for the above bean
  260. would be <code>Account-weblogic-ejb-jar.xml</code>.
  261. The second approach does not require a naming convention. This approach uses a specified a jar name
  262. for the resultant ejb jar. If the jar name is present, then no naming convention is required. If the
  263. jar name is not specified, then the default naming convention is expected for the deployment descriptor
  264. files.
  265. <p>The task works as a directory scanning task, and performs an action for each deployment descriptor
  266. found. As such the includes and excludes should be set to ensure that all desired EJB1.1
  267. descriptors are found, but no application server descriptors are found. For each descriptor
  268. found, ejbjar will parse the deployment descriptor to determine the necessary class files which
  269. implement the bean. These files are assembled along with the deployment descriptors into a well
  270. formed EJB jar file. Note that support classes used by the bean but which are not part of the
  271. bean's interfaces are not included in the assembled jar. These need to be collected into a
  272. separate support jar file.</p>
  273. <p>If no nested vendor-specific deployment elements are present, the task will simply generate a
  274. generic EJB jar. Such jars are typically used as the input to vendor-specific deployment tools.
  275. For each nested deployment element, a vendor specific deployment tool is run to generate a jar file
  276. ready for deployment in that vendor's EJB container. Note that at this time the only supported tool is
  277. Weblogic's ejbc tool.
  278. <p>The jar files are only built if they are out of date. Each deployment tool element will examine
  279. its target jar file and determine if it is out of date with respect to the class files and
  280. deployment descriptors that make up the bean. If any of these files are newer than the jar file
  281. the jar will be rebuilt otherwise a message is logged that the jar file is up to date.</p>
  282. <h3>Parameters:</h3>
  283. <table border="1" cellpadding="2" cellspacing="0">
  284. <tr>
  285. <td valign="top"><b>Attribute</b></td>
  286. <td valign="top"><b>Description</b></td>
  287. <td align="center" valign="top"><b>Required</b></td>
  288. </tr>
  289. <tr>
  290. <td valign="top">descriptordir</td>
  291. <td valign="top">The base directory under which to scan for EJB deployment descriptors. If this
  292. attribute is not specified, then the deployment descriptors must be located in
  293. the directory specified by the 'srcdir' attribute.</td>
  294. <td valign="top" align="center">No</td>
  295. </tr>
  296. <tr>
  297. <td valign="top">srcdir</td>
  298. <td valign="top">The base directory containing the .class files that make up the bean.
  299. Note that this can be the same as the descriptordir if all files are
  300. in the same directory tree.</td>
  301. <td valign="top" align="center">Yes</td>
  302. </tr>
  303. <tr>
  304. <td valign="top">destdir</td>
  305. <td valign="top">The base directory into which generated jar files are deposited. Jar files are deposited in
  306. directories correpsonding to their location within the descriptordir namespace. Note that
  307. this attribute is only used if the task is generating generic jars (i.e. no vendor-specific
  308. deployment elements have been specified).</td>
  309. <td valign="top" align="center">Yes</td>
  310. </tr>
  311. <tr>
  312. <td valign="top">basejarname</td>
  313. <td valign="top">The base name that is used for the generated jar files. If this attribute is specified, the
  314. generic jar file name will use this value as the prefix (followed by the value specified in
  315. the 'genericjarsuffix' attibute) and the resultant ejb jar file (followed by any suffix specified
  316. in the nested element).</td>
  317. <td valign="top" align="center">No</td>
  318. </tr>
  319. <tr>
  320. <td valign="top">basenameterminator</td>
  321. <td valign="top">String value used to substring out a string from the name of each deployment descriptor found,
  322. which is then used to locate related deployment descriptors (e.g. the WebLogic descriptors).
  323. For example, a basename of '.' and a deployment descriptor called 'FooBean.ejb-jar.xml' would
  324. result in a basename of 'FooBean' which would then be used to find FooBean.weblogic-ejb-jar.xml
  325. and FooBean.weblogic-cmp-rdbms-jar.xml, as well as to create the filenames of the jar files as
  326. FooBean-generic.jar and FooBean-wl.jar. This attribute is not used if the 'basejarname' attribute
  327. is specified.</td>
  328. <td valign="top" align="center">No, defaults to '-'.</td>
  329. </tr>
  330. <tr>
  331. <td valign="top">genericjarsuffix</td>
  332. <td valign="top">String value appended to the basename of the deployment descriptor to create the filename of the
  333. generic EJB jar file.</td>
  334. <td valign="top" align="center">No, defaults to '-generic.jar'.</td>
  335. </tr>
  336. </table>
  337. <h3>Vendor-specific deployment elements</h3>
  338. Each vendor-specific nested element controls the generation of a deployable jar specific to that vendor's
  339. EJB container. The parameters for each supported deployment element are detailed here.
  340. <h3>Weblogic element</h3>
  341. <table border="1" cellpadding="2" cellspacing="0">
  342. <tr>
  343. <td valign="top"><b>Attribute</b></td>
  344. <td valign="top"><b>Description</b></td>
  345. <td align="center" valign="top"><b>Required</b></td>
  346. </tr>
  347. <tr>
  348. <td valign="top">destdir</td>
  349. <td valign="top">The base directory into which the generated weblogic ready jar files are deposited.
  350. Jar files are deposited in directories correpsonding to their location within the
  351. descriptordir namespace. </td>
  352. <td valign="top" align="center">Yes</td>
  353. </tr>
  354. <tr>
  355. <td valign="top">genericjarsuffix</td>
  356. <td valign="top">A generic jar is generated as an intermeditate step in build the weblogic deployment
  357. jar. The suffix used to generate the generic jar file is not particularly important
  358. unless it is desired to keep the generic jar file. It should not, however, be the same
  359. as the suffix setting.</td>
  360. <td valign="top" align="center">No, defaults to '-generic.jar'.</td>
  361. </tr>
  362. <tr>
  363. <td valign="top">suffix</td>
  364. <td valign="top">String value appended to the basename of the deployment descriptor to create the filename of the
  365. WebLogic EJB jar file.</td>
  366. <td valign="top" align="center">No, defaults to '.jar'.</td>
  367. </tr>
  368. <tr>
  369. <td valign="top">classpath</td>
  370. <td valign="top">The classpath to be used when running the weblogic ejbc tool. Note that this tool
  371. typically requires the classes that make up the bean to be available on the classpath.
  372. Currently, however, this will cause the ejbc tool to be run in a separate VM</td>
  373. <td valign="top" align="center">No</td>
  374. </tr>
  375. <tr>
  376. <td valign="top">keepgeneric</td>
  377. <td valign="top">This controls whether the generic fiule used as input to ejbc is retained.</td>
  378. <td valign="top" align="center">No, defaults to false</td>
  379. </tr>
  380. </table>
  381. <h3>TOPLink for Weblogic element</h3>
  382. <table border="1" cellpadding="2" cellspacing="0">
  383. <tr>
  384. <td valign="top"><b>Attribute</b></td>
  385. <td valign="top"><b>Description</b></td>
  386. <td align="center" valign="top"><b>Required</b></td>
  387. </tr>
  388. <tr>
  389. <td valign="top">destdir</td>
  390. <td valign="top">The base directory into which the generated weblogic ready jar files are deposited.
  391. Jar files are deposited in directories correpsonding to their location within the
  392. descriptordir namespace. </td>
  393. <td valign="top" align="center">Yes</td>
  394. </tr>
  395. <tr>
  396. <td valign="top">genericjarsuffix</td>
  397. <td valign="top">A generic jar is generated as an intermeditate step in build the weblogic deployment
  398. jar. The suffix used to generate the generic jar file is not particularly important
  399. unless it is desired to keep the generic jar file. It should not, however, be the same
  400. as the suffix setting.</td>
  401. <td valign="top" align="center">No, defaults to '-generic.jar'.</td>
  402. </tr>
  403. <tr>
  404. <td valign="top">suffix</td>
  405. <td valign="top">String value appended to the basename of the deployment descriptor to create the filename of the
  406. WebLogic EJB jar file.</td>
  407. <td valign="top" align="center">No, defaults to '.jar'.</td>
  408. </tr>
  409. <tr>
  410. <td valign="top">classpath</td>
  411. <td valign="top">The classpath to be used when running the weblogic ejbc tool. Note that this tool
  412. typically requires the classes that make up the bean to be available on the classpath.
  413. Currently, however, this will cause the ejbc tool to be run in a separate VM</td>
  414. <td valign="top" align="center">No</td>
  415. </tr>
  416. <tr>
  417. <td valign="top">keepgeneric</td>
  418. <td valign="top">This controls whether the generic file used as input to ejbc is retained.</td>
  419. <td valign="top" align="center">No, defaults to false</td>
  420. </tr>
  421. <tr>
  422. <td valign="top">toplinkdescriptor</td>
  423. <td valign="top">This specifes the name of the TOPLink deployment descriptor file contained in the
  424. 'descriptordir' directory.</td>
  425. <td valign="top" align="center">Yes</td>
  426. </tr>
  427. <tr>
  428. <td valign="top">toplinkdtd</td>
  429. <td valign="top">This specifies the location of the TOPLink DTD file. This can be a file path or
  430. a file URL. This attribute is not required, but using a local DTD is recommended.</td>
  431. <td valign="top" align="center">No, defaults to dtd file at www.objectpeople.com.</td>
  432. </tr>
  433. </table>
  434. <h3>Examples</h3>
  435. This example shows ejbjar being used to generate deployment jars using a Weblogic EJB container. This example
  436. requires the naming standard to be used for the deployment descriptors. Using this format will create a ejb
  437. jar file for each variation of '*-ejb-jar.xml' that is found in the deployment descriptor directory.
  438. <pre>
  439. &lt;ejbjar srcdir="${build.classes}"
  440. descriptordir="${descriptor.dir}"&gt;
  441. &lt;weblogic destdir="${deploymentjars.dir}"
  442. classpath="${descriptorbuild.classpath}"/&gt;
  443. &lt;include name="**/*-ejb-jar.xml"/&gt;
  444. &lt;exclude name="**/*weblogic*.xml"/&gt;
  445. &lt;/ejbjar&gt;
  446. </pre>
  447. This example shows ejbjar being used to generate a single deployment jar using a Weblogic EJB container. This example
  448. does not require the deployment descriptors to use the naming standard. This will create only one ejb jar file -
  449. 'TheEJBJar.jar'.
  450. <pre>
  451. &lt;ejbjar srcdir="${build.classes}"
  452. descriptordir="${descriptor.dir}"
  453. basejarname="TheEJBJar"&gt;
  454. &lt;weblogic destdir="${deploymentjars.dir}"
  455. classpath="${descriptorbuild.classpath}"/&gt;
  456. &lt;include name="**/ejb-jar.xml"/&gt;
  457. &lt;exclude name="**/weblogic*.xml"/&gt;
  458. &lt;/ejbjar&gt;
  459. </pre>
  460. This example shows ejbjar being used to generate deployment jars for a TOPLink-enabled entity bean using a
  461. Weblogic EJB container. This example does not require the deployment descriptors to use the naming standard.
  462. This will create only one TOPLink-enabled ejb jar file - 'Address.jar'.
  463. <pre>
  464. &lt;ejbjar srcdir="${build.dir}"
  465. destdir="${solant.ejb.dir}"
  466. descriptordir="${descriptor.dir}"
  467. basejarname="Address"&gt;
  468. &lt;weblogictoplink destdir="${solant.ejb.dir}"
  469. classpath="${java.class.path}"
  470. keepgeneric="false"
  471. toplinkdescriptor="Address.xml"
  472. toplinkdtd="file:///dtdfiles/toplink-cmp_2_5_1.dtd"
  473. suffix=".jar"/&gt;
  474. &lt;include name="**/ejb-jar.xml"/&gt;
  475. &lt;exclude name="**/weblogic-ejb-jar.xml"/&gt;
  476. &lt;/ejbjar&gt;
  477. </pre>
  478. </body>
  479. </html>