Hi folks,
I'd like to write a custom ldap resource factory as same as a data
source factory. The getObjectInstance method shall return
InitialDirContext object. I have written a mock factory and noticed that
the output is cached by Tomcat. So the object is created only once (same
id in Eclipse debugger).
Now I need to verify that the InitialDirContext is still valid (conn
timeout, etc.), same as testOnBorrow with DataSource. I won't have any
reference to it after its creation. This means that I would need to wrap
that object somehow and perform the operation myself?
This is how Tomcat JDBC Pool does.
Is my assumption correct? If yes, I would need to wrap every sing method
defined in DirContext and InitialDirContext.
Thanks,
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org