Websphere loading property files




















There are various variables described in ibm. Ah yes just noticed that after posting. I will try this out. Hassan Tarreriti Hassan Tarreriti 11 3 3 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses.

Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Linked 2. Related 1. Hot Network Questions. Question feed. Does anyone know how to specify a startup class in IBM webSphere, I want to get a class to load when the app server starts that will read property values from a properties file, and put these into static data members.

I know you can do this in weblogic, has anyone done the same in websphere? Joe Paolangeli. Do you want to preload a generic class or a servlet? I am not sure how to preload a generic class but I do know how to preload a servlet. If you have your servlet defined in Websphere Admin console then there is "Load at startup" option on the advanced tab. If you are using the auto-invoker servlet created by the Create Application Wizard then you need an xml servlet configuration file in your servlet folder file extension ends with.

You will find the details about the configuration file in the infocenter documentation. You could also copy an existing one from some of the sample servlets. Good Luck, Joe. Ravindra Guravannavar. Click on the desired application, for this tutorial it will be DefaultApplication. In the next page, and under References , select Shared library references.

Select the library, and click on the right arrow button, to include it in the list of chosen libraries, and click OK. In JBoss, we need to create a new module, which is actually a group of folders and a single file. Inside the main folder, place your properties file, then create an empty document, name it module.



0コメント

  • 1000 / 1000