12 Sep
2006
12 Sep
'06
4:26 p.m.
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
7290
Age (days ago)
7290
Last active (days ago)
0 comments
1 participants
participants (1)
-
Duke Tantiprasut