paramobj Reference information that can be used in creating an object.paramname of this object relative to nameCtx (optional).paramnameCtx context relative to which the name parameter specified. If null, name is relative to the default initial context.paramenvironment possibly null environment used in creating the object.returnobject created; null if an object cannot be created.exceptionjava.lang.Exception if this object factory encountered an exception while attempting to create an object. if (refObj == null || !(refObj instanceof Reference)) return null; Reference ref = (Reference) refObj; if (ref.getClassName(). equals(UserTransactionImpl.class.getName())) { // create a new object return new UserTransactionImpl(); } return null;
if (refObj == null || !(refObj instanceof Reference)) return null; Reference ref = (Reference) refObj; if (ref.getClassName(). equals(UserTransactionImpl.class.getName())) { // create a new object return new UserTransactionImpl(); } return null;