You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Jung, Eric" <Er...@Arbella.com> on 2004/09/20 17:45:28 UTC

RE: [Configuration] why is JNDIConfiguration.getContext() private ?

Thank you!


-----Original Message-----
From: Emmanuel Bourg [mailto:smanux@lfjr.net] 
Sent: Monday, September 20, 2004 11:43 AM
To: Jakarta Commons Developers List
Subject: Re: [Configuration] why is JNDIConfiguration.getContext() private?


Hi !

Jung, Eric wrote:

> Hi,
> 
> Firstly, I love Configuration and have been using it in multiple projects
at
> multiple jobs for quite some time now.

Thanks ! That's always great to hear from our users :)


> I'd like to use JNDIConfiguration to retrieve configuration values from a
> remote JNDI repository. However, I can't find a way to configure
> JNDIConfiguration to communicate with a remote repository. Since I can't
> rely on jndi.properties, I need a programmatic way to point
> JNDIConfiguration to remote repository. 

You are right, the current implementation is too restrictive. We should 
have a set/getContext() method, and two constructors :

JNDIConfiguration() : use the default context
JNDIConfiguration(Context) : use the specified context

I'm nominating this change for the 1.0 final release.

Emmanuel Bourg


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


RE: [Configuration] why is JNDIConfiguration.getContext() private?

Posted by Eric Pugh <ep...@upstate.com>.
I agree..   Eric, why don't you supply a patch and a unit test and we can
add this..  I wrote JNDIConfiguration as my first foray into c-c many moon's
ago, so it's ncie to hear you using it!

Eric

> -----Original Message-----
> From: Jung, Eric [mailto:Eric.Jung@Arbella.com]
> Sent: Monday, September 20, 2004 5:45 PM
> To: 'Jakarta Commons Developers List'
> Subject: RE: [Configuration] why is JNDIConfiguration.getContext()
> private?
>
>
> Thank you!
>
>
> -----Original Message-----
> From: Emmanuel Bourg [mailto:smanux@lfjr.net]
> Sent: Monday, September 20, 2004 11:43 AM
> To: Jakarta Commons Developers List
> Subject: Re: [Configuration] why is
> JNDIConfiguration.getContext() private?
>
>
> Hi !
>
> Jung, Eric wrote:
>
> > Hi,
> >
> > Firstly, I love Configuration and have been using it in
> multiple projects
> at
> > multiple jobs for quite some time now.
>
> Thanks ! That's always great to hear from our users :)
>
>
> > I'd like to use JNDIConfiguration to retrieve configuration
> values from a
> > remote JNDI repository. However, I can't find a way to configure
> > JNDIConfiguration to communicate with a remote repository. Since I can't
> > rely on jndi.properties, I need a programmatic way to point
> > JNDIConfiguration to remote repository.
>
> You are right, the current implementation is too restrictive. We should
> have a set/getContext() method, and two constructors :
>
> JNDIConfiguration() : use the default context
> JNDIConfiguration(Context) : use the specified context
>
> I'm nominating this change for the 1.0 final release.
>
> Emmanuel Bourg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org