Manage multiple KIE-Server on single KIE-Workbench

566 views
Skip to first unread message

Chirag Soni

unread,
Jun 17, 2017, 8:33:21 AM6/17/17
to Drools Usage
Hi ,
I am working on Drools 6.5 & deployed KIE-wb, KIE-server on an Apache Tomcat server. I am able to create the container and able to deploy rules on the KIE-server running on the same Tomcat instance. 
Now I want to add one more KIE-server to the workbench which is deployed on other Instance of Apache Tomcat running on remote machine.
I didn't get any option on KIE-workbench to add a server by providing server location and userId, password.
Please help me to resolve this issue.

Regards,
Chirag Soni

Alexandre Porcelli

unread,
Jun 17, 2017, 9:12:29 AM6/17/17
to drools...@googlegroups.com
The kie-server connects to Workbench, not the other way around. All you need is start a new kie-server and add the parameters that points the controller to Workbench

--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/7392eef2-304d-4800-893e-754cca57f7a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Regards,
___________________
Alexandre Porcelli
F: +1 (978) 844-8695
http://porcelli.me

Abhijit Humbe

unread,
Jun 17, 2017, 9:38:56 AM6/17/17
to drools...@googlegroups.com
Set below system properties on remote kie-server instance:

org.kie.server.location=http://10.10.10.10:8080/kie-server/services/rest/server
org.kie.server.controller=http://20.20.20.20:8080/business-central/rest/controller
org.kie.server.controller.user=kieserver
org.kie.server.controller.pwd=kieserver1!
org.kie.server.id=local-server-123

Abhijit Humbe

--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage+unsubscribe@googlegroups.com.

Chirag Soni

unread,
Jun 17, 2017, 2:01:41 PM6/17/17
to Drools Usage
Hi Abhijit,
Thanks for your response & I have added the switches suggested by you & able to connect to the remote server but when I am trying to deploy rules on container giving me an error no 1.
Please find the attached screenshot. 
Please help me for this.

Regards,
Chirag Soni


On Saturday, June 17, 2017 at 7:08:56 PM UTC+5:30, Abhijit Humbe wrote:
Set below system properties on remote kie-server instance:

org.kie.server.location=http://10.10.10.10:8080/kie-server/services/rest/server
org.kie.server.controller=http://20.20.20.20:8080/business-central/rest/controller
org.kie.server.controller.user=kieserver
org.kie.server.controller.pwd=kieserver1!
org.kie.server.id=local-server-123

Abhijit Humbe

On Sat, Jun 17, 2017 at 6:03 PM, Chirag Soni <chirag.dig...@gmail.com> wrote:
Hi ,
I am working on Drools 6.5 & deployed KIE-wb, KIE-server on an Apache Tomcat server. I am able to create the container and able to deploy rules on the KIE-server running on the same Tomcat instance. 
Now I want to add one more KIE-server to the workbench which is deployed on other Instance of Apache Tomcat running on remote machine.
I didn't get any option on KIE-workbench to add a server by providing server location and userId, password.
Please help me to resolve this issue.

Regards,
Chirag Soni

--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
Error.png

Abhijit Humbe

unread,
Jun 18, 2017, 2:46:06 AM6/18/17
to drools...@googlegroups.com
check log file for exception. kjar is not available on remote kie-server to create container and because of that container creation fails. Make sure kjar is available in local maven repository on remote kie-server. If you want to you can setup central maven repository, and make it accessible to  all kie-server instances.

Abhijit Humbe

To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage+unsubscribe@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.

Dhamodharan Krishnan

unread,
Jun 20, 2017, 12:53:08 PM6/20/17
to Drools Usage
Hi Abhijit,

   We already have a  Centralized Maven repo at the organization wide. How to configure the Workbench in such a way that it pushes the Kjar to that Maven repo instead of the http://localhost:8080/maven2 


Thanks,
Dhamo.

Abhijit Humbe

Michael Anstis

unread,
Jun 21, 2017, 4:48:26 AM6/21/17
to Drools Usage
The Workbench honours Maven's <distributionManagement> section in a Projects' pom.xml.

You'll need to edit the file using Administration->File Explorer->[browse to pom.xml]->open->edit->save.

Unfortunately it is not possible to configure "Distribution Management" at the settings.xml level (a Maven restriction/limitation/features.. call it what you like).

However Remote Repository authentication credentials can be configured in settings.xml

With kind regards,

Mike 

Chirag Soni

unread,
Jul 6, 2017, 5:00:17 AM7/6/17
to Drools Usage
Hi,

Can you please share the steps followed to configure the Centralized Maven Repository for the workbench.
and changes in pom.xml of the project.

Regards,
Chirag Soni

Abhijit Humbe

unread,
Jul 6, 2017, 9:50:13 AM7/6/17
to drools...@googlegroups.com
specify <distributionmanagement> tag in pom.xml as given in link and if authentication is required for remote maven repository then specify user/password in settings.xml and pass that settings.xml through "kie.maven.settings.custom" option while starting server



Abhijit Humbe

To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage+unsubscribe@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.

smith

unread,
Mar 20, 2019, 6:57:59 AM3/20/19
to Drools Usage
Hi Everybody,

I want to use multiple remote kie server with single kie-workbench. I have tried all the ways what i have found in the net.

Finally i am getting the same error like Chirag Soni.

In the mail chain i see Abhijit has given some solution. 

Can you please tell how i create this setting.xml?

I tried creating this setting.xml. But i was having that we have to run POM.xml where all the artifacte will be decleared.

But my doubt is how can i execute the POM.xml on the remote server.

I understand the error i am getting is, it is not able to set the kjar in the local maven repository where the remote server is exists.

So can any help how can proceed. As it is very urgent for me.


Reply all
Reply to author
Forward
0 new messages