Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Contextual Dynamic Class Loader, Unloader, and Reloader

Status
Not open for further replies.

Netherwolf

Programmer
Nov 13, 2002
7
US
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.
 
What about using an already-built application server like JBoss or a servlet container like Tomcat?

Cheers,
Dian
 
Because, sometimes, you want to write one yourself.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top