[jboss-user] [EJB 3.0] - Re: Requesting the EJB container to remove an instance
ALRubinger
do-not-reply at jboss.com
Fri Mar 13 09:33:29 EDT 2009
I recommended adding onto SessionProxy:
http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/trunk/proxy-spi/src/main/java/org/jboss/ejb3/proxy/spi/intf/SessionProxy.java
...to add a "removeTarget()" method. Usage becomes:
Object proxy = jndiContext.lookup("MyBean/remote");
| SessionProxy sProxy = (SessionProxy)proxy;
| sProxy.removeTarget();
...which would be No-op for SLSB/Singleton and remove the underlying bean context and session ID from the cache for SFSB.
S,
ALR
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217865#4217865
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217865
More information about the jboss-user
mailing list