Re: Clojure Repl for OFBiz - repl driven development

2020-05-21 Thread Joseph Eckard
Hi Taher & Eugen, I came across this thread by accident while searching for something else, but I wanted to say that what Taher suggests is possible and fairly easy to do. I have an NRepl container & Clojure service engine I wrote a few years ago for some older OFBiz codebases and that's

Re: Clojure Repl for OFBiz - repl driven development

2020-05-06 Thread Taher Alkhateeb
Hello Eugen, Q Are groovy scripts allowed access to all Java API (file io, network etc)? A Yes groovy scripts can pretty much access all resources and Java APIs. But they are implemented in multiple places as different things (service implementations, events, or simply helper scripts)   Q

Re: Clojure Repl for OFBiz - repl driven development

2020-05-06 Thread Eugen Stan
Hi, Please see my reply inline. La 06.05.2020 14:21, Taher Alkhateeb a scris: > For me I would forget about the services for a moment. I would focus my > attention on defining a container for the REPL [1]. Then I would try to > implement clojure as an engine implementation for the services.

Re: Clojure Repl for OFBiz - repl driven development

2020-05-06 Thread Taher Alkhateeb
For me I would forget about the services for a moment. I would focus my attention on defining a container for the REPL [1]. Then I would try to implement clojure as an engine implementation for the services. This involves modifying a few XSD files and java files for parsing and also providing

Re: Clojure Repl for OFBiz - repl driven development

2020-05-06 Thread Eugen Stan
Hello Taher, Thank you for the feedback. Yes, that is what I am doing at the moment. I had less than 48h of knowledge about ODBiz API so it was the best I could do. I believe even that can provide benefits since you have a way to call every service in a running OFBiz instance from code. It

Re: Clojure Repl for OFBiz - repl driven development

2020-05-04 Thread Taher Alkhateeb
Hello Eugen, Great initiative! Thank you for the work. I have a question about the implementation. It seems from reading your code [1] that you're essentially just passing the the context object to NREPL and getting it working from there. Although the idea works, you're not getting anything

Clojure Repl for OFBiz - repl driven development

2020-05-03 Thread Eugen Stan
Hello, I just wrote a simple component for that adds clojure nRepl support for OFBiz. This allows people to use clojure to interact with OFBiz and do all sorts of nice things. It also opens a lot of possibilities for improving the developer experience. Please let me know what you think about