Re: Outrigger jini2.1

"Santoshi, Vishal" <[email protected]>
Newsgroups gmane.comp.java.sun.javaspaces
Message-ID <[email protected]>
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.

>>>  I do have a Reggie/ServiceRegistrar that is registered with these 
>>> groups. I start  my reggie service . Here is the
transient-reggie.config
>>>     import net.jini.jrmp.JrmpExporter;
>>>     com.sun.jini.reggie {
>>>        serverExporter = new JrmpExporter();
>>>        initialMemberGroups = new String[]
{"JRMP_Group0","JRMP_Group1"};
>>>     }    //end com.sun.jini.reggie
>>>
>>>  and I see these coming up
>>> INFO: started Reggie: 7830ba61-c97a-4f04-8e74-85d5b4c6f797,
JRMP_Group0, >>>                       JRMP_Group1],
jini://vishal.gallup.com/






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

>>> If what I have done is the right way , I have defined the groups in
the 
>>> reggie lookup service . Thus we should be theoretically 
>>> registering a space through outrigger in those groups. Am I correct
in >>> that assumption? The registration occurs as desired and a lookup
on a >>> space without any name defined works , even with the 
>>> initialLookupAttributes = new Entry[]{new Name("gallup")};
>>> entry in the config file.But when I look the space up on the
"gallup" >>> identifier the call is blocked.





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

>>> I tried that and it did not .(removing the groupnames from the
outrigger >>>>configurations)
>>> Thus here are the steps that I have taken and all are 
>>> transient jrmp based
>>>
>>> 1.Started Reggie using the two groups .
>>> 2.Started the mahalo service within the same groups 
>>> 3.Started the fiddler service in the same groups
>>> 4.Started the mercury service and that two in the same groups 
>>> 5.Started the outrigger service in the same groups   
>>>
>>> I can lookup a space without a spacename without issues.
>>> But I tried the things below to name a space through an Entry and 
>>> than look it up , I fail 



NOTE: I guess ultimately my aim is having multiple javaspaces on the
same reggie lookup service , each identified by their own name.Not a
very big goal but an initial one :)







-----Original Message-----
From: Gregg Wonderly [mailto:[email protected]] 
Sent: Friday, February 10, 2006 9:05 AM
To: Santoshi, Vishal
Cc: [email protected]
Subject: Re: Outrigger jini2.1

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.