I am trying to write a servlet that can communicate with another java
program via JavaSpaces.  I can happily do this with two java programs, but
when I try it with a servlet I have problems.
The servlet collects data and then writes it to a javaspace.  The separate
Java application takes the data from the java space and writes it to a file.
I have discovered that the info the jini servlet needs can be passed using
web.xml.  How do I then load it in to the servlet (space name, code base,
look up group)?
I have also discovered an exception to the above rule.  apparently the
security policy file needed for the jini servlet must be set before the
servlet runs (the servlet will eventually run on server start up).  I guess
this information can be merged in to on of the Tomcat config files, but
which one and how???

Thanks for any help.

PS I am using TomCat 3.2.1, windows, and Jini 1.1 and below is a snippet
from the web.xml file


  <servlet>
          <servlet-name>HelloSpace</servlet-name>

<servlet-class>jsbook.chapter1.helloWorldTwo.HelloWorld</servlet-class>
          <init-param>
            <param-name>outrigger.spacename</param-name>
            <param-value>JavaSpaces</param-value>
          </init-param>
          <init-param>
            <param-name>com.sun.jini.lookup.groups</param-name>
            <param-value>public</param-value>
          </init-param>
          <init-param>
      <param-name>java.rmi.server.codebase</param-name>
      <param-value>http://notebook:8080/space-examples-dl.jar </param-value>
          </init-param>
  </servlet>

--
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

Michael Tickle
Computing Science
Dept. of Computation

ICQ 5252 8934
Mob: 0777 968 5548
Fax: 0870 705 8382


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to