Install & Configure Java JDK 1.7 or higher
Install & Configure Maven 3.0 or higher
Download a release version or clone and build (
mvn clean install) the OpenEngSBClone and build the SQLCode domain
Clone this project and adapt the
${sql.version}property in thepom.xmlto the version of the used SQLCode domain if necessary.Build this project (
mvn clean install)You find the program in the directory
target, itsorg.openengsb.xlink.xlinkjavaclient-[version]-jar-with-dependencies.jarTo run the program, go to
target/classesand copy the filesapplication.propertiesandlog4j.propertiesinto the same directory as your .jarConfigure the program arguments in
application.properties- Change Username, Password and Context if necessary.
- If the OpenEngSB Server is not running on your local machine, the
openengsb.hostIphas to be changed to the Ip of the network interface that connects to the server (default is 127.0.0.1). - If the OpenEngSB Server is not running on your local machine, the
xlink.baseUrlhas to be changed as well. - Set the
working.dirto a local directory. - Copy the
creates.sqlto this directory.
Unzip the OpenEngSB server and start it (
bin/openengsb)Make sure that the JMS-Port bundle is installed (if not install it with
feature:install openengsb-ports-jms). Note that, if server and client are not running on the same machine, the xlink base-URL (e.g. contains also the server URL) must be configured in$OPENENGSB_HOME$/etc/org.openengsb.core.services.internal.connectormanager.cfgCopy the jar file of the build SQLCode domain to
$OPENENGSB_HOME/deployto deploy itVerify that the domain was started correctly (type
listin the console of the OpenEngSB)Start the Java-Client
The Program filters SQL CreateStatements in this abstract syntax
A Statement is of the structure
CREATE TABLE `TABLENAME'
(
'fieldName' 'dataType' 'listOfConstraints',
);
Make sure that the opening and closing bracket have no leading or trailing spaces. Every fieldDefintion must be written in it's own row.
Accepted Constraints are
PRIMARY KEYNOT NULLREFERENCES 'tableName'('fieldName')
- Client automatically connects to the OpenEngSB and registers for XLink
- .sql Files in the WorkingDirectory can be opened and CreateStatements are viewed in a List
- For each Statement, details can be displayed
- Via a PopUp-Menu (right-click on a Statement), a valid XLink-URL is copied into the clipboard
- Incoming potential Matches are searched in the WorkingDirectory and, if found, the most likely match is displayed.
- Incoming updates about other local tools that support XLink are processed.
- Creation of Statements