I would need to implement a common memory area that all instances of a certain
stateless EJB could access - in fact a simple hashtable that contains general data - and of course with access synchronization. If I use only one JVM I can use a Singleton class containing a Hashtable - but I need to be able to deploy our app on clusters. A few years ago our server was a Java program with socket connections, and implementing a common memory area (with access synchronization) was extremely simple. What we've done was to use a simple RMI call to a java program running outside the beans container (our app has to be able to run on JBoss but also on other containers) - this is the method prescribed by Floyd Marinescu for implementing TRUE singletons on J2EE with clustering - but it's a little slow for what we need, and it's an inelegant solution. Are there other options? Could JBoss Cache help me with this? From what I've read it seems it is more than a Hashtable for strings (what we need) - and couldn't find any example for using JBoss Cache for strings. Any help would be highly appreciately. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918383#3918383 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918383 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user