1 Reply Latest reply on Nov 24, 2006 4:01 PM by Peter Johnson

    How to specify ejb-ref / ejb-local-ref in Portlet deployment

    Margot Media Newbie

      Hello,

      I want to call a SessionBean directly from within a Portlet.
      How can I specify the ejb-ref / ejb-local-ref parameters (which I need to specify in order to get the JNDI lookup with the InitialContext work)?

      As far as I can see, there is no possibility to do this in portlet.xml.
      My current workaround is to put the ejb-ref / ejb-local-ref paramaters into a web.xml (note that I don't use any Servlets -- just Portlets and EJB), but I don't think this is a good practice..

      Best regards,
      M.