Netherwolf
Programmer
What I want to do is create a multi-threaded web server that handles requests for files on a 1 thread per request basis. OK, I'm a novice to intermediate Java programmer. That's do-able.
Here's the tricky part.
Web-servers are ONLY so much fun without a scripting engine or some sort of programmable interface. I want to be able to load ON-THE-FLY java classes through a dynamic class loader where that class is usable only in the context of its thread.
Example: [&]pass=ThePlumPuddingPleasesThePlatypus
Once it's done, it throws everything away and waits for the next request.
Right now, I'm looking over this, and I'm thinking it's in the realm of what I need.
[URL unfurl="true"]http://tutorials.jenkov.com/java-reflection/dynamic-class-loading-reloading.html[/url]
I haven't properly looked over and tested it yet. Can you tell me if this is what I need, and what further recommendations would you make? I may need a little hand-holding.
Here's the tricky part.
Web-servers are ONLY so much fun without a scripting engine or some sort of programmable interface. I want to be able to load ON-THE-FLY java classes through a dynamic class loader where that class is usable only in the context of its thread.
Example: [&]pass=ThePlumPuddingPleasesThePlatypus
Once it's done, it throws everything away and waits for the next request.
Right now, I'm looking over this, and I'm thinking it's in the realm of what I need.
[URL unfurl="true"]http://tutorials.jenkov.com/java-reflection/dynamic-class-loading-reloading.html[/url]
I haven't properly looked over and tested it yet. Can you tell me if this is what I need, and what further recommendations would you make? I may need a little hand-holding.