com.bankframe.services.mail
Class Client

java.lang.Object
  extended bycom.bankframe.services.mail.Client

public class Client
extends java.lang.Object

The Email Client to test the email bean's functionality.
Usage:

  1. java com.bankframe.services.mail.Client from to subject message

Author:
ETU

Field Summary
static java.lang.String JNDI_LOOKUP_NAME
           
static int SEND_MAIL
           
 
Constructor Summary
Client()
           
 
Method Summary
 void callProcessDataPacket(DataPacket data)
          This callProcessDataPacket method is responsible for calling the processDataPacket method in the bean.
 DataPacket createSendMailDataPacket()
          This method creates a DataPacket for sending a new email.
 int init(java.lang.String[] args)
          The init method takes in command line parameters and initiates variables
static void main(java.lang.String[] args)
          This is the main method which makes calls to the relevant email operations depending on what the init method returns.
 void sendMail()
          This looks up the bean and passes it the data to send the email.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEND_MAIL

public static final int SEND_MAIL
See Also:
Constant Field Values

JNDI_LOOKUP_NAME

public static final java.lang.String JNDI_LOOKUP_NAME
See Also:
Constant Field Values
Constructor Detail

Client

public Client()
Method Detail

callProcessDataPacket

public void callProcessDataPacket(DataPacket data)
                           throws java.lang.Exception
This callProcessDataPacket method is responsible for calling the processDataPacket method in the bean.

Throws:
java.lang.Exception

createSendMailDataPacket

public DataPacket createSendMailDataPacket()
This method creates a DataPacket for sending a new email. It will be sent to the processDataPacket method in the bean.

Returns:
DataPacket - details for new email

init

public int init(java.lang.String[] args)
The init method takes in command line parameters and initiates variables

Returns:
int - represents the operation switch user has entered

main

public static void main(java.lang.String[] args)
This is the main method which makes calls to the relevant email operations depending on what the init method returns.


sendMail

public void sendMail()
This looks up the bean and passes it the data to send the email.



Copyright © 2004 Siebel Systems, Inc. All rights reserved.