Announcement Announcement Module
No announcement yet.
PB with getBeanFactory() Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • PB with getBeanFactory()

    Hi everybody

    Sorry for the english i'm not the best with this language.


    In my ejb i've got this

    private IGammeService getGammeService(){
    if(gs != null){
    return gs;
    logger.debug("CompteEJBBean - GetGammeService - Debut");
    gs = (IGammeService)getBeanFactory().
    logger.debug("CompteEJBBean - GetGammeService - Fin");
    return gs;

    and getBeanFactory() return null !!!

    this is strange because i've also got this :

    private ICompteService getCompteService(){
    if(cs != null){
    return cs;
    logger.debug("GammeEJBBean - GetCompteService - Debut");
    cs = (ICompteService) getBeanFactory().getBean("compteService");
    logger.debug("GammeEJBBean - GetCompteService - Fin");
    return cs;

    and it works.

    in my Action I call one ejb by a proxy and after in this ejb i want to call another ejb by the getCompteService() method and that works well but in this second ejb i need cal a third by the getGammeService() method and that doesn't work at all.

    Do you have any ideas?

    thanks a lot in advance !!!

    regards from france.