This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes distributable element in web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "distributable element in web.xml" Watch "distributable element in web.xml" New topic
Author

distributable element in web.xml

Sean Keane
Ranch Hand

Joined: Nov 03, 2010
Posts: 581

Hi folks,

I was wondering if anyone has any information on why WebLogic does not use the distributable element in web.xml http://docs.oracle.com/cd/E14571_01/web.1111/e13712/web_xml.htm#i1044010 ?

As WebLogic does not use this element would that imply that the J2EE spec speficies that it is optional for vendors to support this element? How would I find this information out?

When you use the distributable element and run an App on a single Tomcat server (i.e. not in a cluster) it throws an exception if you attempt to add a non-serializable object to the session. So this is a good guard when developing an App on a single Tomcat server that will eventually be deployed to a cluster i.e. it will ensure that you aren't adding an non-serializable objects to the session.

I'm guessing that since WebLogic does not use this element, that adding it will not cause WebLogic to throw an execption if you add a non-serializable object to the session. Does WebLogic have some similiar way of marking the App as being suitable for running in a distributed environment, causing it throw an exception as per my example even when the App is running on a single WebLogic Server.


Cheers,

Sean

SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: distributable element in web.xml