WebSphere Adapter for Email
Tutorial 2: Creating and exporting an outbound EAR file
In this tutorial you will create your own EAR file and deploy it
to the test server. You will see how the adapter processes outbound requests,
how data is transformed for known MIME types, and how data is passed through
the system. You will also learn about SMTP protocol functions and mail-attachment
support.
Sub-topics
- Creating the adapter project
To begin the process of creating a module to communicate with an Email service, you create an adapter project. The adapter project contains the adapter itself plus other related artifacts. You create the project by importing the RAR file, which was copied to your local file system during installation, into WebSphere® Integration Developer.
- Configuring the adapter for outbound processing
Use the enterprise service discovery wizard to select business objects and services and to generate artifacts. You can run this tutorial in pass-through or data transformation mode by defining the configuration settings differently.
- Exporting the module as an EAR file
After you have created an outbound module in the enterprise service discovery wizard, deploy it to the test server. This task is optional and is only needed in case you must use the following troubleshooting procedure.
- Running the module in the test environment
Confirm that your adapter project works by running the EmailOutbound module in WebSphere Integration Developer's integrated test environment.
- Verifying the test results
To determine whether your test was successful, use the Email client to verify that your mail was sent by the mail server. You can also check if your test was successful using the JSP client to examine the System.out log or trace.log files under the log/server1 directory.
- Custom data bindings
WebSphere Process Server 6.0.2 provides the following sample custom EIS data bindings: Delimited, FixedWidth, and NameValue. The detailed steps for configuring these data bindings are located in WPS_install_directory\samples\doc\CustomEISDataBinding\index.html. The source code for the data binding is also provided and can be modified as needed.
- Troubleshooting the tutorial
If WebSphere Integration Developer generates any errors while running the sample scenario, deploy the provided EAR file directly onto WebSphere Process Server using the administrative console.
Terms of use |
Last updated: Mon 30 Oct 2006 03:44:38
(c) Copyright IBM Corporation 2005, 2006.
This information center is powered by Eclipse technology (http://www.eclipse.org)