Example: Configuring a new J2C resource adapter using wsadmin

An example configuring a new J2C resource adapter follows:

To associate a resource adapter and a JNDI name to a J2C connector that is defined in a EAR module, perform the following steps:

Using Jacl:

$AdminConfig getid /Deployment:IPNMGR/

set deployments [$AdminConfig getid /Deployment:IPNMGR/]

set deploymentObject [$AdminConfig showAttribute $deployments
deployedObject]

set modules [lindex [$AdminConfig showAttribute $deploymentObject modules] 0]

foreach mod $modules {
	set rhs [lindex [split $mod #] 1]; 
	set dep [lindex [split $rhs _] 0]; 
	if {($dep == "ConnectorModuleDeployment")} {
		set rard $mod}
	}

set rard2 [$AdminConfig showAttribute $rard resourceAdapter]

$AdminConfig create J2CConnectionFactory $rard2 {{name DCM}{jndiName DCM}}

$AdminConfig save


Related reference
Example: Configuring custom properties for J2C resource adapters using wsadmin
Example: Configuring a new J2C connection factory using wsadmin
Example: Configuring new J2C authentication data entries using wsadmin



Searchable topic ID:   rxml_jcadapter
Last updated: Jun 21, 2007 4:55:42 PM CDT    WebSphere Application Server Network Deployment, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/rxml_jcadapter.html

Library | Support | Terms of Use | Feedback