Re: Working with the class server

Guy Korland <[email protected]> Mon, 4 Aug 2008 12:08:54 +0300
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
The problem with codebase, as I wrote before, is that if the Writer
leaves/fails then the data in the space can't be read/take by any other
user.

 

Guy

 

________________________________

From: Dennis Reedy [mailto:[email protected]] 
Sent: Monday, August 04, 2008 2:46 AM
To: [email protected]
Subject: Re: Working with the class server

 

Perhaps you can check to ensure your writer JVM has defined a codebase
that can serve the jars in question. This is most likely the issue you
are encountering.

 

HTH

 

Dennis

 

 

On Aug 3, 2008, at 310PM, Guy Korland wrote:





Hi Asaf,

 

In general what you need to do is to set a Codebase server.

BTW, in Gigaspaces we found out that setting such server is not scalable
and in fact many times acts as a single point of failure.

So, what we developed (which is also available as part of our community
free addition) is a dynamic class loader.

 

Once the space stores an instance of an Entry (or an Entry's field) the
class is dynamically stored in the space and seamlessly provided to the
"taker" when needed.

 

GUy

 

________________________________

From: Asaf Lahav [mailto:[email protected]
<mailto:[email protected]> ] 
Sent: Sunday, August 03, 2008 5:15 PM
To: [email protected] <mailto:[email protected]> 
Subject: Working with the class server

 

I need some clarification on how to employ the class server.

I have a couple of jvm's. one writing entries and the other taking them.

The entry class I'm using is very simple:

 

import net.jini.entry.AbstractEntry;

public class JavaspaceTaggingEntry extends AbstractEntry{

                private static final long serialVersionUID =
-1559963129857857100L;

                public String myName = null;

}

 

The writer jvm, naturally has the entry class definitions in its class
path. The taker doesn't.

I tried putting the entry jar into the lib-dl folder under the jinni
started kit and made sure the Class Server server points to it so it
would be available through it.

The problem is that when I attempt to take the entry, I got a class not
found exception.

 

What is the right way to employ the class server?

 

 

 

 

 

------------------------------------------------------------------------
-- Getting Started: http://www.jini.org/wiki/Category:Getting_Started
Community Web Site: http://jini.org jini-users Archive:
http://archives.java.sun.com/archives/jini-users.html Unsubscribing:
email "signoff JINI-USERS" [email protected]
------------------------------------------------------------------------
-- Getting Started:http://www.jini.org/wiki/Category:Getting_Started
Community Web Site: http://jini.org jini-users Archive:
http://archives.java.sun.com/archives/jini-users.html Unsubscribing:
email "signoff JINI-USERS" to [email protected]

 

------------------------------------------------------------------------
-- Getting Started: http://www.jini.org/wiki/Category:Getting_Started
Community Web Site: http://jini.org jini-users Archive:
http://archives.java.sun.com/archives/jini-users.html Unsubscribing:
email "signoff JINI-USERS" to [email protected]

--------------------------------------------------------------------------
Getting Started:     http://www.jini.org/wiki/Category:Getting_Started
Community Web Site:  http://jini.org
jini-users Archive:  http://archives.java.sun.com/archives/jini-users.html
Unsubscribing:       email "signoff JINI-USERS"  to [email protected]