• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
WOServletContext.servletContext() vs WOServletContext().servletConfig().getServletContext()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: WOServletContext.servletContext() vs WOServletContext().servletConfig().getServletContext()
      • From: Lachlan Deck <email@hidden>
  • Next by Date: Newbie question about WebObjects suitability for social game (Facebook) development
  • Next by thread: Re: WOServletContext.servletContext() vs WOServletContext().servletConfig().getServletContext()
  • Index(es):
    • Date
    • Thread