Message mm [] = new Message[1];
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){