이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 40. Configuring and running standalone Business Central
You can use the Business Central standalone JAR file to run Business Central without deploying it to an application server. You can use sample configuration files to run the Business Central standalone JAR file out of the box or you can customize the sampfiles for your requirements.
This JAR file is supported only when it is run on Red Hat Enterprise Linux.
Prerequisites
-
The Red Hat Process Automation Manager 7.13.5 Business Central Standalone (
rhpam-7.13.5-business-central-standalone.jar) and the Red Hat Process Automation Manager 7.13.5 Add Ons (rhpam-7.13.5-add-ons.zip) files have been downloaded from the Software Downloads page for Red Hat Process Automation Manager 7.13, as described in Chapter 34, Downloading the Red Hat Process Automation Manager installation files.
Procedure
-
Extract the downloaded
rhpam-7.13.5-addons.zipto a temporary directory. This archive includes therhpam-7.13.5-standalone-sample-configuration.zipfile. Extract the
rhpam-7.13.5-standalone-sample-configuration.zipfile to the directory that contains therhpam-7.13.5-business-central-standalone.jarfile. Therhpam-7.13.5-standalone-sample-configuration.zipfile contains the following sample configuration files:-
application-script.cli: Sample script for adding a user and kie server system properties kie-fs-realm-users: Sample user dataYou can run the
rhpam-7.13.5-business-central-standalone.jarfiles with the sample data provided in the configuration files or you can customize the data for your requirements.
-
To customize the configuration data, complete the following steps:
Edit the
application-script.clifile to include an administrative user withadmin,user,rest-all,rest-clientandkie-serverroles. In the following example, replace<USERNAME>and<PASSWORD>with your username and password of the user you want to create./subsystem=elytron/filesystem-realm=KieRealm:add-identity(identity=<USERNAME>) /subsystem=elytron/filesystem-realm=KieRealm:set-password(identity=<USERNAME>, clear={password="<PASSWORD>"}) /subsystem=elytron/filesystem-realm=KieRealm:add-identity-attribute(identity=<USERNAME>, name=role, value=["admin","user","rest-all","rest-client","kie-server"])/subsystem=elytron/filesystem-realm=KieRealm:add-identity(identity=<USERNAME>) /subsystem=elytron/filesystem-realm=KieRealm:set-password(identity=<USERNAME>, clear={password="<PASSWORD>"}) /subsystem=elytron/filesystem-realm=KieRealm:add-identity-attribute(identity=<USERNAME>, name=role, value=["admin","user","rest-all","rest-client","kie-server"])Copy to Clipboard Copied! Toggle word wrap Toggle overflow
To run the Business Central standalone JAR file, enter the following command:
java -jar rhpam-7.13.5-business-central-standalone.jar --cli-script=application-script.cli
java -jar rhpam-7.13.5-business-central-standalone.jar --cli-script=application-script.cliCopy to Clipboard Copied! Toggle word wrap Toggle overflow To set application properties when you run the JAR file, include the
-D<PROPERTY>=<VALUE>parameter in the command, where<PROPERTY>is the name of a supported application property and<VALUE>is the property value:java -jar rhpam-7.13.5-business-central-standalone.jar --cli-script=application-script.cli -D<PROPERTY>=<VALUE> -D<PROPERTY>=<VALUE>
java -jar rhpam-7.13.5-business-central-standalone.jar --cli-script=application-script.cli -D<PROPERTY>=<VALUE> -D<PROPERTY>=<VALUE>Copy to Clipboard Copied! Toggle word wrap Toggle overflow For example, to run Business Central and connect to KIE Server as the user
controllerUser, enter:java -jar rhpam-7.13.5-business-central-standalone.jar \ --cli-script=application-script.cli \ -Dorg.kie.server.user=controllerUser \ -Dorg.kie.server.pwd=controllerUser1234
java -jar rhpam-7.13.5-business-central-standalone.jar \ --cli-script=application-script.cli \ -Dorg.kie.server.user=controllerUser \ -Dorg.kie.server.pwd=controllerUser1234Copy to Clipboard Copied! Toggle word wrap Toggle overflow Doing this enables you to deploy containers to KIE Server. See Appendix A, Business Central system properties for more information.
NoteTo enable user and group management in Business Central, set the value of the
org.uberfire.ext.security.management.wildfly.cli.folderPathproperty tokie-fs-realm-users.