private QuestionContainerBm getQuestionContainerBm() { QuestionContainerBm currentQuestionContainerBm = null; try { QuestionContainerBmHome questionContainerBmHome = (QuestionContainerBmHome) EJBUtilitaire.getEJBObjectRef( JNDINames.QUESTIONCONTAINERBM_EJBHOME, QuestionContainerBmHome.class); currentQuestionContainerBm = questionContainerBmHome.create(); } catch (Exception e) { displayError(null); } return currentQuestionContainerBm; }
private QuestionContainerBm getQuestionBm() { if (questionContainerBm == null) { try { QuestionContainerBmHome questionContainerBmHome = (QuestionContainerBmHome) EJBUtilitaire.getEJBObjectRef( JNDINames.QUESTIONCONTAINERBM_EJBHOME, QuestionContainerBmHome.class); this.questionContainerBm = questionContainerBmHome.create(); } catch (Exception e) { throw new EJBException(e.getMessage()); } } return questionContainerBm; }