• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Spaces  RSS feed

 
ajronald
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any one explain me the use of JavaSpaces in JINI?
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.

Thanks.
 
Keith Edwards
Author
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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

------------------
Keith Edwards
xerox palo alto research center
author of: Core Jini
Which is also available as A Video Course
Read an Example Chapter - Chapter 3 or Chapter 10.
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!