SDK Connector Examples

Four sample connectors are provided as part of the SDK:

  • ExampleListeningConnector.java

  • ExampleServletListeningConnector.java

  • ExampleTargetConnector.java

  • SimpleFileTargetConnector.java

These connectors can be used as the basis for new development.

The ExampleListeningConnector and the ExampleServletListeningConnector highlight the differences between a minimalist listening connector and one intended to be run as a servlet.

The ExampleTargetConnector shows the basic requirements of a working target connector.

The SimpleFileTargetConnector is an example of a target connector written to perform a specific task: write outgoing message data to the file system.

To compile these connectors you must set the Java classpath to include the Integration Broker classes in:

<PIA_HOME>\webserv\<DOMAIN>\applications\peoplesoft\PSIGW.war\WEBINF\classes

and

<PIA_HOME>\webserv\<DOMAIN>\applications\peoplesoft\PSIGW.war\WEBINF\lib\mail.jar

The Java class path must also be set to include the runtime Jar file for the installed web server, for example:

weblogic.jar for a WebLogic installation