Re: Outrigger jini2.1

Gregg Wonderly <[email protected]>
Newsgroups gmane.comp.java.sun.javaspaces
Message-ID <[email protected]>
Santoshi, Vishal wrote:
> I still have this question
>
> 1. How do I identify a JavaSpace by a name ? I have tried modifying the
> transient-outrigger.config in

> initialLookupGroups = new String[] {"JRMP_Group0","JRMP_Group1"};

This restricts which groups this JavaSpace will use for looking up registrars to
which it will register.  If you don't have an instance of
Reggie/ServiceRegistrar that is registered with one or more of these groups, the
service will never register.

> initialLookupAttributes = new Entry[]{new Name("gallup")};

This sets the Name entry object that will be part of the service registration,
if it ever occurs.

> }//end com.sun.jini.outrigger
>
> This does not seem to resolve the space by name if I use this code.
>
> entry=new Entry[]{new Name("gallup")};

This is fine.

> _template=new ServiceTemplate(null,types,entry); // and so on.

This template, when used for lookup, will perform a lookup on all visible
Reggie/ServiceRegistrar instances for the 'types' you've specified.

However, because you are trying to register, as shown above, only on
ServiceRegistrar instances that are in the groups "JRMP_Group0" and
"JRMP_Group1", that is the controlling configuration setting.

If you remove the definition of the initialLookupGroups, I believe things will
work for you.

You need to access whether or not you actually need to use lookup groups.  Many
applications do not need to consider this aspect of the system.  Only under some
very unique circumstances are groups a useful feature for isolation.

Gregg Wonderly

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