Notify and Outrigger Codebase
Jon Meyer <[email protected]>
| Newsgroups | gmane.comp.java.sun.javaspaces |
|---|---|
| Message-ID | <[email protected]> |
Javaspace users,
I am having problems trying to implement a listenter (thru the notify
method) for a Javaspace. I get Unmarshelling exception from the server
saying it cannot find the listener class. I figured that the javaspace
instance does not have a reference to the proper codebase that contains the
classfiles, obvious right.... So the question is, what is the best way to
pass the codebase to the instance? I am using jini 2.1b2 and launch the
javaspace using the start.jar with a set of configuration files. I have
tried adding the reference to the codebase thru the config file like so....
private static t_outrigger_codebase =
"http://codebasesvr:8080/jini/outrigger-dl.jar"
+ " http://codebasesvr:8080/jini/jsk-dl.jar"
+ " http://codebasesvr:8080/jini/notifyListener-dl.jar"
<other settings for passing to ServiceDescriptor>
private static testing_outrigger_service =
new NonActivatableServiceDescriptor(
t_outrigger_codebase, outrigger_policy, outrigger_classpath,
outrigger_impl, new String[] {outrigger_config});
notifiyListener-dl.jar contains the implementation and stub of the listener
Class. I know the codbasesvr works correctly because the outrigger service
will start so it must be downloading/accessing the outrigger-dl.jar
(removing the outrigger-dl.jar from the codebasesvr will cause problems).
Any hints/suggestions would be helpful. Thank you.
Chris
===========================================================================
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
JDC members can download the JavaSpaces(tm) Technology from:
http://developer.java.sun.com/developer/products/jini/