Using JNDI within Plugin - Context.lookup() returning javax.naming.Reference [message #147303] |
Tue, 21 October 2003 15:16 |
Eclipse User |
|
|
|
Originally posted by: abeards.uk.ibm.com
Hi,
I am developing an Eclipse plug-in which needs to retrieve objects from JNDI
contexts. The objects involved implement Referenceable and so (I
understand) should be stored as references behind the scenes, with the
appropriate ObjectFactory being invoked to dereference within the lookup.
This works correctly in standalone code, but within an Eclipse plug-in the
dereferencing does not appear to occur, and a Reference object is returned
to the application. This Reference object seems to be correctly formed (and
I can instantiate the target object using the ref addresses contained
therein, and the factory it points to, but this is a messy solution).
Behaviour is the same regardless of the naming service being used (I have
tried both remote LDAP servers and a local FSContext)
Can anyone explain under what circumstances lookup( ) would return a
Reference like this, or has anyone come across and solved this problem?
Thanks in advance for your help,
Anthony Beardsmore
|
|
|
Powered by
FUDForum. Page generated in 0.02740 seconds