I have an example using castor connecting to an AS/400 database using the
<driver> configuration in my database xml.

I would like to switch to using <jndi>.

When I use jndi, is there some mechanism to specify the username and
password?

If were not using castor I would acquire my reference to the datasource
using jndi and then get a connection using something like:
        dataSource.getConnection(userId, password);

Using the <jndi> specification in my database xml, castor is correctly
obtaining a reference to the data source.  However, it doesn't have the
correct userid/password.

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to