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 <zenzin(a)intalio.com> 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, <rules-dev-request(a)lists.jboss.org> wrote:
>>
>> Send rules-dev mailing list submissions to
>> rules-dev(a)lists.jboss.org
>>
>> 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
>> rules-dev-request(a)lists.jboss.org
>>
>> You can reach the person managing the list at
>> rules-dev-owner(a)lists.jboss.org
>>
>> 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 <tirelli(a)post.com>
>> Subject: Re: [rules-dev] Dynamic Facts: how to get jar wih Facts
>> declared in drl
>> To: Rules Dev List <rules-dev(a)lists.jboss.org>
>> Message-ID:
>> <e6dd5ba30902021819x134f75fq2161805dc27f423f(a)mail.gmail.com>
>> 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 <zenzin(a)intalio.com>
>>
>> > 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
>> > rules-dev(a)lists.jboss.org
>> >
https://lists.jboss.org/mailman/listinfo/rules-dev
>> >
>> >
>>
>>
>> --
>> Edson Tirelli
>> JBoss Drools Core Development
>> JBoss, a division of Red Hat @
www.jboss.com
>>