DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=42463>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42463 Summary: "crossContext" and classloader issues - pls amend docu Product: Tomcat 6 Version: unspecified Platform: Other URL: http://tomcat.apache.org/tomcat-6.0- doc/config/context.html#Common%20Attributes OS/Version: other Status: NEW Severity: enhancement Priority: P2 Component: Catalina AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] when discussing sharing data between web-apps, "crossContext" is always mentioned. interesting hints/threads are: - http://marc.info/?l=tomcat-user&m=117615588807658&w=2 - http://www.fwd.at/tomcat/sharing-session-data-howto.html Suggestions: 1) In another discussion, Yoav mentions that crossContext is not demanded by any spec and thus not a focus area: if so, are there other approaches to achieve the same? If jndi, clustering, etc. easily achieve the same, pls "@deprecate" the "crossContext" and point to those 2) mention that it will not work across all web-apps of a server.xml, but only those within the same engine/host 3) (Haven't tested this entirely) if you plan to share your own (business-)beans, make sure they are not inside each web-app's war, but in $CATALINA_HOME/shared/[lib/*.jar|classes/**/*.class]. Otherwise, despite having built the war's with the same Bean1.class files, the diferent classloaders of the web-apps will cause assigning Bean1 to Bean1 with a ClassCastException 4) e.g. if you want to share e.g. application singleton objects even across hosts/engines (e.g. if your server.xml offers some services under "httpS" and some under "http"), it is probably easy to add a class with some static Object fields that will allow to share the singleton even without "crossContext" -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]