users@glassfish.java.net

Re: Re: hot-deploy of EJB

From: <forums_at_java.net>
Date: Thu, 17 Mar 2011 12:47:35 -0500 (CDT)

This is what I said on the users alias, but it wasn't correctly published to
the forums:

 

Martin,
EJB Container injects a proxy into the @EJB ref that allows to find the
actual bean by its id. The id changes on redeploy (unless redeploy uses
--keepstate=true but it adds some restrictions on the allowed changes for the
application being redeployed).
You either need to replace injection with a lookup or add a method that does
the lookup only when access of the ref fails.
HTH,
-marina


--
[Message sent by forum member 'mvatkina']
View Post: http://forums.java.net/node/782092