>
> Hi,
>
> Recently I'm connecting with OpenLDAP server within Turbine.
> But I have one problem with Configurations.java in Turbine package.
> If I set the LDAP server properties likes
>
> services.TurbineDirectoryService.properties.java.naming.security.principal=c
> n=Manager, o=JNDITutorial
>
> Then the TurbineResource.getString("java.naming.security.principal")
> couldn't return String.
Of course that wouldn't return the string because the name portion is
"services.TurbineDirectoryService.properties.java.naming.security.principal".
If you want to get a property value out of a service, you need to use the
TurbineDirectoryService.getProperties() method to get the
properties...assuming that TurbineDirectoryService extends
TurbineBaseService.
> As a temporary solution, I modified the getString() method in
> Configurations.java like
Could you please just post a diff so that I can see what you changed?
> It works good, but it is a temporary solution I think.
>
> How can I solve this problem without any breaking of compatibility in
> Turbine package.
Use the Services API like it is supposed to be used as I explained above.
;-)
-jon
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]