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?
Ciao,
--
Gianugo Rabellino
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]