public void saveEditOrder(HttpServletRequest req, HttpServletResponse res, OrderForm of, int userId, String dataSource) throws CommunicationException, NamingException
{
AccountFacadeHome yy = (AccountFacadeHome)CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome", "AccountFacade");
try {
AccountFacade remote = (AccountFacade)yy.create();
remote.setDataSource(dataSource);
int jurisdictionID = 0;
int billingAddressID = 0;
if (of.getJurisdictionID() != null && ! ((of.getJurisdictionID()).equals(""))) {
jurisdictionID = (of.getJurisdictionID()).intValue();
}
billingAddressID = of.getBillToAddIdValue();
if (billingAddressID != 0 && jurisdictionID != 0) {
remote.setJurisdictionForAddress(billingAddressID,jurisdictionID);
}
remote.updateOrder(of, userId);
} catch (Exception e) {
logger.error("[Exception] SaveEditOrderHandler.Execute Handler ", e);
}
}