The Artima Developer Community
Sponsored Link

News & Ideas Forum (Closed for new topic posts)
Observing JavaSpace-Based Systems

4 replies on 1 page. Most recent reply: Dec 23, 2004 6:51 AM by Cameron Purdy

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 4 replies on 1 page
Bill Venners

Posts: 2284
Nickname: bv
Registered: Jan, 2002

Observing JavaSpace-Based Systems Posted: Oct 6, 2002 6:00 PM
Reply to this message Reply
Advertisement
"Even with small systems, finding out what occurs 'in the space' can be difficult. Shifting reads, writes, and takes in your code or inserting debug statements in important places may give you clues. But these techniques are effective only in the simplest systems, where you can easily imagine the flow of objects around the system. Systems of anything other than the most trivial complexity require not only stretching your imagination, but also using tools to help you imagine space activity. Tools that let systems developers or designers view the activities of the system's various clients can help restore confidence in understanding the system's behavior as a whole," says Philip Bishop and Nigel Warren in this Artima.com article:

http://www.artima.com/jini/jiniology/obspaceA.html


Jerome Bernard

Posts: 171
Nickname: jeje
Registered: Oct, 2002

Re: Observing JavaSpace-Based Systems Posted: Oct 8, 2002 2:48 AM
Reply to this message Reply
I just wanted to add that the use of dynamic proxies can even simplify this issue. There is then no need to create a Jini service.

And moreover, it is even easier that way to add other kind of proxies at the same time (such as an automatic retry in case of RemoteExceptions, etc etc...).

For example look at the code that I use in my project:
- the proxies: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/xtremesuite/WebOS/src/java/com/kalixia/webos/proxy/
- a helper class that all clients use for locating Jini services:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/xtremesuite/WebOS/src/java/com/kalixia/webos/ServiceFinder.java?rev=1.3&content-type=text/vnd.viewcvs-markup


I am also making changes so that instead of using dynamic proxies I will just use AspectJ (http://www.aspectj.org).


Jerome.

Bill Venners

Posts: 2284
Nickname: bv
Registered: Jan, 2002

Re: Observing JavaSpace-Based Systems Posted: Oct 8, 2002 7:46 AM
Reply to this message Reply
I forgot to put a link to the source code for this article in the Resources. The source code is here:

http://www.djip.co.uk/downloads.html#artima

Susanna

Posts: 1
Nickname: ssong
Registered: Nov, 2002

Re: Observing JavaSpace-Based Systems Posted: Nov 15, 2002 12:36 PM
Reply to this message Reply
Dear all,

I downloaded the source code for this article "oberserving javaSpace-Based Systems". But I couldn't get it run.

Are there anybody who could show me how to compile and run this program?

Thanks a million!

Cameron Purdy

Posts: 186
Nickname: cpurdy
Registered: Dec, 2004

Re: Observing JavaSpace-Based Systems Posted: Dec 23, 2004 6:51 AM
Reply to this message Reply
> I just wanted to add that the use of dynamic proxies can
> even simplify this issue. There is then no need to create
> a Jini service.

Jerome, why not just support events from the space? I'm thinking of something along the lines of the ObservableMap interface that we provide to watch a cache in Coherence -- http://www.tangosol.com/coherence.jsp -- which lets you specify what kind of changes you want to listen to and how much information about those changes you want to receive (e.g. the previous and new values from the operation, since the events could be async.)

Peace,

Cameron Purdy
Tangosol, Inc.

Flat View: This topic has 4 replies on 1 page
Topic: Test-Driven Development Previous Topic   Next Topic Topic: Sway with JavaSpaces

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use