Re: jini 2.1 examples
"John McClain - Sun Microsystems, Inc." <[email protected]> Fri, 6 Jun 2008 16:23:44 -0400
| Newsgroups | gmane.comp.java.sun.javaspaces |
|---|---|
| Message-ID | <[email protected]> |
Bulzan Stefan wrote:
> I need two examples, if you can provide
>
> 1. how can I change the default installverify config from jini 2.1
> distribution to start other configurations than nonactivatable transient server?
There are example config files in the package java doc for each service
for persistent and configurations. Generally I when I need something
that is persistent I use "Jini ERI persistent" (as opposed to any of the
activatable configs).
If you look at the config file in my previous email you see a bunch of
entries that look like this :
// Outrigger (JavaSpace)
new NonActivatableServiceDescriptor(
codebaseBase + "outrigger-dl.jar " + dlCodebase,
policy,
classpathBase + "outrigger.jar",
"com.sun.jini.outrigger.TransientOutriggerImpl",
new String[] {"-",
ConfigUtil.concat(new Object[] {
"com.sun.jini.outrigger.initialLookupGroups=new
String[]{\"", group,"\"}"})}),
What you need to do is replace the last element :
new String[] {"-",
ConfigUtil.concat(new Object[] {
"com.sun.jini.outrigger.initialLookupGroups=new
String[]{\"", group,"\"}"}
with something like :
new String[] {"persistent-outrigger.config" }
[this assumes "persistent-outrigger.config" is in the working directory
of the server, if not you will need to put in some path]
And then create persistent-outrigger.config with the configuration for
the Outrigger server, look the package java doc for each service for
examples.
> 2.how can I use transactions in Jini 2.1 . I have examples from previous
> versions, but that TransactionManagerAccessor class doesn't work on 2.1
> distribution.
I am not familiar with TransactionManagerAccessor, how is it failing?
--
John McClain [email protected]
Sun Microsystems, Inc.
Burlington, MA
And it is that way today. We are tricked by hope into starting
companies, beginning books, immigrating to this country and investing
in telecom networks. The challenges turn out to be tougher than we
imagined. Our excessive optimism is exposed. New skills are demanded.
But nothing important was ever begun in a prudential frame of mind.
- David Brooks
===========================================================================
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