README
======

This demo shows the creation of a draw document and insert some basic stuff (shapes, lines,
... ) in the docuemnt.

NOTE : If you don't want to use GNU make, you can compile by hand using javac.
Simply make sure, that all jar files, that can be found in the classes directory of
this development kit are within your CLASSPATH.

Run the java sample
-------------------

- Connecting to StarOffice : 

  The Office must be started in advance using the following command line option :
  
	soffice -accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager

	or on unix

	soffice "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager"

  The portnumber and the host can be modified if you like.

  Start the SDraw java example using the following connection string

        java <classpath> SDraw "socket,host=localhost,port=8100"

  The <classpath> must contain the ODK jar files and the examples output class directory.

- Connecting to a Sun ONE Webtop

  1. The file 'daemons2.jar' and 'portalapi.jar' must be part of the CLASSPATH when executing the example.
     It can be found at <WebtopDir>/program/classes .

  2. Start a portal client.
  
  3. Start a Java sample

     java <classpath> SDraw "portal,host=<portalhost>,port=<port>,service=soffice,user=<username>,password=<passwd>"

     The Port can be found in 'LoadBalancing'-Section of the file
     <WebtopDir>/share/configserver/Root/ApplProfile/System/Administrator/openoffice/Portal.xml

     You have to choose the SimplePort as default port on the administration pages
     in the webtop installation (this port defaults to 8201).
     Additionally, you have to modify the the login.ini in the client 
     ( ConnectionType=plain ).

     

