In the previous lesson, we installed and ran the secure HelloWorld
demo, including the HelloWorldProviderSecure component. In this
lesson, we delve into the details of the HelloWorldProviderSecure
component to see how the component was created. We start with
generating the secure connector.
As with all the Openwings demonstration components, the ant build
file used to build the component is provided as part of the component
install image. The build file for the HelloWorldProviderSecure
component is located at ${OW_HOME}/HelloWorldProviderSecure_im-0.1/build.xml.
The ant file used to generate this component contains the following
target:
<!-- This target is building a specific connector -->
<target name="connector1" depends="jar">
<java classname="com.gd.openwings.connector.synchronous.rmigss.RMIGSSConnectorBuilder"
fork="yes">
<classpath>
<pathelement location="${libDir}/ow_connector.jar"
/>
<pathelement location="${libDir}/gd_connector.jar"
/>
<pathelement location="${libDir}/gd_connector_rmigss.jar"
/>
<pathelement location="${libDir}/ow_component.jar"
/>
<pathelement location="${libDir}/ow_security.jar"
/>
<pathelement location="${libDir}/ow_identity.jar"
/>
<pathelement location="${libDir}/gd_security_login.jar"/>
<pathelement location="${libDir}/gd_java.jar"/>
<pathelement location="${targetJarFile}"/>
<pathelement location="${targetClassPath}"/>
<pathelement location="${hwSyncLib}"/>
</classpath>
<arg value="ijs"/>
<arg value="${connectorInterface1}"/>
<arg value="${connectorJarFile1}"/>
<arg value="connector1"/>
</java>
</target>
This target may be run individually with the command ant connector
or as part of the overall build by simply running ant.
See this
page in the Getting Started trail and this
page in the Developing Components trail for more information
about connector generation in general.
Next: Configure
Your Component to Use a Secure Connector