I have a servlet I am porting from another environment that only needs a few services from XWiki (mostly user authentication and group membership). Is there a recommended way of getting a handle to an XWiki instance from a servlet that derives from HttpServlet? I was looking for some sort of static method I could invoke to retrieve this but haven't come across one yet. Suggestions would be appreciated. Thanks, Glenn
[email protected] wrote:
I have a servlet I am porting from another environment that only needs a few services from XWiki (mostly user authentication and group membership). Is there a recommended way of getting a handle to an XWiki instance from a servlet that derives from HttpServlet? I was looking for some sort of static method I could invoke to retrieve this but haven't come across one yet.
It's a bit hard to get a valid XWiki object, along with all its requirements, due to the monolithic structure of the old XWiki codebase (not with the new components). There is com.xpn.xwiki.XWiki#getMainXWiki which you could use. -- Sergiu Dumitriu http://purl.org/net/sergiu/
participants (2)
-
glenn_engel@agilent.com -
Sergiu Dumitriu