So, here is my source, i think it would usefull

as I said I use MySQL, and now it works with existing l2j DB

And it almost copy of l2j
BTW karioth, you're using standart ThreadPool... better use SonicNet lib

I planed modify it for change threadpool priority