> 3. In Container, in the setupEnvironment() function, after creating the
> "comp" subcontext, I lookup "comp/UserTransaction" from the
> InitialContext(). Then, I cast it to a Referenceable, and bind the
> result of getReference() to "comp/UserTransaction" in the bean's
> thread-local java: namespace.
That should not be necessary. If an object to be bound implements
Referenceable the JNDI implementation will automatically store the reference
instead of the object, and it will be dereferenced on lookup.
/Rickard