Re: [rules-users] Repositories in Kie-Drools

2014-07-08 Thread Zahid Ahmed
Hi Mark,

I am facing a repository sync issue in WB configured with ZooKeeper and Helix. 
But the syncing is not happening. Kindly view the following question posted on 
drools forum.

Drools Workbench - VFS Repository Clustering - Workbench Assets Not synched

Regards, 
Zahid Ahmed




-Original Message-
From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Mark Proctor
Sent: 07 July 2014 17:08
To: Rules Users List
Subject: Re: [rules-users] Repositories in Kie-Drools

For now you'll need to setup some manual sync between the two.

Mar
On 7 Jul 2014, at 05:51, Sumit Dhaniya sumitdhan...@gmail.com wrote:

 I want to use a repository hosted on cloud as repository in my kie ide.
 I tried creating a new repo cloning an existing repo but after cloning 
 kie ide creates a new repo path at localhost and doesn't uses the 
 cloud repo path.
 Can I achieve this or I'll have to find a way to sync two repositories 
 one linked to kie and another to cloud repo.
 
 
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Repositories-in-Kie-Drools-tp4030254
 .html Sent from the Drools: User forum mailing list archive at 
 Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Is protobuf cache actually used?

2014-07-08 Thread Edson Tirelli
   It is a bit convoluted, indeed, but AFAIK, it is using the cache
and working fine. The cache is populated here:

https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/AbstractKieModule.java#L301

   It is set here:

https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/AbstractKieModule.java#L180

   And we have some tests here:

https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/test/java/org/drools/compiler/integrationtests/KieCompilationCacheTest.java


   Edson

On Mon, Jul 7, 2014 at 7:01 PM, Federico Bertola
federico.bertol...@gmail.com wrote:
 Hi Edson,
 yes I saw that the JavaDialect class retrieve the compilation cache from
 the conf, but after a quick search it seems no one use the
 setCompilationCache method of KnowledgeBuilderConfigurationImpl, not
 even in the tests. So I was wondering what was the best way to use it...

 Maybe I get something wrong, in that case, I apologize :)

 Federico.

 On 07/07/2014 21:04, Edson Tirelli wrote:
 Federico,

 Not sure why you say it is not used?

 Drools tries to use any pre-compiled resource bytecode if it is
 available in the cache. If it is not available, it falls back to JIT
 compilation:

 https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/JavaDialect.java#L627

 Edson

 On Sat, Jul 5, 2014 at 11:34 AM, Federico Bertola
 federico.bertol...@gmail.com wrote:
 Hi,
 from what I see, the protobuf cache that the KnowledgeBuilder produce
 and saves as *.cache, is not currently used anywhere, right? If so, what
 would it be required to reload the compilation data inside the
 KnowledgeBuilder? There's something I'm missing or there is some piece
 of code demonstrating this capability?

 Best regards,
 Federico.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users



 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users



-- 
  Edson Tirelli
  Principal Software Engineer
  Red Hat Business Systems and Intelligence Group
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Is protobuf cache actually used?

2014-07-08 Thread Federico Bertola
Hi Edson,
now I figured that out!

Thanks for your patience :)

Federico.


On 07/08/2014 02:13 PM, Edson Tirelli wrote:
 It is a bit convoluted, indeed, but AFAIK, it is using the cache
 and working fine. The cache is populated here:

 https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/AbstractKieModule.java#L301

 It is set here:

 https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/AbstractKieModule.java#L180

 And we have some tests here:

 https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/test/java/org/drools/compiler/integrationtests/KieCompilationCacheTest.java


 Edson

 On Mon, Jul 7, 2014 at 7:01 PM, Federico Bertola
 federico.bertol...@gmail.com wrote:
 Hi Edson,
 yes I saw that the JavaDialect class retrieve the compilation cache from
 the conf, but after a quick search it seems no one use the
 setCompilationCache method of KnowledgeBuilderConfigurationImpl, not
 even in the tests. So I was wondering what was the best way to use it...

 Maybe I get something wrong, in that case, I apologize :)

 Federico.

 On 07/07/2014 21:04, Edson Tirelli wrote:
 Federico,

 Not sure why you say it is not used?

 Drools tries to use any pre-compiled resource bytecode if it is
 available in the cache. If it is not available, it falls back to JIT
 compilation:

 https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/JavaDialect.java#L627

 Edson

 On Sat, Jul 5, 2014 at 11:34 AM, Federico Bertola
 federico.bertol...@gmail.com wrote:
 Hi,
 from what I see, the protobuf cache that the KnowledgeBuilder produce
 and saves as *.cache, is not currently used anywhere, right? If so, what
 would it be required to reload the compilation data inside the
 KnowledgeBuilder? There's something I'm missing or there is some piece
 of code demonstrating this capability?

 Best regards,
 Federico.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users



___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users