Re: Using Jivan in a Barracuda App

Thelmo Loisio <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
On Tue, 2003-11-18 at 15:03, David R Robison wrote:
> By the way... here is my code...
> 
> 		//get the XMLC object
> 		JivanDOMFactory domFactory = new JivanDOMFactory();
> 			domFactory.setServletContext(context.getConfig().getServletContext());
> 		Document page = domFactory.getInstance("/WEB-INF/jivan/SitePage.html");

I'm almost totally new to barracuda but ... I've never used that method
of getting the DOMFactory... instead set the DefaultDOMLoader within
object-repository.xml and get it as
DefaultDOMLoader.getGlobalInstance()

Then you can switch from one to another chaning the entry relative to
dom factory within the object-repository.xml ... so restarting the apps
change the factory in use...

-- 
Thelmo



--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
Vuoi innamorarti della persona giusta? Prova con match.com è facile e divertente
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2096&d=18-11
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.