Jeff,
I see what you mean but being familiar only with LDAP JNDI I search
around for an implementation of InitialContext and found the following.
Do you have any suggestions on which one to use?
org.apache.naming.java.javaURLContextFactory
I found a general approche to initializing one.
Properties env = new Properties( );
env.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
env.put(Context.PROVIDER_URL, "jnp://hostname:1099");
env.put(Context.URL_PKG_PREFIXES,
"org.jboss.naming:org.jnp.interfaces");
InitialContext jndiContext = new InitialContext(env);
Should I go with javax.naming.spi.ObjectFactory?
Thanks,
Phil
Jeff Bonevich a �crit :
>
> Use DataSource. Configure datasource in your application, not in
> Castor. And it is not so difficult to set up a simple JNDI context,
> even a mock one, to provide the DataSource to Castor.
>
> jeff
>
> >>> [EMAIL PROTECTED] 10/8/2004 8:50:45 AM >>>
>
> Hi all,
>
> I would like to encrypt the jdbc configuration in database.xml
>
> <param name="user" value="QDDdsicy96KSHks1" />
> <param name="password" value="q4q64F6G4LF4" />
>
> My solution concists of doing just that. Parsing and decrypting and
> modifying the xml and streaming it to an ImputSource for use in the
> Castor JDO API.
>
> JDO.loadConfiguration(org.xml.sax.InputSource)
>
> Any other ideas?
>
> Sincerely,
>
> Philip Mark Donaghy
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-user
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-user
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user