Does Drl file compile automatically? while server running if we changes the Drl file?

120 views
Skip to first unread message

Prabhu Pandian

unread,
Jan 5, 2016, 4:48:27 AM1/5/16
to Drools Usage

I am newbie to Drools. I have informed from people that, if we use DRL files we dont need to restart server in production system. example :

when
$account : Account( balance > 10 )
then
System.out.println("Print");

case 1) so as per above example I have started the server and it starts to given the console in follow since I looped in while(true) in java side

Print
Print
Print
.....
.....
.....,so on 

case 2) Here is the the change I am doing with out stopping the jboss server

when
$account : Account( balance > 10 )
then
System.out.println("Changed Print");

now I am expecting the result as

Changed Print
Changed Print
Changed Print
.....
.....
.....,so on 

But the problem is still I am getting cas2 1 ouptput... why DRL is not compiled automatically since I have changed and saved the file.

Do I understand the DRL purposer correct? Your Help appreciated. Thanks

Mark Proctor

unread,
Jan 5, 2016, 7:19:38 AM1/5/16
to drools...@googlegroups.com
Have you manually added the new jar to KieRepository? Are you calling updateToVersion?

If you want auto-pulling from a maven repository you want kie-ci on the class path.

Mark
--
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/37e8e407-5bd6-4e77-afe0-0f81f9939ffe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages