Thursday, March 6

What is the difference in the web.xml and weblogic.xml?


Answer :

Web.xml:
An application-specific XML-based deployment descriptor file named web.xml. which lists your application's J2EE components and their configurations as J2EE modules. Each J2EE module is a collection of one or more J2EE components of the same container type (Web or EJB)

Weblogic.xml
<session-descriptor><session-param><param-name>TimeoutSecs</param-name><param-value>3600</param-value></session-param></session-descriptor>
In weblogic.xml the session timeout is set in seconds.
More importantly the timeout value set in web.xml takes precedence over weblogic.xml. If you don't set any values in web.xml, weblogic.xml takes over. I think it is better to handle session timeout in web.xml
itself since web.xml takes precedence over application server’s deployment descriptors.

No comments:

Post a Comment