Re: [rules-users] Exposing rules as services

2011-06-09 Thread Sumeet Karawal
Is there any documentation available regarding that or any link that I could refer. It would be really helpful if I get an idea on how to proceed further. Thanks Regards, Sumeet Karawal Mailto: sumeet.kara...@tcs.com

Re: [rules-users] Exposing rules as services

2011-06-09 Thread Xinhua Zhu
Hi, Maybe this link can be helpful. http://docs.jboss.org/drools/release/5.2.0.CR1/droolsjbpm-integration-docs/html_single/index.html#d0e488 http://docs.jboss.org/drools/release/5.2.0.CR1/droolsjbpm-integration-docs/html_single/index.html#d0e488 BR Xinhua On Thu, Jun 9, 2011 at 4:02 PM, Sumeet

[rules-users] Drools in non-eclipse environment

2011-06-09 Thread Abhay B. Chaware
Has anyone tried using drools in non-eclipse env ? meaning that org.eclipse.jdt.core_3.5.1.v_972_R35x.jar is not in the classpath ? Documentation says this : (http://docs.huihoo.com/drools/4.0.7/ch02s05.html) if you do not have Eclipse JDT Core in your classpath you must override the

Re: [rules-users] DROOLS PLANNER - creating starting solution

2011-06-09 Thread ge0ffrey
KD wrote: Hi, Reading the manual I came across Creating a starting Solution. Is there a way to not provide this? For a combinatorial linear model heavy with hard constraints and with resonably large number of binary variables, implementing a method that will generate this intial solution

Re: [rules-users] DROOLS PLANNER - computation times and comparison

2011-06-09 Thread ge0ffrey
KD wrote: I went through some presentations on bin packing/cloud balance problems. I am interested in knowing about computational results relating to these problems, specially related to the size of the instances tackled and computational times. So how well do the methods scale with problem

Re: [rules-users] Drools in non-eclipse environment

2011-06-09 Thread Swindells, Thomas
Which version of drools is this? For drools 5.0.1 we just use maven to resolve the dependencies for us and it works fine. I can't obviously see any eclipse compiler in the jars that we distribute with our application. Thomas -Original Message- From:

Re: [rules-users] Drools in non-eclipse environment

2011-06-09 Thread Abhay B. Chaware
I am using drools 5.1.0 Let me explain what I am trying to do. I am trying to write a drools app on to android platform. In my app, I have added following jars in the application classpath - antlr-runtime.jar drools-api.jar drools-compiler.jar drools-core.jar mvel2.jar Do I need any other

Re: [rules-users] Drools in non-eclipse environment

2011-06-09 Thread Geoffrey De Smet
Op 09-06-11 10:29, Abhay B. Chaware schreef: I am using drools 5.1.0 Let me explain what I am trying to do. I am trying to write a drools app on to android platform. In my app, I have added following jars in the application classpath - antlr-runtime.jar drools-api.jar

Re: [rules-users] Drools in non-eclipse environment

2011-06-09 Thread Swindells, Thomas
If you precompile (using the maven-plugin of angkar out there), Are any details on this plugin available? - is it this one? http://passion.forco.de/content/maven-drools-plugin_overview What are peoples experiences of using it? Thanks, Thomas

Re: [rules-users] Drools in non-eclipse environment

2011-06-09 Thread Geoffrey De Smet
that's the one. If angskar is cool with it, we should pull it inside droolsjbpm-tools as maven-drools-plugin really. Op 09-06-11 10:59, Swindells, Thomas schreef: If you precompile (using the maven-plugin of angkar out there), Are any details on this plugin available? - is it this one?

Re: [rules-users] Drools in non-eclipse environment

2011-06-09 Thread Wolfgang Laun
You might try this: Properties props = new Properties(); props.put( drools.dialect.java.compiler, JANINO ); KnowledgeBuilderConfiguration kbConfig = KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration( props, (ClassLoader[]) null ); Requires the janino jar in your

Re: [rules-users] Exposing rules as services

2011-06-09 Thread Sumeet Karawal
Hi, Thanks Xinhua!!! Here I am able to get that using drools server, we could expose the knowledgebases as RESTful services, and those could be consumed by the Application. As in the normal application, we create a Knowledgebase, then session and insert facts,. after that we fireAllRules(); So

Re: [rules-users] Drools in non-eclipse environment

2011-06-09 Thread Abhay B. Chaware
How do I use this kbConfig instance of KnowledgeBuilderConfiguration ? From: rules-users-boun...@lists.jboss.org [rules-users-boun...@lists.jboss.org] On Behalf Of Wolfgang Laun [wolfgang.l...@gmail.com] Sent: Thursday, June 09, 2011 2:46 PM To: Rules

[rules-users] What is contract between Heap Size and PermGen space

2011-06-09 Thread Satyendra Sharma
In my server Ram is 16GB but when 1. I tried to set max heap size to 2048MB in run.bat file and when started jboss server it thrown exception as Could not reserve enough space for object heap it accepted max 1336 mb. 2. and also JBoss server did not accept more than 128MB PermGen space but

Re: [rules-users] Drools in non-eclipse environment

2011-06-09 Thread Abhay B. Chaware
This is what I did. Properties properties = new Properties(); properties.put(drools.dialect.java.compiler, JANINO); KnowledgeBuilderConfiguration kbConfig = KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration( properties, (ClassLoader[])

Re: [rules-users] What is contract between Heap Size and PermGen space

2011-06-09 Thread Swindells, Thomas
This is a pure java question not a drools question - I'd suggest you ask the experts on one of the java or jboss mailing lists! One question I'd have is whether you are running a 32 bit or 64bit jvm - if you are running a 32bit jvm then you will have limits on how much memory in total a process

Re: [rules-users] Drools in non-eclipse environment

2011-06-09 Thread Michael Anstis
Preparing to be shouted down, but isn't it impossible to compile DRL on Android and the suggestion is to load pre-serialised KnowledgeBases? Also, as another observation, are you sure the DRL was indeed found and the NPE is not caused by com.ts.DBconnector.readKnowledgeBase(DBconnector.java:143)

[rules-users] Exception while save rule

2011-06-09 Thread Satyendra Sharma
I am getting error message while trying to save newly created rule or update the existing one and click save in BRMS 06:43:51,260 INFO [STDOUT] ERROR 09-06 06:43:51,260 (BundleDbPersistenceManager.java:logException:1404) rollback failed 06:43:51,260 INFO [STDOUT] ERROR 09-06

Re: [rules-users] Drools in non-eclipse environment

2011-06-09 Thread Abhay B. Chaware
That's exactly what I am trying out at the moment .. option - b. Pre-compile, serialize and unserialize ...I'll share the results. Also rule file's there at the location mentioned. So that's not a problem. I've gone through the blog you mentioned ... and as you indicated, it's only jbpm .. no

Re: [rules-users] Drools in non-eclipse environment

2011-06-09 Thread Michael Anstis
Great news :) Please do feedback... if you get it working I'll make a blog entry on your behalf as you are not the first (or last) to try Drools on Android. With kind regards, Mike 2011/6/9 Abhay B. Chaware abhay.chaw...@kpitcummins.com That’s exactly what I am trying out at the moment ..

[rules-users] Evals in 5.2

2011-06-09 Thread jkrupka
Should evals be supported in 5.2 with the same syntax that was used in 5.1? I commented on https://issues.jboss.org/browse/JBRULES-3055, but I'm wondering if this is a bug or just an undocumented change due to the parser work in 5.2...? I haven't tested to see what usage of evals break in 5.2

Re: [rules-users] Drools in non-eclipse environment

2011-06-09 Thread Michael Anstis
http://meteatamel.wordpress.com/2010/08/25/android-api-and-java-beans-package/ http://meteatamel.wordpress.com/2010/09/28/android-api-and-java-beans-package-2/ Enjoy the ride ;) 2011/6/9 Abhay B. Chaware abhay.chaw...@kpitcummins.com woo hooo ! I got past that problem J But a new one’s here

Re: [rules-users] Evals in 5.2

2011-06-09 Thread Edson Tirelli
Inline evals should no longer be necessary, but backward compatibles (i.e., the engine will just ignore them). There should be no change on eval() CEs. It seems we still have a bug. I will investigate. Edson 2011/6/9 jkrupka jkru...@gmail.com Should evals be supported in 5.2 with

[rules-users] Drools/Camel Integration sending messages

2011-06-09 Thread Andre
hi, i´m new in the drools-dev family and just playing around: while playing, i can´t get over the following problem: i configurated drools/camel/activeMQ, i also receive messsages and can maipulate the endpoints and so on but when i try to create a new exchange (actually i´m copying on older one,

[rules-users] Terminating service threads

2011-06-09 Thread Manuel Ortiz
Hello everybody: I have a Drools based application which instantiates KnowledgeAgent and ResourceChangeNotifier and ResourceChangeScanner services, and see in Eclipse Debug Tab that these classes run three threads. When my own threads end, including main thread, these three threads keep running.

Re: [rules-users] Terminating service threads

2011-06-09 Thread Wolfgang Laun
Both ResourceChange... classes have a stop() method which ought to terminate the threads. -W 2011/6/9 Manuel Ortiz manuel.ortizra...@gmail.com Hello everybody: I have a Drools based application which instantiates KnowledgeAgent and ResourceChangeNotifier and ResourceChangeScanner services,

Re: [rules-users] Drools/Camel Integration sending messages

2011-06-09 Thread Edson Tirelli
Andre, Not sure I understand completely the problem you are facing, but it should be straight forward. Can you show us the configuration you are using? For simple unit tests, we have these:

Re: [rules-users] Exposing rules as services

2011-06-09 Thread Xinhua Zhu
On Thu, Jun 9, 2011 at 7:23 PM, Sumeet Karawal sumeet.kara...@tcs.comwrote: Hi, Thanks Xinhua!!! Here I am able to get that using drools server, we could expose the knowledgebases as RESTful services, and those could be consumed by the Application. As in the normal application, we create