Under what conditions will NamingContext.lookup() return a javax.naming.Reference?
I have code that subscribes to multiple topics using NamingContext.lookup("topic/topicName"). The first couple of lookups return SpyTopic objects as expected. The third one returns a javax.naming.Reference, and I can't figure out why, as all three lookups use the same code.
If it helps, it only started happening when I began using JRE 1.4.1 instead of JRE 1.3.1.