int messageid = 0;
try
{
InitialContext ic = CVUtility.getInitialContext();
SaveDraftLocalHome home = (SaveDraftLocalHome)ic.lookup("local/SaveDraft");
SaveDraftLocal remote = home.create();
remote.setDataSource(this.dataSource);
messageid = remote.saveDraft(userId , mailmessage );
}
catch(Exception e)
{
System.out.println("[Exception][EmailFacadeBean.saveDraft] Exception Thrown: "+e);
e.printStackTrace();