Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #28510
| From | Josip Almasi <joe@vrspace.org> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: share data between two tomcat contexts? |
| Date | 2014-05-17 09:29 +0200 |
| Organization | B.net Hrvatska d.o.o. |
| Message-ID | <ll735d$hft$1@gregory.bnet.hr> (permalink) |
| References | <ll675j$4rn$1@news.m-online.net> <ll67o8$q75$1@dont-email.me> <ll69s9$sv1$1@news.m-online.net> |
On 05/17/2014 02:19 AM, Laura Schmidt wrote: > On 05/17/2014 01:41 AM, markspace wrote: >> On 5/16/2014 4:32 PM, Laura Schmidt wrote: > >>> Are there any solutions? > >> At this point consider using your own server. > > Ok, but how would this work over time? > > Assume an app "FirstApp". What would I insert into the server.xml? > > And then, what happens, when I update the app, e. g. undeploy and > redeploy it? There will be a time span where server.xml references to an > app that does not exist? I suppose so. Now that I've looked at the article (interesting one, thanks!), caller app may fail when context is unavailable during redeployment, in a number of ways. Also, redeployment of called app might delay, maybe even fail, for caller app keeps reference to called classloader. So it's up to you to make that time span shorter - don't store references to called context and classloader and object and methods anywhere, so they become unreachable as soon as possible. Reflection calls are never cached, you'll always get references to fresh classes, objects and methods. Regards...
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
share data between two tomcat contexts? Laura Schmidt <ls@mailinator.com> - 2014-05-17 01:32 +0200
Re: share data between two tomcat contexts? markspace <markspace@nospam.nospam> - 2014-05-16 16:41 -0700
Re: share data between two tomcat contexts? Laura Schmidt <ls@mailinator.com> - 2014-05-17 02:19 +0200
Re: share data between two tomcat contexts? markspace <markspace@nospam.nospam> - 2014-05-16 17:40 -0700
Re: share data between two tomcat contexts? Laura Schmidt <ls@mailinator.com> - 2014-05-17 08:16 +0200
Re: share data between two tomcat contexts? Josip Almasi <joe@vrspace.org> - 2014-05-17 09:29 +0200
Re: share data between two tomcat contexts? Arne Vajhøj <arne@vajhoej.dk> - 2014-05-16 19:45 -0400
Re: share data between two tomcat contexts? Robert Klemme <shortcutter@googlemail.com> - 2014-05-17 12:46 +0200
Re: share data between two tomcat contexts? leif.roar@invalid.com (Leif Roar Moldskred) - 2014-05-17 01:35 -0500
Re: share data between two tomcat contexts? Laura Schmidt <ls@mailinator.com> - 2014-05-17 13:22 +0200
Re: share data between two tomcat contexts? lipska the kat <lipskathekat@example.com> - 2014-05-17 13:04 +0100
Re: share data between two tomcat contexts? leif.roar@invalid.com (Leif Roar Moldskred) - 2014-05-17 08:25 -0500
Re: share data between two tomcat contexts? "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-05-17 17:21 +0100
Re: share data between two tomcat contexts? Robert Klemme <shortcutter@googlemail.com> - 2014-05-18 10:12 +0200
Re: share data between two tomcat contexts? lipska the kat <lipskathekat@example.com> - 2014-05-18 11:13 +0100
Re: share data between two tomcat contexts? Brixomatic <brixomatic@yahoo.com> - 2014-05-22 18:58 +0200
Re: share data between two tomcat contexts? "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-05-17 11:11 +0100
csiph-web