Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

[jdom-interest] best way to synchronize JDOM w/web services?

Michael Stumpf

2005-09-15



I'm using JDOM to keep a simple XML database that is accessed by Web
Services (Tomcat + Axis + deployed Java classes). What would be the
best way to synchronize the XML reads/writes (against multiple
simultaneous invocations of the web services from different clients)?

I've found that because the Web Services are all running on the same
JVM, keeping some static variables in a separate method around does work
- they hold their value between web service invocations. I could build
a crude mutex lock out of this by synchronizing accessors to these
variables, but it seems like there must be a cleaner way.

All suggestions are appreciated.

Regards-
Michael Stumpf




_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.