Mercurial > dive4elements > gnv-client
comparison doc/config-manual/model_of_transitions.tex @ 916:a03d2006d7c6
Added Example for adding a new FIS to the REST-Server
doc/trunk@1050 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Tue, 04 May 2010 10:57:08 +0000 |
parents | a6f86fa053a1 |
children | 8c813d136298 |
comparison
equal
deleted
inserted
replaced
915:a6f86fa053a1 | 916:a03d2006d7c6 |
---|---|
564 </artifact-factory> | 564 </artifact-factory> |
565 \end{lstlisting} | 565 \end{lstlisting} |
566 | 566 |
567 In this XML-Fragment you only have to replace the placeholder NEWFISNAME with a | 567 In this XML-Fragment you only have to replace the placeholder NEWFISNAME with a |
568 unique short Name for the new FIS. | 568 unique short Name for the new FIS. |
569 | |
570 \paragraph{Example} | |
571 This Example shows how to add an FIS and which effects it took to the | |
572 REST-Server. | |
573 | |
574 At first we add the follwing Artifactfactory into the file conf/conf.xml | |
575 in Section /artifact-database/artifact-factories which add a new | |
576 FIS called justanewfis to the Server: | |
577 | |
578 \begin{lstlisting} | |
579 <artifact-factory name='fis\_justanewfis' | |
580 description='Factory to create an artifact to be used with the FIS NEWFISNAME' | |
581 ttl='3600000' | |
582 artifact='de.intevation.artifactdatabase.ProxyArtifact'> | |
583 de.intevation.gnv.artifacts.GNVProductArtifactFactory | |
584 </artifact-factory> | |
585 \end{lstlisting} | |
586 | |
587 Then we restart the Artifact-database executing the followinig command: | |
588 | |
589 /etc/init.d/artifactdb restart | |
590 | |
591 Then we check if the new FIS is served by the REST-Server | |
592 calling the following command: | |
593 | |
594 curl http://localhost:8181/factories |grep fis\_justanewfis | |
595 | |
596 If the FIS was added the new Artifactfactory will be found in the generated | |
597 XML-Output and it will be shown. | |
598 Otherwise no XML-Output will be shown. | |
569 | 599 |
570 \subsubsection{Adding a new Artifact for Artifactfactory} | 600 \subsubsection{Adding a new Artifact for Artifactfactory} |
571 The next Step is to define the Artifact itself. | 601 The next Step is to define the Artifact itself. |
572 For this it is necessary to add an XML-Fragment into the Section /artifacts of | 602 For this it is necessary to add an XML-Fragment into the Section /artifacts of |
573 the main Configuration-File /conf/conf.xml | 603 the main Configuration-File /conf/conf.xml |