You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Andreas Schildbach <an...@schildbach.de> on 2007/04/10 17:21:45 UTC

Disable Caching for JNDI Object Factories?

Hello everyone,

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

This is very problematic if the connection to the server has been broken 
(for example by an EJB 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.

Is there any way to disable JNDI resource caching only for Object 
Factories or completely? Is there another way around this problem?

Best regards,

Andreas


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Disable Caching for JNDI Object Factories?

Posted by Andreas Schildbach <an...@schildbach.de>.
Andreas Schildbach wrote:

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

For the records: I finally filed a bug about this one.

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

Regards,

Andreas


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org