Reputation: 39695
URLRewriting
works fine if I have my server configured, like selecting the checkbox in administrative console of Server. But I want to enable it from configuration files like application deployment descriptor or other xml. We have session-config in web.xml
, with which we can mention session timeout, similarly, Is there any way of configuring server to enable URL Rewriting without using admin console? Please let me know if you need further information.
Thanks
Upvotes: 0
Views: 2760
Reputation: 11120
You can do that using META-INF/ibmconfig
in your EAR file.
Easiest way to do that is as following:
Session Management
setting to whatever you want.Enterprise Applications
list select your application and click Export
.In the saved ear take a look at the META-INF/ibmconfig
Somewhere inside is deployment.xml
, in there you will see the sessionManagement
tag with your settings.
Adding the ibmconfig to your ear file META-INF (just copy it to your source folder) and packaging it will do what you want.
Upvotes: 1
Reputation: 12548
Nearly everything can be done with the wsadmin scripts. Check the Info Center. There is a getting started guide
After clicking in the GUI WAS can show you the script. However I'm not sure if that feature was alreay present in WAS 6.1.
Upvotes: 1