<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    We used IKVM Ant task to create DLLs from drools and supporting
    jars.<br>
    <br>
    You need to make sure that you compile all jars or that the
    remaining jars are in the classpath to that IKVM can locate and
    convert the classes on the fly.<br>
    <br>
    On 02/02/2011 11:13, Swindells, Thomas wrote:
    <blockquote
      cite="mid:DAC86F5F3B84F14088F0DB16092558CA0D4B03610D@UKMA1.UK.NDS.COM"
      type="cite">
      <pre wrap="">This appears to be a missing jar from your dll I've not looked at IKVM but I presume it does some magic to work out what classes need to be include - magic which probably fails if the classes are referenced indirectly via reflection or some other means (eg if there is a pluggable service architecture dynamically picking which implementation to use. You may be able to get round this by explicitly specifying the jars/classes that you need.

You may also run into further issues when it tries to compile your rules as they may reference other jars and classes (if it is able to compile them at all!

Thomas

</pre>
      <blockquote type="cite">
        <pre wrap="">-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a> [<a class="moz-txt-link-freetext" href="mailto:rules-users">mailto:rules-users</a>-
<a class="moz-txt-link-abbreviated" href="mailto:bounces@lists.jboss.org">bounces@lists.jboss.org</a>] On Behalf Of FrankVhh
Sent: 02 February 2011 08:41
To: <a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
Subject: Re: [rules-users] Drools Java and .Net


Hi all,

Thanks for your inputs. As you suggested, this week I tried to use IKVM
to
make Drools and .NET work together.

Converting the Java implementation of drools to dll, importing dll into
.NET
and calling the java functions isn't that hard, once you are a little
bit
familiar with ikvm. No syntax errors in Visual Studio when I do this.

However, there seems to be going something wrong on execution. It
appears to
me that the execution environment does not recognize the "drools-
language".

The execution crashes on the first call of Drools code
(knowledgebuilderfactory.new KnowledgeBuilder()) with the errors:
    - IllegalArgumentException : Unable to instantiate service for
Class
'org.drools.builder.KnowledgeBuilderFactoryService"
    - ClassNotFoundException:
org.drools.builder.impl.KnowledgeBuilderFactoryServiceImpl

This means there are some dependancies missing, right? But should I be
looking to add some jars to the IKVM-JVM? Or is this definitely a
problem of
wrong jar to dll conversion?

Corneil, could you tell me whether you ran into dependancy problems as
well?

fyi I also tried to import the drools library as dll into .NET and then
rewrite the entire wrapping code in .NET. This didn't return any syntax
errors either, but got stuck in execution as well. (With same errors).

Regards,
Frank


Corneil du Plessis wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">
We have successfully used IKVM to create a dlls for our Drools
application.

The performance was a bit slower on IKVM/.Net as in Sun Java 5.
We dynamically load a large number of rules and found the largest
</pre>
        </blockquote>
        <pre wrap="">impact
</pre>
        <blockquote type="cite">
          <pre wrap="">is to the 'load time'

The performance impact was not such that it would make a network call
viable; especially with 1000s of clients.

Apart from the performance impact the behaviour is exactly the same.

On 25/01/2011 17:04, FrankVhh wrote:
</pre>
          <blockquote type="cite">
            <pre wrap="">Hi all,

Suppose that you have a rule engine that needs to be embedded on the
machine
and that there is no way to call the rules as a service from a
centralized
server, what approach would one have to choose to make Drools and
</pre>
          </blockquote>
        </blockquote>
        <pre wrap="">.NET
</pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <pre wrap="">work?

The rulke engine will have to be cached to improve performance, so
</pre>
          </blockquote>
        </blockquote>
        <pre wrap="">that
</pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <pre wrap="">part, until there is an up-to-date version of Drools.NET, has to be
</pre>
          </blockquote>
        </blockquote>
        <pre wrap="">in
</pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <pre wrap="">Java
anyway. Then you expose your JAVA code as a (local) service and let
</pre>
          </blockquote>
        </blockquote>
        <pre wrap="">.NET
</pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <pre wrap="">call it? Or am I seeing things wrong here?

I must stipulate that I am not an expert in .NET at all, and I know
</pre>
          </blockquote>
        </blockquote>
        <pre wrap="">only
</pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <pre wrap="">barely enough Java to get Drools working :-).

Thanks for your help.

Kind regards,
Frank


salaboy wrote:
</pre>
            <blockquote type="cite">
              <pre wrap="">Yes, and if you want to use the rule engine from .NET you can use
</pre>
            </blockquote>
          </blockquote>
        </blockquote>
        <pre wrap="">the
</pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <blockquote type="cite">
              <pre wrap="">Drools
Server that expose the Drools Runtime in REST and SOAP interfaces
</pre>
            </blockquote>
          </blockquote>
        </blockquote>
        <pre wrap="">:)
</pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <blockquote type="cite">
              <pre wrap="">Greetings.

2011/1/19 Michael Anstis<a class="moz-txt-link-rfc2396E" href="mailto:michael.anstis@gmail.com">&lt;michael.anstis@gmail.com&gt;</a>

</pre>
              <blockquote type="cite">
                <pre wrap="">Hi,

I believe the .NET implementation of Drools is somewhat out dated.

However Drools ticks all your other requirements.

With kind regards,

Mike

2011/1/19 Gorantla, Bhaskar (GE Capital)<a class="moz-txt-link-rfc2396E" href="mailto:bhaskar.gorantla@ge.com">&lt;bhaskar.gorantla@ge.com&gt;</a>

</pre>
                <blockquote type="cite">
                  <pre wrap="">We are looking for a rules engine that has the following
characteristics.



1.       Supports both Java and .net

2.       Provides a business user friendly UI for
</pre>
                </blockquote>
              </blockquote>
            </blockquote>
          </blockquote>
        </blockquote>
        <pre wrap="">creating/editing
</pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <blockquote type="cite">
              <blockquote type="cite">
                <blockquote type="cite">
                  <pre wrap="">rules

3.       Supports versioning

4.       The rues in the rules repository are accessible to both
</pre>
                </blockquote>
              </blockquote>
            </blockquote>
          </blockquote>
        </blockquote>
        <pre wrap="">Java
</pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <blockquote type="cite">
              <blockquote type="cite">
                <blockquote type="cite">
                  <pre wrap="">and
.net applications – Nice to have



Do you know whether Drools supports all the above?



Thanks



_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>


</pre>
                </blockquote>
                <pre wrap="">_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>


</pre>
              </blockquote>
              <pre wrap="">
--
  - CTO @ <a class="moz-txt-link-freetext" href="http://www.plugtree.com">http://www.plugtree.com</a>
  - MyJourney @ <a class="moz-txt-link-freetext" href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a>
  - Co-Founder @ <a class="moz-txt-link-freetext" href="http://www.jbug.com.ar">http://www.jbug.com.ar</a>

  - Salatino "Salaboy" Mauricio -

_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>


</pre>
            </blockquote>
          </blockquote>
          <pre wrap="">
--

Corneil du Plessis - Software Architect

TSC Technologies (Pty) Ltd
(o) +27 11 431 1666
(f) +27 86 674 2962
(c) +27 82 530 9259
Email: <a class="moz-txt-link-abbreviated" href="mailto:corneil@tsctech.com">corneil@tsctech.com</a> <a class="moz-txt-link-rfc2396E" href="mailto:corneil@tsctech.com">&lt;mailto:corneil@tsctech.com&gt;</a>
<a class="moz-txt-link-abbreviated" href="http://www.tsctech.com">www.tsctech.com</a> <a class="moz-txt-link-rfc2396E" href="http://www.tsctech.com">&lt;http://www.tsctech.com&gt;</a>

_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>


</pre>
        </blockquote>
        <pre wrap="">
--
View this message in context: <a class="moz-txt-link-freetext" href="http://drools-java-rules">http://drools-java-rules</a>-
engine.46999.n3.nabble.com/Drools-Java-and-Net-tp2290536p2403895.html
Sent from the Drools - User mailing list archive at Nabble.com.

_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
      </blockquote>
      <pre wrap="">

**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the <a class="moz-txt-link-abbreviated" href="mailto:postmaster@nds.com">postmaster@nds.com</a> and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************

_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <font size="2" face="Calibri, Sans Serif">
        <p><font color="orange">Corneil du Plessis</font> - Software
          Architect</p>
        TSC Technologies (Pty) Ltd<br>
        (o) +27 11 431 1666<br>
        (f) +27 86 674 2962<br>
        (c) +27 82 530 9259<br>
        Email: <a href="mailto:corneil@tsctech.com">corneil@tsctech.com</a><br>
        <a href="http://www.tsctech.com">www.tsctech.com</a><br>
      </font></div>
  </body>
</html>