Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to change EJB Environment Variables ?

75 views
Skip to first unread message

alexis....@sophis.net

unread,
Jul 4, 2008, 10:45:15 AM7/4/08
to
Hello !

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 Schnier

unread,
Jul 7, 2008, 4:09:07 PM7/7/08
to
Hi,
At the present time it is not possible to alter the settings of "env-entry" settings within the ejb-jar.xml descriptor from within WAS system management. You would need to export the application from WAS, modify the values within RAD or similar tooling, then re-install the app into WAS.

Randy

rik.j...@atosorigin.com

unread,
Mar 24, 2009, 5:14:20 AM3/24/09
to
I have exactly the same issue/question, does anyone has the answer to it?

great...@gmail.com

unread,
Jun 18, 2009, 6:43:34 AM6/18/09
to
hello all changing can happen in deployment descriptor[dd] but in runtime dd file only that is IBM provide a extra set binding file for each dd file.normal deployment descriptor file's read at deployment time [ejb-jar.xml]at runtime dd file's are ibm-ejb-jar.xmi file u need to change that.
0 new messages