Kie-server is a stand-alone execution server that can be used to remotely execute rules using the REST,JMS or Java interface. In the case of Workbench installation, to install Kie-server,workbench installation method see younger brother Blog
First, the installation environment
1.windows operating System (for example, Linux is similar to Windows here)
2.tomcat8
3.jdk1.8
Second, installation steps
1. Download good tomcat and install the JDK, from the drools official website Download Kie-server War package (the official website download is a zip file, decompression after the war package), download good, decompression, renamed to Kie-server, and put it in the Tomcat's WebApps directory (and KIE-DROOLS-WB into a tomcat).
2. Modify the SetEnv.bat file in the bin directory of Tomcat, change to the following (note Do not wrap, here to facilitate the display line, attention to space), and note that-dorg.kie.server.id this attribute value, to be used in workbench, how to use later said
Set Catalina_opts=-xmx512m-xx:maxpermsize=1024m-dbtm.root=%catalina_home%-djbpm.tsr.jndi.lookup=java:comp/env/ Transactionsynchronizationregistry-djava.security.auth.login.config=%catalina_home%\webapps\kie-drools-wb\ Web-inf\classes\login.config-dorg.jboss.logging.provider=jdk-dorg.kie.server.id=tomcat-kieserver- Dorg.kie.server.location=http://localhost:8080/kie-server/services/rest/server-dorg.kie.server.controller=http ://LOCALHOST:8080/KIE-DROOLS-WB/REST/CONTROLLER-DORG.KIE.SERVER.PERSISTENCE.DS=JAVA:COMP/ENV/JDBC/JBPM- Dorg.kie.server.persistence.tm=org.hibernate.service.jta.platform.internal.bitronixjtaplatform- Dorg.jbpm.cdi.bm=java:comp/env/beanmanager-dorg.jbpm.server.ext.disabled=true-dfile.encoding=utf-8
3. Add kie-server roles and users, modify the Tomcat-users.xml file under Tomcat Config, and note that the Kie-server role name must be Kie-server,
In addition, the Kieserver user's password must be the default kieserver1! (of course there are modifications, can be in SetEnv.bat file configuration, specific configuration reference official website), can not modify, otherwise there will be problems, in Workbench will not see Kie-server.
<role rolename= "admin"/>
<role rolename= "Kie-server"/>
<user username= "Kieserver" password= "kieserver1!" roles= "Kie-server,admin"/>
<user username= "admin" password= "admin" roles= "kie-server,admin"/>
4. Configuration completed, test A, in Workbench create a good project, the new server template, the name and SetEnv.bat in the-dorg.kie.server.id property values, here is the Tomcat-kieserver, You can then see the remote server, double-click the link, will let you enter username password (kieserver,kieserver1!), will return a page (page is XML format, show kie-server basic information). If you do not see the restart Tomcat to try, not yet, that you install failed, careful inspection, we must ensure that the workbench configuration of a good basis to configure Kie-server
5. Note: Brother has tried to separate Kie-server and KIE-DROOLS-WB to two Tomcat deployment, but Workbench can not see the remote server, do not know why, may only be deployed in a Tomcat bar, which remains to be confirmed, Scholars with successful deployment can share experience
Sweep code plus DROOLSQQ discussion group