The common way is to request a stub context from
com.xpn.xwiki.util.XWikiStubContextProvider component. Either you use
component injection if you are in a component or you can also use
com.xpn.xwiki.web.Utils.getComponent(XWikiStubContextProvider.class)
in a plugin or any old architecture oriented stuff.
2012/3/8 GrĂ¼ner Heinrich <gruener.heinrich(a)googlemail.com>om>:
Hi,
I want to access a XWikiDocument from a thread
executed outside of common XWikiRequests.
Is it possible to initialize a valid XWikiContext class or to get access to
the XWikiDocument class?
Thanks, Stefan.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne