psdi.util

Class LoadService

  • java.lang.Object
    • psdi.util.LoadService


  • public class LoadService
    extends java.lang.Object
    Utility to load the service information into the database. By default it loads B2BMessage service into the database. This utility can be used to load any service into the database. After the service is loaded, the mxserver has to be started to load the service onto the server. Once the service is entered into the database, there is no need to modify the configuration to load the service from the configuration file, the service is automatically loaded when the server starts up. By default this reads information from MXServer.properties. If the database connection information is in a different properties file, then it should be provided as an argument.

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      protected static java.lang.String classname 
      protected static java.lang.String database
      Url of the database to connect to
      protected static java.lang.String dbalias 
      protected static java.lang.String desc 
      protected static java.sql.Driver driver
      get's initialized by connect() method
      protected static java.util.Properties mxServerConfig
      Configuration information as an extension of java.util.Properties
      protected static java.lang.String password 
      protected static java.lang.String propFileDefault
      The name of the file to read configuation information from.
      protected java.lang.String propFileName
      The Properties filename can be passed in via a constructor.
      protected static boolean remove 
      protected static java.lang.String svcName 
      protected static java.lang.String url 
      protected static java.lang.String user 
    • Constructor Summary

      Constructors 
      Constructor and Description
      LoadService()
      Constructor
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      protected void configure(java.lang.String filename)
      Reads in the MXServer.properties file.
      static void main(java.lang.String[] argv)
      Main
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • propFileDefault

        protected static final java.lang.String propFileDefault
        The name of the file to read configuation information from. This is overridden by a command line argument.
        See Also:
        Constant Field Values
      • mxServerConfig

        protected static java.util.Properties mxServerConfig
        Configuration information as an extension of java.util.Properties
      • propFileName

        protected java.lang.String propFileName
        The Properties filename can be passed in via a constructor. The default value is "MXServer.properties".
      • driver

        protected static java.sql.Driver driver
        get's initialized by connect() method
      • database

        protected static java.lang.String database
        Url of the database to connect to
      • dbalias

        protected static java.lang.String dbalias
      • url

        protected static java.lang.String url
      • user

        protected static java.lang.String user
      • password

        protected static java.lang.String password
      • remove

        protected static boolean remove
      • svcName

        protected static java.lang.String svcName
      • desc

        protected static java.lang.String desc
      • classname

        protected static java.lang.String classname
    • Constructor Detail

      • LoadService

        public LoadService()
        Constructor
    • Method Detail

      • configure

        protected void configure(java.lang.String filename)
        Reads in the MXServer.properties file.
      • main

        public static void main(java.lang.String[] argv)
        Main