You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Regis <xu...@gmail.com> on 2007/12/11 06:24:47 UTC

[classlib][jndi][compat] Shoud Harmony support ri's ldap provider specific properties?

Hi,

There are some provider-specific environment properties defined in ri's 
ldap provider, such as,
com.sun.jndi.ldap.connect.timeout,  com.sun.jndi.ldap.trace.ber

I'm not sure how to deal with these properties, should we support them 
for compatibility reason
or we just supply Harmony's provider specific properties, like 
org.apache.harmony.jndi.ldap.timeout?

Any thoughts or suggestions?

Best Regards,
Regis.

Re: [classlib][jndi][compat] Shoud Harmony support ri's ldap provider specific properties?

Posted by Regis <xu...@gmail.com>.
I prefer to use Harmony specific properties too, after all it's 
Harmony's provider.

Sian January wrote:
> Hi Regis,
> 
> I don't know the ldap area that well, but in my experience some of these
> kinds of properties can be quite implementation-specific and therefore
> it's not really necessary or helpful to support them in general.  However
agree.
> I'm not sure what makes more sense if we want to have a property that
> essentially does the same thing.  I would probably say we should have a
> Harmony one because I think that's what people would expect when they're
Yes, I think we would have Harmony specific ones first, then, if there were
strong reasons we could add supports for ri's.

> running Harmony, but I don't feel that strongly about it.
> 
> Regards,
> 
> Sian
> 
> 
> On 11/12/2007, Regis <xu...@gmail.com> wrote:
>> Hi,
>>
>> There are some provider-specific environment properties defined in ri's
>> ldap provider, such as,
>> com.sun.jndi.ldap.connect.timeout,  com.sun.jndi.ldap.trace.ber
>>
>> I'm not sure how to deal with these properties, should we support them
>> for compatibility reason
>> or we just supply Harmony's provider specific properties, like
>> org.apache.harmony.jndi.ldap.timeout?
>>
>> Any thoughts or suggestions?
>>
>> Best Regards,
>> Regis.
>>
> 
> 
> 

Re: [classlib][jndi][compat] Shoud Harmony support ri's ldap provider specific properties?

Posted by Sian January <si...@googlemail.com>.
Hi Regis,

I don't know the ldap area that well, but in my experience some of these
kinds of properties can be quite implementation-specific and therefore
it's not really necessary or helpful to support them in general.  However
I'm not sure what makes more sense if we want to have a property that
essentially does the same thing.  I would probably say we should have a
Harmony one because I think that's what people would expect when they're
running Harmony, but I don't feel that strongly about it.

Regards,

Sian


On 11/12/2007, Regis <xu...@gmail.com> wrote:
>
> Hi,
>
> There are some provider-specific environment properties defined in ri's
> ldap provider, such as,
> com.sun.jndi.ldap.connect.timeout,  com.sun.jndi.ldap.trace.ber
>
> I'm not sure how to deal with these properties, should we support them
> for compatibility reason
> or we just supply Harmony's provider specific properties, like
> org.apache.harmony.jndi.ldap.timeout?
>
> Any thoughts or suggestions?
>
> Best Regards,
> Regis.
>



-- 
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU

Re: [classlib][jndi][compat] Shoud Harmony support ri's ldap provider specific properties?

Posted by Regis <xu...@gmail.com>.
Sure, we can implement these features without looking to the code, but 
the question is
should we use the same property name as ri ? such as 
com.sun.jndi.ldap.connect.timeout,
i prefer to replace it by org.apache.harmony.jndi.ldap.connect.timeout.

Best Regards,
Regis.

Stepan Mishura wrote:
> On 12/11/07, Regis <xu...@gmail.com> wrote:
>> Hi,
>>
>> There are some provider-specific environment properties defined in ri's
>> ldap provider, such as,
>> com.sun.jndi.ldap.connect.timeout,  com.sun.jndi.ldap.trace.ber
>>
>> I'm not sure how to deal with these properties, should we support them
>> for compatibility reason
> 
> Are this properties well documented/included to the spec? IOW, is it
> possible to implement them without looking to the code?
> 
> Thanks,
> Stepan.
> 
>> or we just supply Harmony's provider specific properties, like
>> org.apache.harmony.jndi.ldap.timeout?
>>
>> Any thoughts or suggestions?
>>
>> Best Regards,
>> Regis.
>>
> 

Re: [classlib][jndi][compat] Shoud Harmony support ri's ldap provider specific properties?

Posted by Alexei Zakharov <al...@gmail.com>.
<sorry for late reply, just returned from the long trip> FYI, DNS
provider implementation from the org.apache.harmony.jndi.dns package
uses Harmony-specific property names. But I agree with Tim that for
compatibility reasons it would be nice to support both properties
sets.

Regards,
Alexei

2007/12/13, Tim Ellison <t....@gmail.com>:
> Sian January wrote:
> > Nothing that starts "com.sun" is part of the official spec, although as
> > Regis said, in this case it would be possible to implement these
> > properties without looking at the code.  If we're talking about the general
> > case it may not be possible or desirable to do this for other properties.
> > For example a property that improves some kind of performance on another
> > implementation would be unlikely to have the same effect on Harmony even if
> > we did support it, which could be confusing for users.
>
> Would it be possible to code our implementation to look at
> org.apache.harmony properties, then in the Sun compatibility module have
> some early init code that copies any value specified as com.som.whatever
> to org.apache.harmony.whatever?  Just trying to get the best of both
> worlds<g>.
>
> Regards,
> Tim
>

Re: [classlib][jndi][compat] Shoud Harmony support ri's ldap provider specific properties?

Posted by Tim Ellison <t....@gmail.com>.
Sian January wrote:
> Nothing that starts "com.sun" is part of the official spec, although as
> Regis said, in this case it would be possible to implement these
> properties without looking at the code.  If we're talking about the general
> case it may not be possible or desirable to do this for other properties.
> For example a property that improves some kind of performance on another
> implementation would be unlikely to have the same effect on Harmony even if
> we did support it, which could be confusing for users.

Would it be possible to code our implementation to look at
org.apache.harmony properties, then in the Sun compatibility module have
some early init code that copies any value specified as com.som.whatever
to org.apache.harmony.whatever?  Just trying to get the best of both
worlds<g>.

Regards,
Tim

Re: [classlib][jndi][compat] Shoud Harmony support ri's ldap provider specific properties?

Posted by Sian January <si...@googlemail.com>.
On 13/12/2007, Stepan Mishura <st...@gmail.com> wrote:
>
> On 12/11/07, Regis <xu...@gmail.com> wrote:
> > Hi,
> >
> > There are some provider-specific environment properties defined in ri's
> > ldap provider, such as,
> > com.sun.jndi.ldap.connect.timeout,  com.sun.jndi.ldap.trace.ber
> >
> > I'm not sure how to deal with these properties, should we support them
> > for compatibility reason
>
> Are this properties well documented/included to the spec? IOW, is it
> possible to implement them without looking to the code?


Nothing that starts "com.sun" is part of the official spec, although as
Regis said, in this case it would be possible to implement these
properties without looking at the code.  If we're talking about the general
case it may not be possible or desirable to do this for other properties.
For example a property that improves some kind of performance on another
implementation would be unlikely to have the same effect on Harmony even if
we did support it, which could be confusing for users.


Thanks,
> Stepan.
>
> > or we just supply Harmony's provider specific properties, like
> > org.apache.harmony.jndi.ldap.timeout?
> >
> > Any thoughts or suggestions?
> >
> > Best Regards,
> > Regis.
> >
>



-- 
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU

Re: [classlib][jndi][compat] Shoud Harmony support ri's ldap provider specific properties?

Posted by Stepan Mishura <st...@gmail.com>.
On 12/11/07, Regis <xu...@gmail.com> wrote:
> Hi,
>
> There are some provider-specific environment properties defined in ri's
> ldap provider, such as,
> com.sun.jndi.ldap.connect.timeout,  com.sun.jndi.ldap.trace.ber
>
> I'm not sure how to deal with these properties, should we support them
> for compatibility reason

Are this properties well documented/included to the spec? IOW, is it
possible to implement them without looking to the code?

Thanks,
Stepan.

> or we just supply Harmony's provider specific properties, like
> org.apache.harmony.jndi.ldap.timeout?
>
> Any thoughts or suggestions?
>
> Best Regards,
> Regis.
>