Re: basic JavaSpaces questions

James Grahn <[email protected]> Thu, 23 Oct 2008 14:49:33 -0400
Newsgroups gmane.comp.java.sun.javaspaces
Message-ID <[email protected]>
Dormany Balazs wrote:
> Hello!
> 
> I guess most of my questions were answered before but unfortunately i 
> couldnt find them in the archives or anywhere else. I hope you dont mind 
> and can help me.
> I'm using jini 2.1.
> 
> 1. Is there a way to name spaces? I found something related to 1.x 
> version but i couldnt get it to work on 2.1. If i can't name spaces, is 
> there any other way to lookup one particular space?

There's a way to name spaces.   In the space "service configuration" 
file, import net.jini.lookup.entry.Name, then add this line in the 
outrigger config:
initialLookupAttributes=new Entry[]{new Name("InsertSpaceNameHere")};

> 2. How many objects a space can hold? Is it configurable somehow?

A space can hold many objects (though it may be limited to 
Integer.MAX_VALUE or a similar value practically).   Basically, you're 
probably going to run into problems with heap size long before you have 
a problem with the number of objects.   If your space runs out of 
memory, you can always allocate more memory to space via java command 
line the next time you run.

> 3. Is there a way of logging the operations in a space without any 
> middleware between the clients and the space?

I dunno, but you can always write your own wrapper for space operations.

> Balazs
jamesG

> ps: is there a good guide/doc/anything how to run/configure/operate 
> javaspaces?

Well... I don't know of any great online resource, no.   But googling 
problems you run into usually works fairly well.   Or asking the mailing 
list when that fails.

===========================================================================
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