Yes there was some code to do this - I think it is still around somewhere... It would take the generated .classes and package them up in a jar structure and stream them out. If you really want to use pojos - I would recommend generating them outside of the "declare" statements for now (the fact that they are pojos is kind of an implementation concern, well I guess its valid, just you can't do it easily at the moment !).
On Wed, Feb 4, 2009 at 5:59 AM, Oleg Zenzin <[email protected]> wrote: > I'm working on having rules set published as a web-service. Previously we > were able to package drl descriptor along with fact POJO's in *.aar (axis2 > packaged web-service). The problem though is not to create and package > Drools engine client [within web-service]. The thing is I'm looking to > preserve approach I used to generate wsdl: using axis2 java2wsdl and having > all defined in Java classes I got the result easily. So if there's > possibility to keep it (for awhile, later I'm going to work on drl-to-wsdl > interpreter) I would gain from it timewise. > > Thank you! > -Oleg > > On Tue, Feb 3, 2009 at 10:00 AM, <[email protected]> wrote: >> >> Send rules-dev mailing list submissions to >> [email protected] >> >> To subscribe or unsubscribe via the World Wide Web, visit >> https://lists.jboss.org/mailman/listinfo/rules-dev >> 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-dev digest..." >> >> >> Today's Topics: >> >> 1. Re: Dynamic Facts: how to get jar wih Facts declared in drl >> (Edson Tirelli) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Mon, 2 Feb 2009 21:19:47 -0500 >> From: Edson Tirelli <[email protected]> >> Subject: Re: [rules-dev] Dynamic Facts: how to get jar wih Facts >> declared in drl >> To: Rules Dev List <[email protected]> >> Message-ID: >> <[email protected]> >> Content-Type: text/plain; charset="iso-8859-1" >> >> Sorry, Michael just told me that he is not exposing that to users. My >> mistake. >> >> What is your need? Would an API solve your problem? >> >> []s >> Edson >> >> 2009/2/2 Oleg Zenzin <[email protected]> >> >> > Hi there, and thanks for your quick responses >> > >> > A week or so ago I got a response to my question about instantiation of >> > facts declared in DRL. I also got this from Edson: >> > >> > > Also, if you use Guvnor to define your model, Guvnor is capable of >> > > generating a jar file for you with the generated classes. This way you >> > can >> > > download the jar and add it to the classpath of your application and >> > > use >> > it >> > > as any POJOs too. >> > >> > I've looked thru Guvnor UI, but was unable to find where this jar is to >> > be >> > retrieved from. Is there some undocumented API (or servlet) to be called >> > to? >> > >> > Thanks! >> > -Oleg Zenzin >> > >> > _______________________________________________ >> > rules-dev mailing list >> > [email protected] >> > https://lists.jboss.org/mailman/listinfo/rules-dev >> > >> > >> >> >> -- >> Edson Tirelli >> JBoss Drools Core Development >> JBoss, a division of Red Hat @ www.jboss.com >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: >> http://lists.jboss.org/pipermail/rules-dev/attachments/20090202/d7d46d9c/attachment-0001.html >> >> ------------------------------ >> >> _______________________________________________ >> rules-dev mailing list >> [email protected] >> https://lists.jboss.org/mailman/listinfo/rules-dev >> >> >> End of rules-dev Digest, Vol 26, Issue 8 >> **************************************** > > > _______________________________________________ > rules-dev mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-dev > > -- Michael D Neale home: www.michaelneale.net blog: michaelneale.blogspot.com _______________________________________________ rules-dev mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-dev
