Re: Working with the class server

Guy Korland <[email protected]> Sun, 3 Aug 2008 22:10:03 +0300
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
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]] 
Sent: Sunday, August 03, 2008 5:15 PM
To: [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" 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]