WOServletContext.servletContext() vs WOServletContext().servletConfig().getServletContext()
WOServletContext.servletContext() vs WOServletContext().servletConfig().getServletContext()
- Subject: WOServletContext.servletContext() vs WOServletContext().servletConfig().getServletContext()
- From: Farrukh Ijaz <email@hidden>
- Date: Thu, 1 Jul 2010 14:46:39 +0300
Hi,
Just thought to share for information.
It's NOT a Wonder bug but looks like the WebObjects bug. (correct me if I'm wrong)
A call to (WOServletContext context()).servletContext() returns null But a call to (WOServletContext context()).servletConfig().getServletContext() returns the instance of org.apache.catalina.core.ApplicationContextFacade (depending upon what server you've deployed your application on).
This class is very important if you want to communicate from Wonder to Non-Wonder Web Application deployed on the same J2EE Application Server.
Farrukh |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden