Subject Re: Datasources and JNDI
Author Rick DeBay
For some reason Yahoo isn't sending me replies, so I'll have to
cut-and-paste off of the web site.

>You have to specify object factory in the JNDI properties (either as
>system property or initial context parameter). Then you can bind a
>reference or created object. But object factory is essential.
>
>Roman

Can you give an example please? This is a snippet of what I'm doing
now, from pure conjecture:

[create wrapped datasource and bind reference to name]
context.bind("/jdbc/clientDS",createFirebirdDS("//localhost:3050/RXS.FDB
","SYSDBA","masterkey").getDefaultReference());

[lookup reference, set on wrapped datasource, get connection]
Reference reference = (Reference)context.lookup("/jdbc/clientDS";
clientDS = new FBWrappingDataSource();
((FBWrappingDataSource)clientDS).setReference(reference);
Connection c = clientDS.getConnection();

Is this correct? What would I need to do to specify an object factory
(what name should it be bound to, and what object do I bind) in the JNDI
context?

Rick DeBay
Senior Software Developer
RxStrategies.net