This is probably better asked on the LCDS mailing lists, as you correctly say you can just treat drools as any other java application.

What you will probably need to do is make sure you have all the drools jar you project depends on in the classpath of lcds, you may get away with putting them in WEB-INF\lib. 

 

This site appears to have some tutorials which may or may not help: http://sujitreddyg.wordpress.com/category/flex-and-lcds/

 

Thomas

 

From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Hafeez Ur Rehman
Sent: 14 April 2010 13:31
To: rules-users@lists.jboss.org
Subject: [rules-users] DRools with FLEX LCDS

 

Hello,

        I am trying out DRools and I want to integrate it with Flex LCDS. I have two projects 

  1. Flex Prj has 
    • FLEX / Flash Builder 4 
    • LCDS
    • POSTGRESQL 8.4 ( MYSQL DB )

 

  1. DRools Prj has
    • DRools
    • HIBERNATE 3.2.6
    • POSTGRESQL 8.4 ( MYSQL DB )

I know how to place compiled java classes in LCDS\tomcat\webapps\lcds\WEB-INF\classes and call a method as remote method from Flex Prj's *.MXML file

 

Now considering DRools project to be actually a java application. I am trying to compile and place the the bin folder in LCDS\tomcat\webapps\lcds\WEB-INF\classes.

 

Issue (step-by-step):

  1. Drools Prj was compiled in JRE6 it was creating an issue of with Flash Builder 4 ===(Resulted in)===> Bad version number in .class file (unable to load class eu.kijanowski.drools.hibernate.DroolsHibernateTest)
  2. I changed the DRools JRE to JDK 1.5 ===(Resulted in)===> Now it gives the error of "wrong name"
  3. Now I placed of the bin (removed bin) in LCDS\tomcat\webapps\lcds\WEB-INF\classes. ===(Resulted in an error alert message)===> org/drools/WorkingMemory

 

I want to use DRools with LCDS. If there is a tutorial please direct me to that. My scenario might need both of the projects to be sent. which I can, please note.

 

My complete required tech stack is

  • FLEX Unit
  • Flex Libs + DEGRAFA + CATALYST
  • Flash Builder 4 + Mate
  • LCDS
  • DRools
  • HIBERNATE 3.2.6
  • POSTGRESQL 8.4 ( MYSQL DB )
  • JBOSS

 

 

 

Regards
Hafeez




**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster@nds.com 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
**************************************************************************************


This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster@nds.com 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.

An NDS Group Limited company. www.nds.com