Changeset 771 for trunk/docs


Ignore:
Timestamp:
Jun 10, 2016, 1:40:44 AM (9 years ago)
Author:
djay
Message:

Remove the default java.library.path definition and use an optional [java] section instead (where the key java.library.path, amongst other, may be defined). Change _ function name to translate in the Java ZOO-API. Use a ogr.zoo_project package containing the ZOO class. Fix the hello-java service and update doc consequently

Location:
trunk/docs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/install/windows.rst

    r764 r771  
    2424   support activated. So, in case you want to use the Java support,
    2525   simply rename the `zoo_loader_jave.cgi` file located in
    26    `c:\\inetpub\\cgi-bin` to `zoo_loader.cgi`.
     26   `c:\\inetpub\\cgi-bin` to `zoo_loader.cgi` and make sure the
     27   `jvm.dll` can be found.
    2728
    2829
     
    5859     appcmd.exe add vdirs /app.name:"Default Web Site/" /path:/cgi-bin /physicalPath:c:\inetpub\cgi-bin
    5960     appcmd set config /section:handlers /+[name='CGI-exe1',path='*.cgi',verb='*',modules='CgiModule']
    60 
     61     appcmd.exe set config /section:isapiCgiRestriction /+[path='c:\inetpub\cgi-bin\zoo_loader.cgi',description='ZOO-Project',allowed='True']
    6162
    6263
  • trunk/docs/services/howtos.rst

    r725 r771  
    202202sections to your ``main.cfg`` file:
    203203
     204:[java]:
     205   This section is used to pass -D* parameters to the JVM  created by the
     206   ZOO-Kernel to handle your ZOO-Service (see `ref. 1
     207   <http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html#BehavioralOptions>`__
     208   or `ref. 2
     209   <http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html#PerformanceTuning>`__
     210   for sample available).
     211   For each map ``a = b`` available in the ``[java]`` section, the
     212   option ``-Da=b`` will be passed to the JVM.
     213:[javax]:
     214   The section is used to pass -X* options to the JVM (see
     215   `ref. <http://docs.oracle.com/cd/E22289_01/html/821-1274/configuring-the-default-jvm-and-java-arguments.html>`__). For
     216   each map ``a = b`` available in the ``[javax]`` section, the option
     217   ``-Xab`` will be passed to the JVM (ie. set ``mx=2G`` to pass
     218   ``-Xmx2G``).
    204219:[javaxx]:
    205220   This section is used to pass -XX:* parameters to the JVM  created by the
     
    213228   minus`` (respectively ``a=plus``) then the option ``-XX:-a``
    214229   (respectivelly ``-XX:+a``) will be passed.
    215 :[javax]:
    216    The section is used to pass -X* options to the JVM (see
    217    `ref. <http://docs.oracle.com/cd/E22289_01/html/821-1274/configuring-the-default-jvm-and-java-arguments.html>`__). For
    218    each map ``a = b`` available in the ``[javax]`` section, the option
    219    ``-Xab`` will be passed to the JVM (ie. set ``mx=2G`` to pass
    220    ``-Xmx2G``).
    221230
    222231ZOO-API
     
    235244  cd zoo-api/java
    236245  make
    237   cp ZOO.class libZOO.so /usr/lib/cgi-bin
    238246
    239247.. Note:: running the previous commands will require that both
    240248          ``javac`` and ``javah`` are in your PATH.
     249
     250You should copy the ``libZOO.so`` in a place Java can find it. In case you
     251have defined the ``java.library.path`` key as ``/usr/lib/cgi-bin``
     252(in the ``[java]`` section), then you should copy it there.
     253
     254.. code-block:: guess
     255
     256  cp libZOO.so /usr/lib/cgi-bin
     257
     258The ZOO-API provides the following functions:
     259
     260:String translate(String s):
     261   This function call the internal ZOO-Kernel function responsible for
     262   searching a translation of ``s`` in the zoo-services dictionary.
     263
     264:void updateStatus(Hashmap conf,String pourcent,String message):
     265   This function call the updateStatus ZOO-Kernel function responsible
     266   for updating the status of the running service (only usefull when
     267   the service has been called asynchronously).
     268
     269
    241270
    242271Java ZCFG requirements
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png