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.

ejbdeploy.html 4.6 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>EjbDeploy Task</title>
  5. </head>
  6. <body>
  7. <h2><a name="ejbdeploy">ejbdeploy</a></h2>
  8. <h3><b>Description:</b></h3>
  9. <p>The <code>ejbdeploy</code> task is used to run a "hot" deployment tool for
  10. vendor-specific J2EE server. The task runs the tool in a separate JVM. The
  11. task requires nested elements which define the attributes of the
  12. vendor-specific deployment tool being executed.
  13. </p>
  14. <h3>Parameters:</h3>
  15. <table border="1" cellpadding="2" cellspacing="0">
  16. <tr>
  17. <td valign="top"><b>Attribute</b></td>
  18. <td valign="top"><b>Description</b></td>
  19. <td valign="top"><b>Required</b></td>
  20. </tr>
  21. <tr>
  22. <td valign="top">action</td>
  23. <td valign="top">This is the action to be performed. For most cases this
  24. will be "deploy". Some tools support additional actions, such as "delete", "list",
  25. "undeploy", "update"...</td>
  26. <td>Yes</td>
  27. </tr>
  28. <tr>
  29. <td valign="top">classpath</td>
  30. <td valign="top">The classpath to be passed to the JVM running the tool.
  31. The classpath may also be supplied as a nested element.</td>
  32. <td>No</td>
  33. </tr>
  34. <tr>
  35. <td valign="top">serverUrl</td>
  36. <td valign="top">The URL for the server where the component will be deployed.</td>
  37. <td>No</td>
  38. </tr>
  39. <tr>
  40. <td valign="top">username</td>
  41. <td valign="top">The user with privileges to deploy applications to the server.</td>
  42. <td>No</td>
  43. </tr>
  44. <tr>
  45. <td valign="top">password</td>
  46. <td valign="top">The password of the user with privileges to deploy
  47. applications to the server.</td>
  48. <td>Yes</td>
  49. </tr>
  50. <tr>
  51. <td valign="top">source</td>
  52. <td valign="top">A fully qualified path/filename of the component to be deployed.
  53. This may be a EAR, JAR, WAR, or any other type that is supported by the server.
  54. </td>
  55. <td>No</td>
  56. </tr>
  57. </table>
  58. <h3>Nested Elements</h3>
  59. <p>The ejbdeploy task supports a nested &lt;classpath&gt;
  60. element to set the classpath.</p>
  61. <h3>Vendor-specific nested elements</h3>
  62. <p>Also supported are nested vendor-specific elements.</p>
  63. <h3>WebLogic element</h3>
  64. <p>
  65. The WebLogic element contains additional parameters to run the
  66. <code>weblogic.deploy</code> deployment tool.
  67. <p>Valid actions for the tool are <code>deploy</code>, <code>undeploy</code>,
  68. <code>list</code>, <code>update</code>, and <code>delete</code>.
  69. <p>If the action is <code>deploy</code> or <code>update</code>,
  70. the <code>application</code> and <code>source</code> attributes must be set.
  71. If the action is <code>undeploy</code> or <code>delete</code>,
  72. the <code>application</code> attribute must be set.
  73. <p>
  74. <table border="1" cellpadding="2" cellspacing="0">
  75. <tr>
  76. <td valign="top"><b>Attribute</b></td>
  77. <td valign="top"><b>Description</b></td>
  78. <td valign="top"><b>Required</b></td>
  79. </tr>
  80. <tr>
  81. <td valign="top">application</td>
  82. <td valign="top">This is the name of the application being deployed</td>
  83. <td>Yes</td>
  84. </tr>
  85. <tr>
  86. <td valign="top">component</td>
  87. <td valign="top">This is the component string for deployment targets.
  88. It is in the form <code>&lt;component&gt;:&lt;target1&gt;,&lt;target2&gt;...</code>
  89. Where component is the archive name (minus the .jar, .ear, .war
  90. extension). Targets are the servers where the components will be deployed</td>
  91. <td>Yes</td>
  92. </tr>
  93. <tr>
  94. <td valign="top">debug</td>
  95. <td valign="top">If set to true, additional information will be
  96. printed during the deployment process.</td>
  97. <td>No</td>
  98. </tr>
  99. </table>
  100. <h3>Examples</h3>
  101. <p>This example shows the use of ejbdeploy to deploy a component to a WebLogic server:</p>
  102. <pre>
  103. &lt;ejbdeploy action=&quot;deploy&quot;
  104. serverUrl=&quot;t3://myserver:7001&quot;
  105. classpath=&quot;${classpath}&quot;
  106. username=&quot;${user.name}&quot;
  107. password=&quot;${user.password}&quot;
  108. source=&quot;${lib.dir}/ejb_myApp.ear&quot;&gt;
  109. &lt;weblogic application=&quot;myapp&quot;
  110. component=&quot;ejb_foobar:myserver,productionserver&quot;
  111. debug=&quot;true&quot;/&gt;
  112. &lt;/ejbdeploy&gt;
  113. </pre>
  114. <p>This example shows ejbdeploy being used to delete a component from a
  115. WebLogic server:</p>
  116. <pre>
  117. &lt;ejbdeploy action=&quot;delete&quot;
  118. serverUrl=&quot;t3://myserver:7001&quot;
  119. classpath=&quot;${classpath}&quot;
  120. username=&quot;${user.name}&quot;
  121. password=&quot;${user.password}&quot;&gt;
  122. &lt;weblogic application=&quot;myapp&quot;/&gt;
  123. &lt;/ejbdeploy&gt;
  124. </pre>
  125. <hr>
  126. <p align="center">Copyright &copy; 2002 Apache Software Foundation. All rights Reserved.</p>
  127. </body>
  128. </html>