tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francesco Iadanza <>
Subject Memory Leak with org.apache.openejb.client.RemoteInitialContextFactory.logout()
Date Wed, 12 May 2010 09:15:32 GMT
I've got more details about RemoteInitialContextFactory.logout()
RemoteInitialContextFactory extends JNDIContext and it has an empty logout()
This leads to a possible memory leak. In fact, when using
TomcatSecurityService (or maybe any other SecurityService) in conjunction
with RemoteInitialContextFactory, a logout invocation is not propagated to
the AbstractSecurityService.logout(), so its identities Map is *never

I hope this helps

2010/5/11 Francesco Iadanza <>

> Hi all,
> is there a way to do a logoff
> using org.apache.openejb.client.RemoteInitialContextFactory ? A simple
> InitialContext.close() doesn't work.
> I use OpenEJB in production environment, using Tomcat as server and I
> expose a remote SLSB with basic Tomcat authentication.
> I see that stressing remote invocation of methods that require
> authentication, I get
> org.apache.openejb.tomcat.catalina.TomcatSecurityService$TomcatUser
> org.apache.catalina.realm.GenericPrincipal
> instances growing up until an OutOfMemoryException
> Thanks for your support
> Francesco

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message