Hi, Stateless session used Insert method or insertlogical method? How abt statefulsession Sikkandar Basha Tech Lead WPEPDS UST Global<http://intranet.ustri.com/email/UST-logo.jpg> B5N 144, Bhavani Technopark, Trivandrum, India [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> T: +91-471-2335777 Extn: 6802036 M: +91-9946555330 F: +91-471-2527276
________________________________ From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED] Sent: Thu 10/4/2007 5:31 AM To: rules-users@lists.jboss.org Subject: rules-users Digest, Vol 11, Issue 27 Send rules-users mailing list submissions to rules-users@lists.jboss.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.jboss.org/mailman/listinfo/rules-users or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of rules-users digest..." Today's Topics: 1. RE: rules precompilation (ekke) 2. Re: How to have your emails ignored (Scott Reed) 3. Drools web project in eclipse - Drools Library issue (Malika) 4. Re: rules precompilation (Scott Reed) 5. Re: custom defined types in setter and getters (Steven Williams) 6. Re: Drools web project in eclipse - Drools Library issue (Steven Williams) 7. Re: Drools web project in eclipse - Drools Library issue (Fernando Meyer) ---------------------------------------------------------------------- Message: 1 Date: Wed, 3 Oct 2007 13:07:57 -0700 (PDT) From: ekke <[EMAIL PROTECTED]> Subject: [rules-users] RE: rules precompilation To: rules-users@lists.jboss.org Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=us-ascii sergey, just tried it: exported a package with rules as stream (using the writeExternal() from Package) then in another run I created new RuleBase, added new Package, then import the rules into this empty Package (using the readExternal() from Package) then added some facts, execute the rules, tested if all rules are there, tested if the Facts are in workingMemory - all ok (using snapshot 4.0.2, eclipse 3.3, osx 10.4.10) ekke Manukyan, Sergey wrote: > > Ming, Ekke, > > After deserialising the Package back - getting exception when inserting > facts: > > Exception thrown : java.lang.NoClassDefFoundError: XXXShadowProxy > > XXX - is my class name > > Any ideas? > > -Sergey > > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jin, Ming > Sent: Wednesday, October 03, 2007 1:50 PM > To: Rules Users List > Subject: RE: [rules-users] rules precompilation > > Sergey, > > I am using precompiled rules. Serializing instances of > org.drools.rule.Package works for me. > > Thanks, > -Ming > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Manukyan, > Sergey > Sent: Wednesday, October 03, 2007 12:29 PM > To: Rules Users List > Subject: [rules-users] rules precompilation > > > Folks, > > Where can I find information on how to pre-compile rules in 4.0.1? > > Thanks, > > -Sergey > > > ********************** > ** LEGAL DISCLAIMER ** > ********************** > > This E-mail message and any attachments may contain legally privileged, > confidential or proprietary information. If you are not the intended > recipient(s), or the employee or agent responsible for delivery of this > message to the intended recipient(s), you are hereby notified that any > dissemination, distribution or copying of this E-mail message is > strictly prohibited. If you have received this message in error, please > immediately notify the sender and delete this E-mail message from your > computer. > > _______________________________________________ > 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 > > -- View this message in context: http://www.nabble.com/How-to-have-your-emails-ignored-tf4562290.html#a13026864 Sent from the drools - user mailing list archive at Nabble.com. ------------------------------ Message: 2 Date: Wed, 03 Oct 2007 17:42:51 -0400 From: Scott Reed <[EMAIL PROTECTED]> Subject: Re: [rules-users] How to have your emails ignored To: Rules Users List <rules-users@lists.jboss.org> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Mark Proctor's message received 10/3/2007 12:28 PM: > Scott Reed wrote: >> Please tell me how I can call a function on the LHS. >> (hurry my assignment is due today!) > Is that not covered by #2, it's more of an example for #2? Actually I thought I was being funny about #11 and threw in the bit about getting my homework done for spice. I always get a kick out of the emails that ask for solutions to homework problems. Do we want to ignore those too? > #1. Start the email with "URGENT" > #2. Tell everyone how desparate you and how you need an immediate > response for your really important project. > #3. Don't wait a minimum of 3 days and resend your email within minutes > of hours. > #4. Send emails directly to mailing list members, especially the > developers. > #5. Paste pages of code and then say "it doesn't work, please help". > #6. Paste a long stack trace and say "it doesn't work, please help". > #7. Start your email with "please sirs" or include "do the needful". > #8. Ask dumb questions that are in the manual. > #9. Ask basic java questions. > #10. Ask questions about JRules > #11. Reply to an existing thread but starting a new topic > #12. Start your email with "I'm a member of the drools mailinglist, so > please answer me" > #13. General begging and pleading ------------------------------ Message: 3 Date: Wed, 3 Oct 2007 14:44:16 -0700 (PDT) From: Malika <[EMAIL PROTECTED]> Subject: [rules-users] Drools web project in eclipse - Drools Library issue To: rules-users@lists.jboss.org Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=us-ascii Hello, I started to write web app using drools decision table. Here is what I have in my web project in eclipse 3.3, drools 4.0: 1. A Jsp page that takes input and pass it on to a servlet that fires the rules. 2. Servlet class has import statements: import org.drools.RuleBase; import org.drools.RuleBaseFactory; import org.drools.StatefulSession; import org.drools.StatelessSession; import org.drools.WorkingMemory; and so on.. 3. When I run the jsp on tomcat, it starts but when i hit submit it throws the exception: java.lang.NoClassDefFoundError: org/drools/RuleBase 4. I have drools jar files added under project properties - build path-> add external jars from "C:\wtp_all_in_one\eclipse\configuration\org.eclipse.osgi\bundles\503\1\.cp\lib". This is showing all drools jar files under Libraries hierarchy. Could anyone please suggest what to do to resolve this error? Thanks and Regards, Malika -- View this message in context: http://www.nabble.com/Drools-web-project-in-eclipse---Drools-Library-issue-tf4564565.html#a13028564 Sent from the drools - user mailing list archive at Nabble.com. ------------------------------ Message: 4 Date: Wed, 03 Oct 2007 17:44:43 -0400 From: Scott Reed <[EMAIL PROTECTED]> Subject: Re: [rules-users] rules precompilation To: Rules Users List <rules-users@lists.jboss.org> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed You didn't even bother to read the thread you interrupted here, did you Sergey? Manukyan, Sergey's message received 10/3/2007 1:29 PM: > Folks, > > Where can I find information on how to pre-compile rules in 4.0.1? > > Thanks, > > -Sergey ------------------------------ Message: 5 Date: Thu, 4 Oct 2007 09:30:13 +1000 From: "Steven Williams" <[EMAIL PROTECTED]> Subject: Re: [rules-users] custom defined types in setter and getters To: "Rules Users List" <rules-users@lists.jboss.org> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="iso-8859-1" No - you can use any java object as a fact, so both of your classes are fine. For instance you could do: when Car($p: paint) then System.out.println($p.getName()); end and using MVEL you could do: when Car(paint.name == "red") then ... On 10/4/07, jack wu <[EMAIL PROTECTED]> wrote: > > Hi, i suppose the second form of fact is not supported. but i'd like to > confirm. > > in other words, you can only have setters and getters that return basic > java types. is that right? can i return java collections such as array and > map? the documentation is not clear on that. > > thanks. > > public class Paint > { > String getName(); > String getColor(); > } > > > public class Car > { > int getSize(); > Paint getPaint(); > } > > > jack. > > > > ------------------------------ > Got a little couch potato? > Check out fun summer activities for > kids.<http://us.rd.yahoo.com/evt=48248/*http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz> > > _______________________________________________ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > > -- Steven Williams Supervising Consultant Object Consulting Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501 [EMAIL PROTECTED] www.objectconsulting.com.au consulting | development | training | support our experience makes the difference -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20071004/acc07732/attachment-0001.html ------------------------------ Message: 6 Date: Thu, 4 Oct 2007 09:37:50 +1000 From: "Steven Williams" <[EMAIL PROTECTED]> Subject: Re: [rules-users] Drools web project in eclipse - Drools Library issue To: "Rules Users List" <rules-users@lists.jboss.org> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="iso-8859-1" Make sure the drools jars end up in your WEB-INF/lib directory. cheers Steve On 10/4/07, Malika <[EMAIL PROTECTED]> wrote: > > > Hello, > > I started to write web app using drools decision table. Here is what I > have > in my web project in eclipse 3.3, > drools 4.0: > > 1. A Jsp page that takes input and pass it on to a servlet that fires the > rules. > 2. Servlet class has import statements: > import org.drools.RuleBase; > import org.drools.RuleBaseFactory; > import org.drools.StatefulSession; > import org.drools.StatelessSession; > import org.drools.WorkingMemory; and so on.. > 3. When I run the jsp on tomcat, it starts but when i hit submit it throws > the exception: > > java.lang.NoClassDefFoundError: org/drools/RuleBase > > 4. I have drools jar files added under project properties - build path-> > add > external jars from > > "C:\wtp_all_in_one\eclipse\configuration\org.eclipse.osgi\bundles\503\1\.cp\lib". > This is showing all drools jar files under Libraries hierarchy. > > Could anyone please suggest what to do to resolve this error? > > Thanks and Regards, > Malika > > > -- > View this message in context: > http://www.nabble.com/Drools-web-project-in-eclipse---Drools-Library-issue-tf4564565.html#a13028564 > Sent from the drools - user mailing list archive at Nabble.com. > > _______________________________________________ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > -- Steven Williams Supervising Consultant Object Consulting Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501 [EMAIL PROTECTED] www.objectconsulting.com.au consulting | development | training | support our experience makes the difference -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20071004/0a7c3121/attachment-0001.html ------------------------------ Message: 7 Date: Wed, 3 Oct 2007 21:01:42 -0300 From: "Fernando Meyer" <[EMAIL PROTECTED]> Subject: Re: [rules-users] Drools web project in eclipse - Drools Library issue To: "Rules Users List" <rules-users@lists.jboss.org> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="utf-8" Hi, You can check the drools insurance example http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-examples/drools-insurance/ Regards On 10/3/07, Malika <[EMAIL PROTECTED]> wrote: > > > Hello, > > I started to write web app using drools decision table. Here is what I > have > in my web project in eclipse 3.3, > drools 4.0: > > 1. A Jsp page that takes input and pass it on to a servlet that fires the > rules. > 2. Servlet class has import statements: > import org.drools.RuleBase; > import org.drools.RuleBaseFactory; > import org.drools.StatefulSession; > import org.drools.StatelessSession; > import org.drools.WorkingMemory; and so on.. > 3. When I run the jsp on tomcat, it starts but when i hit submit it throws > the exception: > > java.lang.NoClassDefFoundError: org/drools/RuleBase > > 4. I have drools jar files added under project properties - build path-> > add > external jars from > > "C:\wtp_all_in_one\eclipse\configuration\org.eclipse.osgi\bundles\503\1\.cp\lib". > This is showing all drools jar files under Libraries hierarchy. > > Could anyone please suggest what to do to resolve this error? > > Thanks and Regards, > Malika > > > -- > View this message in context: > http://www.nabble.com/Drools-web-project-in-eclipse---Drools-Library-issue-tf4564565.html#a13028564 > Sent from the drools - user mailing list archive at Nabble.com. > > _______________________________________________ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > -- Fernando Meyer http://fmeyer.org <http://fmeyer.org/> JBoss Rules Core Developer [EMAIL PROTECTED] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20071003/52246c06/attachment.html ------------------------------ _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users End of rules-users Digest, Vol 11, Issue 27 *******************************************
<<winmail.dat>>
_______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users