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.

serverdeploy.html 6.9 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>ServerDeploy Task</title>
  5. </head>
  6. <body>
  7. <h2><a name="serverdeploy">serverdeploy</a></h2>
  8. <h3><b>Description:</b></h3>
  9. <p>The <code>serverdeploy</code> task is used to run a "hot" deployment tool for
  10. vendor-specific J2EE server. The task requires nested elements which define
  11. the attributes of the vendor-specific deployment tool being executed.
  12. Vendor-specific deployment tools elements may enforce rules for which
  13. attributes are required, depending on the tool.
  14. </p>
  15. <h3>Parameters:</h3>
  16. <table border="1" cellpadding="2" cellspacing="0">
  17. <tr>
  18. <td valign="top"><b>Attribute</b></td>
  19. <td valign="top"><b>Description</b></td>
  20. <td valign="top"><b>Required</b></td>
  21. </tr>
  22. <tr>
  23. <td valign="top">action</td>
  24. <td valign="top">This is the action to be performed. For most cases this
  25. will be "deploy". Some tools support additional actions, such as "delete", "list",
  26. "undeploy", "update"...</td>
  27. <td>Yes</td>
  28. </tr>
  29. <tr>
  30. <td valign="top">source</td>
  31. <td valign="top">A fully qualified path/filename of the component to be deployed.
  32. This may be an .ear, .jar, .war, or any other type that is supported by the server.
  33. </td>
  34. <td>Tool dependant</td>
  35. </tr>
  36. </table>
  37. <h3>Nested Elements</h3>
  38. <p>The serverdeploy task supports a nested <code>classpath</code> element to set the classpath.</p>
  39. <h3>Vendor-specific nested elements</h3>
  40. <h3>Parameters used for all tools:</h3>
  41. <table border="1" cellpadding="2" cellspacing="0">
  42. <tr>
  43. <td valign="top"><b>Attribute</b></td>
  44. <td valign="top"><b>Description</b></td>
  45. <td valign="top"><b>Required</b></td>
  46. </tr>
  47. <tr>
  48. <td valign="top">classpath</td>
  49. <td valign="top">The classpath to be passed to the JVM running the tool.
  50. The classpath may also be supplied as a nested element.</td>
  51. <td>Tool dependant</td>
  52. </tr>
  53. <tr>
  54. <td valign="top">server</td>
  55. <td valign="top">The address or URL for the server where the component will be deployed.</td>
  56. <td>Tool dependant</td>
  57. </tr>
  58. <tr>
  59. <td valign="top">username</td>
  60. <td valign="top">The user with privileges to deploy applications to the server.</td>
  61. <td>Tool dependant</td>
  62. </tr>
  63. <tr>
  64. <td valign="top">password</td>
  65. <td valign="top">The password of the user with privileges to deploy applications to the server.</td>
  66. <td>Tool dependant</td>
  67. </tr>
  68. </table>
  69. <p>Also supported are nested vendor-specific elements.</p>
  70. <h3>Generic element</h3>
  71. This element is provided for generic Java-based deployment tools.
  72. The generic task accepts (but does not require) nested <code>arg</code>
  73. and <code>jvmarg</code> elements.
  74. A JVM will be spawned with the provided attributes. It is recommended
  75. that a vendor-specific element be used over the generic one if at all
  76. possible.
  77. <p>The following attributes are supported by the generic element.</p>
  78. <p>
  79. <table border="1" cellpadding="2" cellspacing="0">
  80. <tr>
  81. <td valign="top"><b>Attribute</b></td>
  82. <td valign="top"><b>Description</b></td>
  83. <td valign="top"><b>Required</b></td>
  84. </tr>
  85. <tr>
  86. <td valign="top">classname</td>
  87. <td valign="top">This is the fully qualified classname of the Java based
  88. deployment tool to execute.</td>
  89. <td>Yes</td>
  90. </tr>
  91. </table>
  92. </p>
  93. <h3>Nested Elements</h3>
  94. <p>The generic element supports nested &lt;arg&gt; and &lt;jvmarg&gt; elements.</p>
  95. <h3>Example</h3>
  96. <p>This example shows the use of generic deploy element to deploy a component
  97. using a Java based deploy tool:</p>
  98. <pre>
  99. &lt;serverdeploy action=&quot;deploy&quot; source=&quot;${lib.dir}/ejb_myApp.ear&quot;&gt;
  100. &lt;generic classname="com.yamato.j2ee.tools.deploy.DeployTool"
  101. classpath=&quot;${classpath}&quot;
  102. username=&quot;${user.name}&quot;
  103. password=&quot;${user.password}&quot;&gt;
  104. &lt;arg value="-component=WildStar"/&gt;
  105. &lt;arg value="-force"/&gt;
  106. &lt;jvmarg value="-ms64m"/&gt;
  107. &lt;jvmarg value="-mx128m"/&gt;
  108. &lt;/generic&gt;
  109. &lt;/serverdeploy&gt;
  110. </pre>
  111. <h3>WebLogic element</h3>
  112. <p>
  113. The WebLogic element contains additional attributes to run the
  114. <code>weblogic.deploy</code> deployment tool.
  115. <p>Valid actions for the tool are <code>deploy</code>, <code>undeploy</code>,
  116. <code>list</code>, <code>update</code>, and <code>delete</code>.
  117. <p>If the action is <code>deploy</code> or <code>update</code>,
  118. the <code>application</code> and <code>source</code> attributes must be set.
  119. If the action is <code>undeploy</code> or <code>delete</code>,
  120. the <code>application</code> attribute must be set. If the <code>username</code>
  121. attribute is omitted, it defaults to "system". The <code>password</code> attribute is
  122. required for all actions.
  123. <p>
  124. <table border="1" cellpadding="2" cellspacing="0">
  125. <tr>
  126. <td valign="top"><b>Attribute</b></td>
  127. <td valign="top"><b>Description</b></td>
  128. <td valign="top"><b>Required</b></td>
  129. </tr>
  130. <tr>
  131. <td valign="top">application</td>
  132. <td valign="top">This is the name of the application being deployed</td>
  133. <td>Yes</td>
  134. </tr>
  135. <tr>
  136. <td valign="top">component</td>
  137. <td valign="top">This is the component string for deployment targets.
  138. It is in the form <code>&lt;component&gt;:&lt;target1&gt;,&lt;target2&gt;...</code>
  139. Where component is the archive name (minus the .jar, .ear, .war
  140. extension). Targets are the servers where the components will be deployed</td>
  141. <td>Yes</td>
  142. </tr>
  143. <tr>
  144. <td valign="top">debug</td>
  145. <td valign="top">If set to true, additional information will be
  146. printed during the deployment process.</td>
  147. <td>No</td>
  148. </tr>
  149. </table>
  150. <h3>Examples</h3>
  151. <p>This example shows the use of serverdeploy to deploy a component to a WebLogic server:</p>
  152. <pre>
  153. &lt;serverdeploy action=&quot;deploy&quot; source=&quot;${lib.dir}/ejb_myApp.ear&quot;&gt;
  154. &lt;weblogic application=&quot;myapp&quot;
  155. server=&quot;t3://myserver:7001&quot;
  156. classpath=&quot;${weblogic.home}/lib/weblogic.jar&quot;
  157. username=&quot;${user.name}&quot;
  158. password=&quot;${user.password}&quot;
  159. component=&quot;ejb_foobar:myserver,productionserver&quot;
  160. debug=&quot;true&quot;/&gt;
  161. &lt;/serverdeploy&gt;
  162. </pre>
  163. <p>This example shows serverdeploy being used to delete a component from a
  164. WebLogic server:</p>
  165. <pre>
  166. &lt;serverdeploy action=&quot;delete&quot;&gt/
  167. &lt;weblogic application=&quot;myapp&quot
  168. server=&quot;t3://myserver:7001&quot;
  169. classpath=&quot;${weblogic.home}/lib/weblogic.jar&quot;
  170. username=&quot;${user.name}&quot;
  171. password=&quot;${user.password}&quot;/&gt;
  172. &lt;/serverdeploy&gt;
  173. </pre>
  174. <hr>
  175. <p align="center">Copyright &copy; 2002 Apache Software Foundation. All rights Reserved.</p>
  176. </body>
  177. </html>