I'm deploying an application under WAS 188.8.131.52. I'm a beginner at WAS, and I'm pretty lost there... This application has been tested under Tomcat 5.5 and uses Spring.
I have externalized some of the configuration using JNDI. Most of it is done through simple instances, like java.lang.String or java.lang.Integer. This works fine under Tomcat.
So, in my web.xml, I have : ...
In my spring XML configuration, I have :
Under Tomcat, I have entries under <Context> in a myapp.xml file (in conf/Catalina/localhost) :
The problem is that I have no idea of where on can create something similar to that <Environment> entry in WAS! I tried going to Resource environment providers in the console. Then, I created a new provider. Then, I select Resource environment providers > NBV Resource Provider > Resource env entries > New. But the dropdown list for referenceable is completely empty. I guess I should create a new referenceable, but I have no idea of what should go in the various fields to make it work...
Thanks for any help! [ January 05, 2006: Message edited by: Thibault Dangr�aux ]
From what I understand, you cannot create the references by hand since they use some binary-like strings but you can have WSAD/WAS create them for you in one of two ways.
Method 1: Import the project into WSAD/RAD and open up the deployment descriptors. There will be sections toward the bottom on certain tabs for how to declare resource references that will create the neccessary IBM xml files for you.
Method 2: Install the EAR onto the WAS server via the administration console. It will prompt you, as part of its install steps to resolve environment entries.
Method 1 is not an option. First of all, I don't have WSAD/RAD. I'm using Eclipse+MyEclipse, which worked fine for my needs so far. Also, the production environment will be different from my dev environment. The whole point of externalizing these settings is so that a single war can be deployed on several servers with different settings. I don't want to have to open the project under an IDE to make simple configuration changes.
As for method 2, I am indeed prompted during the installation/upgrade. WAS recognizes my env entries correctly. Except I have no idea on how to setup the resources to map to under WAS. So I'm stuck at the "Map resource env entry references to resources" page - my entry refs are recognized correctly by WAS, my problem is really with creating these resources and linking to them correctly.