Re: Embedded JavaSpaces

Dan Creswell <[email protected]>
Newsgroups gmane.comp.java.sun.javaspaces
Message-ID <[email protected]>
Jeff Ramsdale wrote:
> I've Googled around a bit and haven't had much success finding
> examples of folks using an embedded JavaSpace in their applications.
> It's not possible to run an embedded JavaSpace with the starter kit
> (Porter) code, is it? I belive Blitz and GigaSpaces both have embedded

They (Blitz and GigaSpaces) do indeed.

Haven't really looked at Outrigger's code but I suspect it wouldn't take
much hacking around with the newly open-sourced code to get an Outrigger
running locally and passing operations in and out of it.

You might need to implement your own local transaction manager to allow
you to perform atomic operations but that's about it.

> implementations--are there any others? I imagined it wouldn't be hard

What criteria did you have in mind?

> to write one though I'm not sure my skills are up to the task. Any
> comments? Links?
>

Depends exactly what you want - how many of the features of a JavaSpace
do you really need?

IMHO (as an implementer), I'd say it was damned hard if you need all the
usual functionality, to write an implementation yourself.  There are a
surprising number of places where you can get deadlocks, race
conditions, state stability problems and issues with blocking takes or
reads (just when have you considered all possible current matches?).


> In my specific application I have work I want to expose to remote
> workers via a JavaSpace but I think it would work well to have workers
> local to my application as well. So I imagine having two Spaces--one
> local and one remote--that allow me to selectively remote my work or
> not. I'd be interested in other implementation ideas too, though I'm
> curious about the issue of embedded JavaSpaces...
>

Can't really contribute any other ideas but ask me more questions and
I'll try and satisfy your curious nature :)

Dan.

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff JAVASPACES-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

To view past JAVASPACES-USERS postings, please see:
http://archives.java.sun.com/archives/javaspaces-users.html

JDC members can download the JavaSpaces(tm) Technology from:
http://developer.java.sun.com/developer/products/jini/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.