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..
Actually, using the web.xml to declare EJB references seems very logical to me. You need a web.xml anyway for the portlet, and since web.xml already defines a wide variety of web application settings, why not make use for those existing settings instead of duplicating them in portlet.xml?