Re: Custom ClassLoader in OFBiz

2016-05-30 Thread Ron Wheeler
Good work. Everything should be made as simple as possible, but not simpler. http://quoteinvestigator.com/2011/05/13/einstein-simple/ Ron On 30/05/2016 10:49 AM, Taher Alkhateeb wrote: Hi Jacopo, Great thank you! Two of the best inventions in the world are "delete" and "backspace". I'll put th

Re: Custom ClassLoader in OFBiz

2016-05-30 Thread Taher Alkhateeb
Hi Jacopo, Great thank you! Two of the best inventions in the world are "delete" and "backspace". I'll put them to good use. Even adding something like OSGi is a lot easier "after" removing all the dead bits. So I’ll pull out my axe and start hacking away. As usual, I'll put the attachments in JI

Re: Custom ClassLoader in OFBiz

2016-05-30 Thread Jacopo Cappellato
Hi Taher, as mentioned in previous posts by Jacques and you, yes the custom classloader was introduced to provide the ability to load jar files added to the Java class path after OFBiz starts. This feature is actually one that we could drop to simplify our codebase: no out of the box code is using

Re: Custom ClassLoader in OFBiz

2016-05-30 Thread Jacques Le Roux
Hi Taher, It's certainly interesting, too bad Raj and Adrian are not there to help, they would have loved it. Also having Java 9 modularity in the picture will help, I guess. Jacques Le 29/05/2016 à 14:19, Taher Alkhateeb a écrit : Hi Jacques, Thank you very much for the research, excellen

Re: Custom ClassLoader in OFBiz

2016-05-30 Thread Sharan-F
potential opportunity here so let's have the technical discussion about whether it makes sense and if so, how it could possibly work. Thanks Sharan -- View this message in context: http://ofbiz.135035.n4.nabble.com/Custom-ClassLoader-in-OFBiz-tp4681773p4681802.html Sent from the OFBiz - Dev ma

Re: Custom ClassLoader in OFBiz

2016-05-29 Thread Taher Alkhateeb
Hi Jacques, Thank you very much for the research, excellent resources indeed. I doubt the classloader is used for something similar to tomcat. Tomcat uses the classloader to dynamically load the webapps. In OFBiz, everything kickstarts from the beginning and you cannot enable a component at runti

Re: Custom ClassLoader in OFBiz

2016-05-29 Thread Jacques Le Roux
Le 28/05/2016 à 11:57, Taher Alkhateeb a écrit : Hi Everyone, This is a question for advanced developers. I notice that OFBiz uses a custom class loader called NativeLibClassLoader which extends URLClassLoader from the JDK There is a comment in the class which mentions that the "class is nece

Custom ClassLoader in OFBiz

2016-05-28 Thread Taher Alkhateeb
Hi Everyone, This is a question for advanced developers. I notice that OFBiz uses a custom class loader called NativeLibClassLoader which extends URLClassLoader from the JDK There is a comment in the class which mentions that the "class is necessary because the bootstrap ClassLoader caches the na