public void ejbRemove() { try { closeSession(); } catch (Exception ex) { System.out.println("Unable to close session properly: " + ex.getMessage()); } super.ejbRemove(); }
public void ejbCreate() throws CreateException { super.ejbCreate(); try { readConfigurations(); openNewSession(); // initSecurity(); } catch (Exception ex) { throw new CreateException("Unable to create client controller bean: " + ex.getMessage()); } }