next up previous contents index
Next: JOnAS (Java Open Applicaton Up: ServerDeploy Previous: Generic element   Contents   Index

WebLogic element

The WebLogic element contains additional attributes to run the weblogic.deploy deployment tool.

Valid actions for the tool are deploy, undeploy, list, update, and delete.

If the action is deploy or update, the application and source attributes must be set. If the action is undeploy or delete, the application attribute must be set. If the username attribute is omitted, it defaults to "system". The password attribute is required for all actions.

Attribute Description Required
application This is the name of the application being deployed Yes
component This is the component string for deployment targets. It is in the form <component>:<target1>,<target2>... Where component is the archive name (minus the .jar, .ear, .war extension). Targets are the servers where the components will be deployed no
debug If set to true, additional information will be printed during the deployment process. No

Examples

This example shows the use of serverdeploy to deploy a component to a WebLogic server:

    <serverdeploy action="deploy" source="${lib.dir}/ejb_myApp.ear">
        <weblogic application="myapp"
            server="t3://myserver:7001"
            classpath="${weblogic.home}/lib/weblogic.jar"
            username="${user.name}"
            password="${user.password}"
            component="ejb_foobar:myserver,productionserver"
            debug="true"/>
    </serverdeploy>
This example shows serverdeploy being used to delete a component from a WebLogic server:
    <serverdeploy action="delete" source="${lib.dir}/ejb_myApp.jar"/>
        <weblogic application="myapp"
            server="t3://myserver:7001"
            classpath="${weblogic.home}/lib/weblogic.jar"
            username="${user.name}"
            password="${user.password}"/>
    </serverdeploy>


next up previous contents index
Next: JOnAS (Java Open Applicaton Up: ServerDeploy Previous: Generic element   Contents   Index
Andrew Marlow 2003-07-08