Building the Exit

To build an exit, you only need to include the iwcore.jar and iwutil.jar files in the compile classpath. There is no requirement for the exit to exist in any specific package, although it should not be in the default package. You should register any exits in your extension jar. The iIT wizard will generate a .jar file for the exit types it supports. You should place your exit .jar file in the etc/manager/extension directory. A register method is called based on the class denoted in the manifest of the .jar file.

Using the addExit(String fullname, String shortname) method, the exit is automatically defined for configuration. In this call, fullname is the full package name of the exit (for example, com.yourco.agents.myexit). The shortname is the alias by which the exit is accessed in the configuration.

You can use the ANT build script included in Standard Business Exits to build exits. As is the case with protocol elements (see Installing Components), if you place your exit .jar file in the etc/manager/extension directory with the literal name beginning with the letters “iw”, a register method is called.