Sets the value of a J2EE resource reference.
resref [ connect-args | local-args ] entity -refname name -value value
<jag_resref entity=”entity” refname=”name” value=”value” />
Option  | 
Description  | 
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  | 
name  | 
The name of a resource reference for the given entity.  | 
Yes  | 
value  | 
The value for the reference.  | 
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 a reference in the component TheAccount in the Customer_Component package. The resource reference jdbc/EstoreDataSource is set to the value “PetStoreDB.”
Command line (all on one line):
jagtool resref Component:Customer_Component/TheAccount -refname jdbc/EstoreDataSource -value PetStoreDB
Ant build file:
<jag_resref entity="Component:Customer_Component/TheAccount" refname="jdbc/EstoreDataSource" value="PetStoreDB" />