Menu

Problem with file-persiter

General
deesasta
2014-03-03
2014-03-06
  • deesasta

    deesasta - 2014-03-03

    Hi,

    i have the following server.xml:

    <oddjob id="ppsServer">
        <job>
            <sequential id="root"
                        name="Server">
                <jobs>
                    <properties id="env" environment="env"/>
                    <rmireg id="rmireg"
                            name="RMI Registry"/>
                    <jmx:server xmlns:jmx="http://rgordon.co.uk/oddjob/jmx"
                            id="af00070"
                            name="af00070 Server"
                            root="${pps-server-jobs}"
                            url="service:jmx:rmi://ignored/jndi/rmi://af00070/${env.PPS_UMGEBUNG}-pps-job-server"/>
                    <oddjob id="pps-server-jobs"
                            name="${env.PPS_UMGEBUNG} PPS Server Jobs"
                            file="./ppsMigration.xml">
                      <persister>
                        <file-persister path="${env.PPS_BASEDIR}" dir="output"/>
                      </persister>
                    </oddjob>
                </jobs>
            </sequential>
        </job>
    </oddjob>

    problem is: when i connect via a client.xml (from another host) nothing gets serialized (aka. some .ser files don't show up anywhere...)

    can someone tell me what i dd wrong?

    Greets, Chris

     

    Last edit: deesasta 2014-03-04
    • Rob Gordon

      Rob Gordon - 2014-03-04

      Hi - Can you share your ppsMigration.xml file please? It is only jobs in this file that have an id that will be serialized. They will be serialized when their state changes not when you connect with a client.

      Rob.

       
  • deesasta

    deesasta - 2014-03-05

    Hi Rob,
    thanks for your feedback! find attached the requested file.

    It's basically another oddjob in ths file (which can also be used local on the server).
    And of course i triggerd some state-change via the client for testing!

    Chris

     

    Last edit: deesasta 2014-03-05
  • Rob Gordon

    Rob Gordon - 2014-03-05

    Hi Chris - None of your jobs have an id. Only jobs with an id will be serialized because it is the id that is used for the file name.

    Rob.

     
  • deesasta

    deesasta - 2014-03-06

    thanks! i thought the id of the oddjob (<oddjob id="ppsMigration">) would do the job for all children.
    works now like a charm! thanks again!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.