mm[0] = messagefile;
messageMap.put( "message" , mm );
InitialContext ic = CVUtility.getInitialContext();
MailDeliverLocalHome home = (MailDeliverLocalHome)ic.lookup("local/MailDeliver");
MailDeliverLocal remote = home.create();
remote.setDataSource(this.dataSource);
// add message to db
int newMessageID = remote.mailDeliverMessage( messageMap );
return(newMessageID);
}catch(Exception e){
System.out.println("[SyncEmailEJB] Failed in sending map to Delivery bean:" + e);
//e.printStackTrace();
}