Re: Outrigger. Jini2.1
solomon wu <[email protected]>
| Newsgroups | gmane.comp.java.sun.javaspaces,gmane.spam.detected |
|---|---|
| Message-ID | <LISTSERV%[email protected]> |
Mahalo can be used on different spaces. So write to space1, and write to space2 can both be in the same transaction. However, watch out for the scenarios where Mahalo crashes, it may be possible to have one node committed, and the other node not-committed from my understanding. To avoid future surprise, you may wish to ask about this type of questions to the wise members of this list who are much more knowledgable than me on this area. On Thu, 9 Feb 2006 22:34:48 -0600, Santoshi, Vishal <[email protected]> wrote: >I have used jini-start-examples to kick start learning about jini and >javasapces . >I have a few questions. > >1. How do I identify a JavaSpace by a name ? I have tried modifying the >transient-outrigger.config in > example/outrigger/jrmp/config (I started off by using the >jrmp-transient option i.e urun jrmp-transient) > import net.jini.jrmp.JrmpExporter; > import net.jini.core.discovery.LookupLocator; > import net.jini.lookup.entry.Name; > import net.jini.core.entry.Entry; > com.sun.jini.outrigger { > serverExporter = new JrmpExporter(); > initialLookupGroups = new String[] >{"JRMP_Group0","JRMP_Group1"}; > initialLookupAttributes = new Entry[]{new >Name("gallup")}; > }//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")}; > _template=new ServiceTemplate(null,types,entry); // and so >on. > > > >2.Is JavaSpace and a Transaction threadsafe ? Can we use a space >concurrently while doing a put? > Or to be precise > space.write(entry,transaction,Lease.FOREVER); > is this call a thread safe call. > And what about the corresponding take call. > > >3.Can a mohalo transaction transcend java spaces? Can a single >transaction be use with n different spaces? > > >Thanks a lot , in anticipation. > > >========================================================================== = >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 =========================================================================== 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