You can deploy an Sun Enterprise Service Bus component as an Activity in a Sun Business Process Manager Business Process. Once you associate the desired component with an Activity, Sun Business Process Manager invokes it using a Web Services interface. Sun Enterprise Service Bus components that can interface with Sun Business Process Manager include the following:
Java Messaging Service (JMS)
Object Type Definitions (OTDs)
Adapters
Collaborations
Using the NetBeans IDE and Sun Business Process Manager, you can add an Activity to a Business Process, then associate that Activity with Sun Enterprise Service Bus component, for example, an Adapter. Then, when Sun Business Process Manager runs the Business Process, it automatically invokes that component via its Web Services interface.
The prjBatch_Inbound_LocalFileIn_FTPOut Project demonstrates how Sun Business Process Manager Business Processes are used with the Sun Adapter for Batch.
The prjBatch_Inbound_LocalFileIn_FTPOut Project demonstrates the following:
The BatchInbound Adapter subscribes to a local directory and periodically checks for a specific file. If the file is present, it renames the file with a GUID, and triggers the Business Process.
The BatchLocalFile gets the GUID file name from the BatchInbound Adapter, gets the associated file from a local directory and writes the file to the BatchFTP payload.
The BatchFTP Adapter publishes the file to an external directory.
Sample data files for the Sun Adapter for Batch Projects are included with the samples.