I am currently working on an EAR project containing a Web Application and several EJBs.
In the Web Application deployment descriptor, I can set some "Environment Variables" (Variables tab page in RAD), that I can then override when deploying the EAR on WAS (it is asked at installation time). I can also change these variables at a later stage using the Administrative console.
In the EJB Project case, I can set EJB Environment Variables in the deployment descriptor (Bean tab page, clicking on an EJB) as well. But these variable values are never asked at deploy time, and I could not find a way to change them on the Administrative console... It seems that they are loaded at startup time from the ejb-jar.xml embedded in the EJB jar file and that this file can not be changed once the EAR has been created. I think it is strange since the purpose of variables is to make a single EAR that can adapt to multiple configurations...
In both cases, the variables can be accessed in the JNDI local context, so they really look very similar ! The problem is that I really need these variables to be set at deployment time and to be available in the EJB !
Am I missing something ?
Thanks a lot in advance for any idea !
Alexis
Randy