OSB-12C : Using Email transport protocol to send/receive email
Oracle service bus offers the Email transport for both receiving and sending e-mails.
In this blog, I will show how we can set up a proxy service to listen on a mailbox for new e-mail messages. For each new e-mail message, the message processing as defined in the
message flow of the proxy service is executed.
In this blog, I will show how we can set up a proxy service to listen on a mailbox for new e-mail messages. For each new e-mail message, the message processing as defined in the
message flow of the proxy service is executed.
Prerequisite:
-----------------
In order to be able to receive e-mails on the OSB, we need a running mail-server. We could
connect to an already existing e-mail server, but for this recipe to be standalone, we will use
the Apache James mail-server. Perform the following steps for the installation of Apache James
on the local machine:
1. Download the latest version of Apache James binary from: http://james.apache.
org/download.cgi#Apache_James_2.3.2_is_the_stable_version.
2. Unzip the file into a local folder.
3. Navigate to the bin folder within the Apache James binaries.
4. Locate and execute the run.bat.
5. Open a command window and open a telnet session by entering telnet localhost
4555.
6. Enter root on the Login id prompt.
7. Enter root on the Password prompt.
8. Create a new user by entering the command adduser <user> <password>.
9. Create the osbuser and osbadmin user.Along with this for this use case i have created one more user called 'testuser'.
10. List the users by entering the listusers command.
11. Enter quit to exit the telnet session and close the command window.
Now, let's install an e-mail client in order to send and receive e-mails. We will use Mozilla
Thunderbird here, but it can be replaced by any other e-mail client. Perform the following
steps to set up Thunderbird:
12. Download and install Mozilla Thunderbird from: http://www.mozilla.org/en-
US/thunderbird/.
13. Start Thunderbird by double-clicking on the icon installed on the desktop.
14. On the main window click Create a new account.
15. Enter Test User into the Your name field.
16. Enter testuser@localhost into the Email address field. Ignore the
warning message.
17. Enter testuser into the Password field.
18. Repeat step 14-17 for the OSB Admin user.
19. Click Continue.
21. Test the two e-mail accounts by sending an e-mail message from the OSB Admin
account to the Test User account (E-mail address: testuser@localhost).
We have now configured the e-mail server and an e-mail client. Let's now implement the proxy
service which consumes e-mail messages from the testuser@localhost mailbox.










We ensure you only send an email to real users and protect your reputation, Boost your email campaign, and save money with Emailmarker. email validation service
ReplyDelete