MailMessage mailmessage = null;
try
{
InitialContext ic = CVUtility.getInitialContext();
GetMailLocalHome home = (GetMailLocalHome)ic.lookup("local/GetMail");
GetMailLocal remote = home.create();
remote.setDataSource(this.dataSource);
mailmessage = (MailMessage)remote.getMailMessage(userId , preference );
}
catch(Exception e)
{
System.out.println("[Exception][EmailFacadeBean.getMailMessage] Exception Thrown: "+e);