"ajronald", The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Posts which contravene the naming convention are not eligible to win books! Please choose a new name which meets the requirements.
Originally posted by ajronald: Can any one explain me the use of JavaSpaces in JINI?
JavaSpaces is a Jini service--which means that it uses Jini's mechanisms for dynamic discovery. JavaSpaces essentially provides the distributed memory component of a Jini network; it's something like a repository for Java objects that can be placed there and retrieved by other Jini services and clients. If you've got Core Jini, Chapter 17 is all about the use of JavaSpaces in Jini networks. Cheers, -keith
<a href="http://www.kedwards.com/jini" target="_blank" rel="nofollow">Keith Edwards</a><br />xerox palo alto research center<br />author of: <a href="http://www.amazon.com/exec/obidos/ASIN/0130894087/keithedwards" target="_blank" rel="nofollow">Core Jini</a><br />Which is also available as <a href="http://www.amazon.com/exec/obidos/ASIN/0130863866/keithedwards" target="_blank" rel="nofollow">A Video Course</a><br />Read an Example Chapter - <a href="http://www.javaranch.com/bunkhouse/samps/Core_Jini_chap3.pdf" target="_blank" rel="nofollow">Chapter 3</a> or <a href="http://www.javaranch.com/bunkhouse/samps/Core_Jini_chap10.pdf" target="_blank" rel="nofollow">Chapter 10</a>.
Joined: Jan 07, 1999
It's also important that a Java Space is a "tuple space". It's not a traditional database or a hierarchical repository like JNDI or LDAP. There is no real equivalent to SQL or a "select" returning multiple elements. To put something in a Java Space, you basically just put it in. To get something out you show the Java Space an "example" object, and it gives back the first match it finds. This may seem wierd, but it can be very powerful and flexible, and it allows Java Spaces to be fully concurrent at the individual object level. Lots of Threads can sensibly collaborate with a Java Space at once.