public void deleteCommunityPositionInfo(CommunityPositionInfo poCmtPstInf) throws Exception { CommunityPositionInfoDAO voCommunityPositionInfoDAO = new CommunityPositionInfoDAO(); try { context.getUserTransaction().begin(); voCommunityPositionInfoDAO.deleteCommunityPositionInfo(em, poCmtPstInf); context.getUserTransaction().commit(); } catch (Exception e) { try { context.getUserTransaction().rollback(); } catch (Exception ee) { System.out.println(); } throw new Exception( new StringBuffer("CommunityPositionInfoEJBServBean.deleteCommunityPositionInfo : ") .append(e.getMessage()) .toString()); } }