I searched on the document of jackrabbit and found something called as datastore and implemented that in the components.xml but still it jus created a empty table called as datastore . I tried searching the source for checkinevent but i was not successful. I really dont know how to go from here. I want that rules alone in a database or webservice. I tried using restapi and webdav but it actually is an xml which has a totally different format. I have also tried converting JCR to modeshape. But since modeshape download was only Jboss i was not sucessful.
No, that is not possible.
JCR stores its data in a non-normalized binary format.
You can learn more from the Apache Jackrabbit documentation.
The "View Source" operation uses JCR methods to retrieve an assets definition from JCRs binary format and parse this into DRL.It might be possible to add your own CheckinEvent listener and retrieve (at most) Drools internal representation of an asset before it is written to JCR but you'd still need to parse this into DRL.
I suggest you search the source for CheckinEvent and ContentHandler. These will give you an idea.
I am not at my computer now so cannot advise any mire specifically. Have a look and let me know if you can find your way.
sent on the move
On 12 Jan 2012 20:35, "kavitha sethu" <kavithasethu@gmail.com> wrote:
Hi Mike,
Sorry if am asking too many questions. But, out of curiosity just wanted to know whether i can the view source of the rules into mysql database?
So, in Drools if i create a package, and a rule and go to source->view source am seeing the source of that rule. Is there a way to make that write into a database as such?
thanks,
Kavitha.On Wed, Jan 11, 2012 at 12:17 PM, Michael Anstis <michael.anstis@gmail.com> wrote:
It's not to say somebody else here on the Drools forums can't give an example - just not me.
Personally I'd ask the question on a Grails forum - to get a code snippet to call a REST service.
Once you have this you can try to change to use Guvnor.
With kind regards,
Mike2012/1/11 kavitha sethu <kavithasethu@gmail.com>
I want it with Grails. Ya just now i looked for this plugin. Let me read the documentation of how to implement. I was just thinking an example would be really helpful if any one has done this before.
thanks a lot.
On Wed, Jan 11, 2012 at 12:04 PM, Michael Anstis <michael.anstis@gmail.com> wrote:Is that with Grails, or with Java?
The documentation gives Java examples.
I'd recommend Google'ing for how to invoke REST services from Grails. I did a quick search and http://grails.org/plugin/rest looked promising.
2012/1/11 kavitha sethu <kavithasethu@gmail.com>I read the documentation at http://docs.jboss.org/drools/release/5.3.0.Beta1/drools-guvnor-docs/html/ch09.html#d0e1695. But i want to know how to use it with Grails/Java. I am just a beginner to Drools.
On Wed, Jan 11, 2012 at 11:47 AM, Michael Anstis <michael.anstis@gmail.com> wrote:Patience is a virtue.
I assume you've read Guvnor's documentation.
It is a marvel what can be found sometimes.On 11 January 2012 18:45, kavita <kavithasethu@gmail.com> wrote:
Hi,
Can any one provide me an example of how to use Rest API in java/ Grails.
Thanks,
Kavitha.
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-Rules-Mysql-Configuration-tp3645470p3651457.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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