I have another webapp that needs to call xwiki methods that needs a context.
Would I need to create a new context (below) or can I find the context
object from somewhere?
context = new XWikiContext();
context.setUser("XWiki.superadmin");
config = new XWikiConfig();
config.put("xwiki.store.class",
"com.xpn.xwiki.store.XWikiHibernateStore");
config.put("xwiki.store.hibernate.path", "./hibernate.cfg.xml");
config.put("xwiki.store.hibernate.updateschema", "1");
config.put("xwiki.virtual", "1");
xwiki = new XWiki(config, context)
context.setWiki(xwiki);
db = "xwiki"
context.setDatabase(db);
Thanks
Duke