cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Subrahmanya, Noida" <>
Subject RE: xmldb pseudo protocol: Fail in getting connection
Date Fri, 08 Nov 2002 11:01:40 GMT

Would u tell me how to configure in cocoon.xconf.
I am using xml database SocratesXML 1.3.
With Thanks and Regards,
B. Subrahmanya Nayak

-----Original Message-----
From: Gianugo Rabellino []
Sent: Friday, November 08, 2002 04:34 PM
Subject: Re: xmldb pseudo protocol: Fail in getting connection

Subrahmanya, Noida wrote:

> I have a xml database which supports xml:db api's.
> I am connecting  to my database by making use of xml pseudo protocol.
> Proble is since it connects through at
> org.xmldb.api.DatabaseManager.getCollection(uri) which in turn passes
> null as username and password to method
> getCollection( uri, user,password) of our DatabaseImpl. So fails in
> getting connection. Our xml:db implementation
> Is there any way to pass username and password along with uri to method
> org.xmldb.api.DatabaseManager.getCollection.

It's not that difficult: there are two ways of doing so, and I need to 
decide which one is the best:

1. configure user and password in the general configuration (cocoon.xconf);

2. parse the URL for user/password info (tricky due to 1.2/1.3 different 
URL treatment: I've been away for a while so I don't recall if we 
dropped 1.2 compatibility away. Has any decision been made?);

and even:

3. let the sysadm set a username/password pair in cocoon.xonf and let 
the user have a chance to override the system wide values by embedding 
user and password info in the URL.

Which one would you all think is best?

Anyway, ould you please file a bug in Bugzilla to keep track of this 
issue? TIA. And, just out of curiosity, what XML:DB compliant database 
are you using?


Gianugo Rabellino

To unsubscribe, e-mail:
For additional commands, email:

To unsubscribe, e-mail:
For additional commands, email:

View raw message