####################################################################
##     Copyright © Meta Integration Technology, Inc. 1997-2022    ##
##                      All Rights Reserved.                      ##
####################################################################
## Meta Integration(tm) Model Bridge (MIMB), Repository (MIR),    ##
## Repository SDK (MIRSDK), and Database SDK (MIDBSDK) are        ##
## trademarks of Meta Integration Technology, Inc.                ##
## Other product and company names (or logos) mentioned herein    ##
## may be the trademarks of their respective owners.              ##
####################################################################
##                 http://www.metaintegration.com                 ##
####################################################################


MIMB OEM zip archive.

This archive contains MIMB files for our OEM partners.

Unzip the contents of this arhive into some dedicated directory on Windows or Linux machine
(e.g. on Windows it can be C:\temp, on Linux/Unix something like /usr/temp).
The unzipped root directory has the image of MIMB installation.
Sub-directories /bin, /conf, /java must be preserved "as is" when packaging MIMB installation.


How to run Java samples.
------------------------------

1. Supplied Java samples are located under /dev/java directory.
They assume that MIMB home directory is the directory created under the location where the archive was unzipped
and has subdirectoroes /bin, /conf, /data, /dev etc.
For example, if on a Windows machine the archive was unzipped into C:\temp then MIMB home is assumed to be C:\temp\MetaIntegration-1100-20220131
(the MIMB home directory name reflects MIMB version and the build date).
If for any reason you need to use another MIMB home location, change MIMB_HOME local variable inside the respective batch file(s)
to point to the desired location.

For Linux/Unix, you can use chmod_samples.sh to change permissions to the samples' shell sripts to 777 so everyone can execute them.

2. Some samples require that environment variable JAVA_HOME would be set and point to a valid JDK installation.
At this point we require minimum JDK version to be 1.8 (it can also be greater but not lesser than 1.8).

3. As the supplied samples make use of MIMB import/expport fuinctionality they require a valid license to be present inside $MIMB_HOME/conf/MIRSetup.xml file,
   inside License -> Key element. 
   Please make sure to obtain a valid MIMB license from MITI in order to run the supplied samples.


4. Running particular samples.
--------------------------------

4.1. MirMultiModelDemo

This sample recursively traverses multimodel directory structure and prints out names of folders and contents.
It requires JAVA_HOME to be set as it compiles the supplied Java source files first.
It also requires a directory where multimodel MIR XMI can be found.
The default value is "..\..\..\Models\Samples\Import\BoRepository1150" and is hard-coded into the batch file.
Please change that value to point to a valid directory containing multimodel MIR XMI.

4.2. MirSdkDemo
runDemo.bat: The sample creates a small MIR model, dumps it in MIR XMI format and then re-imports it.
runBrowseDemo.bat: import supplied sample of directory structure outline and prints out its contents.

4.2. MimbDriverDemo
That sample requires a license key and uses MIMB api to query the framework.
It connects to MIMB installation and enumerates available import bridges.
For CA Erwin9 import bridge it queries and prints the bridge parameters.
It also tries to import ERwin 9 model (the model path is hard-coded into the sample source code).

4.3. MirProfileDemo
The sample requires JAVA_HOME to be set and makles use of MIMB profiling API.












