try {
InitialContext ic = CVUtility.getInitialContext();
EventsLocalHome home = (EventsLocalHome)ic.lookup("local/Events");
EventsLocal local = home.create();
local.setDataSource(this.dataSource);
result = local.editEvent(mapEvent, userID);
} catch (Exception exe) {
exe.printStackTrace();
result = -1;
}
return result;