You can create and hot-deploy a new pure scripted connector from Connector Xpress. For example, you can deploy the SDKSCRIPT to any Java CS using its associated Connector Xpress template instead of installing the connector on the Java CS through the Java CS installer. These types of connectors require configuration, however you do not need to configure the connector on the Java CS side through connector.xml. Typically, the Java CS is told about a connector type being implemented by registering it in connector.xml and restarting the Java CS.
A hot deployed connector specifies its connector.xml content as part of its metadata 'connectorXML' at the namespace level (accounting for proper XML encoding of this value). This means that a scripted connector can be created on the fly on a running Java CS without needing to restart it, or adding a static connector.xml on the Java CS host. Also, any connector configuration changes that are typically specified in connector.xml can be made active without a Java CS restart such as the connection pool settings.
Example: Sample hot-deployed connector.xml
<metadata name="connectorXML">
<value>
<!—
Contains contents of connector.xml that can be dynamically applied
to the connectorType and all live connectors via namespace metadata update
-->
<strValue>
<![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean class="com.ca.jcs.ImplBundle" id="sdkscript">
<property name="name">
<value>SDKSCRIPT</value>
</property>
. . .
<property name="connectorTypeName">
<value>SDK Script DYN Namespace</value>
</property>
. . .
<property name="defaultConnectorConfig">
<bean class="com.ca.jcs.stub.StubMetaConnectorConfig">
. . .
</bean>
</property>
</bean>
</beans>
]]>
</strValue>
</value>
</metadata>
Copyright © 2011 CA. All rights reserved. | Email CA Technologies about this topic |