Hi,
I am trying following
Context ctx = (Context) jndiCntx.lookup(fSTANDARD_ENVIRONMENT);
Object obj = ctx.lookup(fSTANDARD_JNDINAME);
And following code is returning me false
MyClass.class.isAssignableFrom(obj.getClass())
although
MyClass.class.getName().equalsIgnoreCase(obj.getClass().getName()) returns true.
I am not able to cast obj to MyClass as it throws ClassCastException.
What could be the issue?