users@glassfish.java.net

Re: JNDI custom resource problems [solved]

From: <glassfish_at_javadesktop.org>
Date: Wed, 29 Apr 2009 03:51:06 PDT

<grumble>why doesn't Glassfish complain if it can't find the object factory you have defined when setting up the custom resource instead of just returning javax.naming.Reference object back from the lookup?</grumble>

This is JDK's behavior. When you bind a Reference with factory class name and for some reason factory class cannot be instantiated or used by JDK's naming manager, Naming Manager will simply return the Reference itself. You can refer javax.naming.spi.NamingManager
[Message sent by forum member 'jr158900' (jr158900)]

http://forums.java.net/jive/thread.jspa?messageID=344288