You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2007/05/23 13:31:08 UTC

DO NOT REPLY [Bug 42494] New: - local JNDI context indefinitely caches objects from custom object factories

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42494>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42494

           Summary: local JNDI context indefinitely caches objects from
                    custom object factories
           Product: Tomcat 5
           Version: 5.5.17
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: apache.org@schildbach.de


Currently, if I locate a resource (e.g. EJB Home) from Tomcat's JNDI Context,
and I have configured a custom Object Factory for that location, the factory is
only exactly queried once.

This is very problematic in the EJB case because if the connection to the server
has been broken (for example by an application server restart), as this renders
the handle invalid and there is no way to get another handle on the same bean
again (apart from restarting Tomcat).

This is on Tomcat 5.5.17, but is most likely broken on 5.5.23, too.

Please note that Tomcats behaviour is also conflicting with the docs:

"Every time your web application calls lookup() on a context entry that is bound
to this factory, the getObjectInstance() method is called, ..." (quoted from
JNDI resources howto, Adding custom resource factories)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 42494] - local JNDI context indefinitely caches objects from custom object factories

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42494>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42494





------- Additional Comments From apache.org@schildbach.de  2007-05-23 05:47 -------
I repeat:

"Every time your web application calls lookup() on a context entry that is bound
to this factory, the getObjectInstance() method is called, ..." (quoted from
JNDI resources howto, Adding custom resource factories)

How can I programmatically reload an application from the application itself, in
a J2EE-conformant manner?


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 42494] - local JNDI context indefinitely caches objects from custom object factories

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42494>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42494


remm@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




------- Additional Comments From remm@apache.org  2007-05-23 05:14 -------
Factories are indeed resolved once. You should reload the application.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org