Ahamed
Ahamed

Reputation: 39695

Enable URL Rewriting from config file - WebSphere Application Server (WAS 6.1)

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

Answers (2)

Aviram Segal
Aviram Segal

Reputation: 11120

You can do that using META-INF/ibmconfig in your EAR file.

Easiest way to do that is as following:

  1. Deploy your EAR file.
  2. Change the Session Management setting to whatever you want.
  3. From the 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

Udo Held
Udo Held

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

Related Questions