Exemple #1
0
    static void Main(String[] args)
    {
        LBM.setConfigurationXml(xml_conf, app_name);

        LBMContextAttributes ctxAttrOne = new LBMContextAttributes();

        ctxAttrOne.setFromXml("TRD1");
        LBMContext ctxOne = new LBMContext(ctxAttrOne);

        LBMContextAttributes ctxAttrTwo = new LBMContextAttributes();

        ctxAttrTwo.setFromXml("TRD2");
        LBMContext ctxTwo = new LBMContext(ctxAttrTwo);

        ctxOne.close();
        ctxTwo.close();
    }
Exemple #2
0
    public static void main(String[] args)
    {
        /* load flat file first */
        try
        {
            LBM.setConfiguration(flat_conf);
        }
        catch (LBMException Ex)
        {
            System.Console.Error.WriteLine("Error setting LBM configuration: " + Ex.Message);
            System.Environment.Exit(1);
        }

        /* then load XML file */
        try
        {
            LBM.setConfigurationXml(xml_conf, app_name);
        }
        catch (LBMException Ex)
        {
            System.Console.Error.WriteLine("Error setting LBM configuration: " + ex.Message);
            System.Environment.Exit(1);
        }
    }