Difference between revisions of "Codeunit/FormEvent/InstanceCreator"

From TempusServa wiki
Jump to navigation Jump to search
old>Admin
old>Admin
Line 10: Line 10:


== Sample context.xml ==
== Sample context.xml ==
  <?xml version="1.0" encoding="UTF-8"?>
  <Context path="/demo" docBase="TempusServa.war" swallowOutput="true">
  <Resource name="jdbc/TempusServaLive" auth="Container" type="javax.sql.DataSource"
                maxActive="80" maxIdle="30" maxWait="2000"
                removeAbandoned="true" removeAbandonedTimeout="60" logAbandoned="true"
                username="tsdemo" password="" driverClassName="com.mysql.jdbc.Driver"
                url="jdbc:mysql://localhost:3306/demolive?autoReconnect=true"
  />
  <Resource name="jdbc/TempusServaTest" auth="Container" type="javax.sql.DataSource"
                maxActive="5" maxIdle="3" maxWait="10000"
                logAbandoned="true"
                username="tsdemo" password="" driverClassName="com.mysql.jdbc.Driver"
                url="jdbc:mysql://localhost:3306/demotest?autoReconnect=true"
  />
  </Context>


== Configuration ==
== Configuration ==

Revision as of 15:05, 22 September 2018

What is it

The instance creator lets you build new TS application instances from a template, that is a MYSQL dump of an existing database.

So you will need

  • A template for the context file
  • MySQL dump files
    • tsbase
    • tslive
    • tstest

Sample context.xml

 <?xml version="1.0" encoding="UTF-8"?>
 <Context path="/demo" docBase="TempusServa.war" swallowOutput="true">
 <Resource name="jdbc/TempusServaLive" auth="Container" type="javax.sql.DataSource"
               maxActive="80" maxIdle="30" maxWait="2000"
               removeAbandoned="true" removeAbandonedTimeout="60" logAbandoned="true"
               username="tsdemo" password="" driverClassName="com.mysql.jdbc.Driver"
               url="jdbc:mysql://localhost:3306/demolive?autoReconnect=true"
 />
 <Resource name="jdbc/TempusServaTest" auth="Container" type="javax.sql.DataSource"
               maxActive="5" maxIdle="3" maxWait="10000"
               logAbandoned="true"
               username="tsdemo" password="" driverClassName="com.mysql.jdbc.Driver"
               url="jdbc:mysql://localhost:3306/demotest?autoReconnect=true"
 />
 </Context>

Configuration

Usage

Using the attuned form will create a new instance.

The requirement is that the intance information is there AND status is in create (as defined per "")

  • instance name
  • admin name
  • admin email

After an instance is created and status will now be either

  • succes (as defined per "")
  • error (as defined per "")