Re: Multiple JavaSpaces (Blitz 1.29) from same configuration files?
Dan Creswell <[email protected]> Thu, 14 Jun 2007 15:04:06 +0100
| Newsgroups | gmane.comp.java.sun.javaspaces |
|---|---|
| Message-ID | <[email protected]> |
Hello, [email protected] wrote: > Hello everyone, > > After banging my head against the wall and almost being ready to give > up, I'd thought I give this mailing list a try. I'm using Blitz 1.29 Hmmm, did you check the Blitz website at all? The Blitz specific mailing lists as linked right on the Blitz Project front page: http://www.dancres.org/blitz/mail_lists.html And then there's the support and bug trackers over at Blitz JavaSpaces SourceForge site (also linked off the Blitz Project front page). http://sourceforge.net/tracker/?atid=705208&group_id=126322&func=browse http://sourceforge.net/tracker/?atid=705207&group_id=126322&func=browse > pretty much out-of-the box, having it installed with the > "installer_pj_1_29.jar" and then only adjusting the start- > blitz.config file to run Blitz in transient mode: > > titanium:~/jini2_1/space linda$ diff config/start-blitz.config config/ > start-blitz_ORIGINAL.config > 40c40 > < blitzRoot, "config/transient-blitz.config"}); > --- > > blitzRoot, "config/blitz.config"}); > > To run the Blitz server, I simply do (where ~/jini2_1/space is > $BLITZ_HOME): > > titanium:~/jini2_1/space linda$ java -Djava.security.policy=policy/ > policy.all -jar $JINI_HOME/lib/start.jar config/start-blitz.config > > Now we want to run multiple Blitz servers in our testbed and naively, > I thought I'd get by just overriding the name setting like this: > > titanium:~/jini2_1/space linda$ java -Djava.security.policy=policy/ > policy.all -jar $JINI_HOME/lib/start.jar config/start-blitz.config > org.dancres.blitz.name=Blitz_JavaSpace0 > > and in another terminal: > > titanium:~/jini2_1/space linda$ java -Djava.security.policy=policy/ > policy.all -jar $JINI_HOME/lib/start.jar config/start-blitz.config > org.dancres.blitz.name=Blitz_JavaSpace1 > > But no luck, as the second server complains about ports being already > bound. Is there an easy way to make two Blitz instances run without > much change to the configuration files? > Okay, so this really ought to go onto blitzjavaspaces-users but for now: (1) It would help if you could post the exact error messages you are getting so we can determine which ports are being conflicted on (2) I expect that you're getting a clash because the start-blitz.config script starts up a codebase server and so the second attempt to run the script obviously will conflict. (3) By default the blitz configuration file says to allocate ports dynamically for all bar the codebase and debug ports. Codebase is handled in the start config whilst debug is handled in blitz.config. (4) The blitz.config also contains specifications for where to store state - you will need to make sure these are different for each instance otherwise, obviously, they will overwrite each other. This particular issue is covered in the installation guide. > Thanks, > Linda > Hope that helps, 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