Menu

New database-tasks schemma

Help
2006-06-09
2013-03-11
  • Martin Gaido

    Martin Gaido - 2006-06-09

    Hi,

    I see database-tasks.xsd has changed the task tag. The url and driver attibutes have been changed by datasource one.

    <xs:element name="task">
            <xs:complexType>
                <xs:sequence>
                    <xs:element ref="queries" />
                </xs:sequence>
                <xs:attribute name="datasource" type="xs:string" use="required" />
            </xs:complexType>
        </xs:element>

    Well, can you explain me the following?:

    1 - How must that datasource file be internally defined? (can I use the same for my MSSQL connection, for instance?)

    2 - Where must that DS be located?

    3 - How must be the DS referenced in the config xml file? (sqltask.xml for instance)

    Thanks for the information.

    Regards,

    Martin.-

     
    • Vitaliy Semochkin

      Hello Martin,

      The data source file is defined in deploy dir.
      You can define multiple data sources or could use one(I prefer multiple data sources approach even when I work with one database server. It let's me better understand the amount of connections needed, efficiency of task handlers, etc...)
      Data source name is same have same syntax as you use in other places (e.g. hibernate.cfg.xml).

      PS You cab take demo process with database task handler(from demo folder) as an instance.

      Regards,
      Vitaliy S

       

Log in to post a comment.