Re: Detecting multiple class loaders
- From: Mark Space <markspace@xxxxxxxxxxxxxx>
- Date: Thu, 20 Mar 2008 00:02:36 GMT
Lasse Reichstein Nielsen wrote:
Chris <spam_me_not@xxxxxxxxxx> writes:
No, it's actually only one webapp. It's a data file. Using a database
is not an option. The only approach is to access the file through only
one synchronized class.
Have you considered creating a separate session bean that accesses
the file, and accessing that bean from the web-applications instead
of going directly to the file.
Preferably you can build some sort of transaction control on top of it.
Wouldn't a session bean have exactly the problem he's having now? There will be multiple sessions beans (one per user now, instead of one per webapp) and they'll still need to synchronize amongst themselves on one file?
Obviously, if there is one file per session, then this is an ideal solution, but I didn't read that in the OPs problem statement.
.
- References:
- Detecting multiple class loaders
- From: Chris
- Re: Detecting multiple class loaders
- From: Mark Space
- Re: Detecting multiple class loaders
- From: Chris
- Re: Detecting multiple class loaders
- From: Lasse Reichstein Nielsen
- Detecting multiple class loaders
- Prev by Date: Re: Looking for advice on GlassFish and JEE
- Next by Date: Re: Replacing substrings with images in GUI (parser)
- Previous by thread: Re: Detecting multiple class loaders
- Next by thread: Re: Detecting multiple class loaders
- Index(es):
Relevant Pages
|