If I redeploy an entity bean in a running jboss server(2.0 Final) and there is
a change in of the env-entry values in the ejb-jar.xml descriptor, the bean
does not see the updated value. For example, if I redeploy a bean and there
is a change
from:
<env-entry>
<env-entry-name>projectRootContextName</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>java:com.dscape.ProjectDirContext</env-entry-value>
</env-entry>
to:
<env-entry>
<env-entry-name>projectRootContextName</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>dscape:ProjectDirContext</env-entry-value>
</env-entry>
Any attempt to lookup projectRootContextName in the java:comp/env context still
sees the old value. This is the code being used to perform the lookup:
InitialContext initContext = new InitialContext();
Context envCtx = (Context) initContext.lookup("java:comp/env");
String projectRootContextName = (String) envCtx.lookup("projectRootContextName");
Is this the desired behavior?
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]