[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help needed with Prowler
Hi,
> i am new to using prowler.
> this is basically to retrive all documents using an XpathQuery.
> Using ozone backend and XMLRepository .addDocument() and
> XMLRepository.documentsForURL()method is it possible to get all documents ??
> remember my previous query (thanks!!)
>
> when i run the following piece of code
>
> Prowler pw = new Prowler("-fProperties.xml");
> adapterID = pw.newAdapterID("ozone");
> ProwlerSession session = pw.newSession ("", "");
> session.open (null);
> XMLResourceRepository rep = new XMLResourceRepository();
> rep.addDocument(session, newDoc, adapterID, accessPath);
The first is: You don't need to create explictly an XMLResourceRepository,
because Prowler has it's own repository. Simply use the addDocument() method of
ProwlerSession to add a document. XMLResourceRepository is a simple helper
class.
> org.w3c.dom.Document[] =rep.documentsForURL(ProwlerSession session,
> ProwlerDocumentURL documentURL)
>
> i have initialized the properties file to my ozone server
> the following is the extract of properties
>
> <adapter alias="document"
> factory="org.infozone.prowler.adapter.ProwlerDocumentAdapter"
> xmlcache="ozonexml"/>
> <resource alias="ozoneodmg"
> factory="org.infozone.prowler.resource.ozone.OzoneODMGResource">
> <prop name="url" value="ozonedb:remote://132.148.132.450:3333"/>
> </resource>
> <resource alias="ozonexml"
> factory="org.infozone.prowler.resource.ozone.OzoneXMLResource">
> <prop name="url" value="ozonedb:local://ozonexml"/>
> </resource>
>
>
>
> it gives the following trace and hangs??
>
> [info] (560) Prowler: Initializing resource manager ...
> [info] (560) ResourceManager: initialize resources 'ozoneodmg'...
> remote 192.168.192.5 3333
> send command: [DbOpen]
> sent
> waiting for result ...
> DxClient.receiving ...
>
> how does prowler work after connecting to remote ozone server.
It simply waits until the document was stored. But since ozone hangs this never
happens. This is a ozone bug. We are about to fix it and to rewise the XML
interface of ozone completely. Meanwhile you should better use the
FileXMLDatabase.
> prowler offers many features but proper documentation is not there.
> except for api's.
Yes, it still leaks documentation, but we hope to release a tutorial in the
next days to make the things more clear.
> please let me know the details and how to proceed.
Best Regards,
Gerd
--
________________________________________________________________
Gerd Mueller gerd@smb-tec.com
SMB GmbH http://www.smb-tec.com