You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@manifoldcf.apache.org by "Karl Wright (Issue Comment Edited) (JIRA)" <ji...@apache.org> on 2011/12/12 10:18:31 UTC

[jira] [Issue Comment Edited] (CONNECTORS-313) An example multi-process properties.xml delivered to the "dist" folder would be very helpful

    [ https://issues.apache.org/jira/browse/CONNECTORS-313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13167421#comment-13167421 ] 

Karl Wright edited comment on CONNECTORS-313 at 12/12/11 9:17 AM:
------------------------------------------------------------------

Hi Abe-san,

connectors.xml is read by the QuickStart java startup class only at this time.  You have two choices:

(1) Modify the main build.xml to dynamically build your register.sh script, in a manner similar to the way it dynamically builds connectors.xml;
(2) Create a new command class in framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler, which parses a connectors.xml and performs the corresponding modification (and nothing else), and then call that command class from your script.  You may be able to move the code for this from framework/jettyrunner, and change the jettyrunner code so it is not duplicated.

I'm not sure which is better.  It depends on how people typically deploy the multiprocess version.
                
      was (Author: kwright@metacarta.com):
    Hi Abe-san,

connectors.xml is read by the QuickStart java startup class only at this time.  You have two choices:

(1) Modify the main build.xml to dynamically build your register.sh script, in a manner similar to the way it dynamically builds connectors.xml;
(2) Create a new command class in framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler, which parses a connectors.xml and performs the corresponding modification (and nothing else).  You may be able to move the code for this from framework/jettyrunner, and change the jettyrunner code so it is not duplicated.

I'm not sure which is better.  It depends on how people typically deploy the multiprocess version.
                  
> An example multi-process properties.xml delivered to the "dist" folder would be very helpful
> --------------------------------------------------------------------------------------------
>
>                 Key: CONNECTORS-313
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-313
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: Build
>    Affects Versions: ManifoldCF 0.4
>            Reporter: Shinichiro Abe
>            Assignee: Shinichiro Abe
>            Priority: Minor
>             Fix For: ManifoldCF next
>
>         Attachments: CONNECTOR-313.patch, CONNECTOR-313.patch, register-draft.sh
>
>
> The multiprocess setup does not have an example properties.xml file.  We should deliver one, in the right place so that all the scripts find it (the "dist" directory).  It would also be helpful to deliver into this directory scripts for:
> - Registering all the connectors that were built
> - Starting the agents process

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira