Sets the value of a J2EE environment entry.
enventry [ connect-args | local-args ] entity -entryname name -value value
<jag_enventry entity=”entity” entryname=”name” value=”value” />
Option |
Description |
Default |
Required |
---|---|---|---|
connect-args | local-args |
Arguments to specify a connection to the server or to run in local mode. See “Local versus connected mode”. |
- |
Yes |
entity |
The entity identifier in the form EntityType:EntityName. |
- |
Yes |
|
The name of an environment entry for the given entity. |
- |
Yes |
|
The value for the environment entry. |
- |
Yes |
Return value |
Indicates |
---|---|
0 |
The command ran successfully; the result is true/success. |
2 |
The command did not run successfully; an exception was thrown. |
This example sets the value of an environment entry in the component TheOrder in the package Customer_Component. The value of environment entry ejb/order/OrderDAOClass is set to “com.sun.j2ee.blueprints.customer.order.dao.OrderDAOSybase”.
Command line (all on one line):
jagtool enventry Component:Customer_Component/TheOrder -entryname ejb/order/OrderDAOClass -value com.sun.j2ee.blueprints.customer.order.dao.OrderDAOSybase
Ant build file:
<jag_enventry entity="Component:Customer_Component/TheOrder" entryname="ejb/order/OrderDAOClass" value="com.sun.j2ee.blueprints.customer.order.dao.OrderDAOSybase" />
Copyright © 2005. Sybase Inc. All rights reserved. |