>I considered the approach of removing the jndi lookup type from the JNDIConnector class all together but the compatibly concerns are what scared me away from that approach.
I agree. JNDIConnector.setLookupMethod is still used, so probably the first step should be deprecation of this method.
I would leave lookupType in JNDIConnector - after the changes initializing it to UNDEFINED hopefully JNDIConnector.setLookupMethod will be never called with anything but UNDEFINED.
I would also define lookupType in ServerPlatformBase, too (to cover exotic case mentioned by Doug - using NoPlatform on an app. server, so that the user can set correct lookupType "by hand").
Thanks,
Andrei
----- Original Message -----
From: curtisr7@xxxxxxxxx
To: eclipselink-dev@xxxxxxxxxxx
Sent: Friday, December 19, 2014 8:45:18 PM GMT -05:00 US/Canada Eastern
Subject: Re: [eclipselink-dev] Fwd: [Bug 455690] Add support to allow ServerPlatforms to do additional initialization
Andrei -
>
I would remove any remnants of lookup_type from JNDIConnector - but we have to be backward compatible).
I considered the approach of removing the jndi lookup type from the JNDIConnector class all together but the compatibly concerns are what scared me away from that approach. The bit that made me change my mind is that JNDIConnector.lookupType is protected there is a slim chance that an extender(of JNDIConnector.. is that really possible?) actually used this field and it isn't be safe to remove. Tell me I'm being overly paranoid and I'll move all of the lookupType stuff into the ServerPlatform... I just don't have enough experience to make the call.
Thanks,
Rick