Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
ServletContext in portlet
Hello,
I should start with: "I'm new with Vaadin...", but its obvious :*)
So, I have Vaadin portlet deployed on Life Ray portal. In server.xml (LF's Tomcat) is 1 variable and I have to load it in this portlet. This variable contains string with path to configuration file, so I need it in portlet's init() method.
In normal web application I could use simple "((WebApplicationContext)getContext()).getHttpSession().getServletContext()", but in portlet it's not possible (because context = PortletApplicationContext2).
Simplified question: how to load parameter from server.xml in Vaadin portlet?
PS: This parameter is set by 3rd person and I can't use other configuration file for it, e.g. web.xml.
Thanks in advance
Ehm.. sorry for that dumb question :D I shouldn't ask on Friday when brain is already in "sleep mode". Solution was so simple, I just had to wait till Monday:
InitialContext ctx = new InitialContext();
ctx.lookup("java:/comp/env/foo-bar");