For both points #1 and #2 you are going to need a full blown J2EE app server first. Good luck with that, the code won't get written by pure bolster alone.
For future reference, if you or anyone else plans on making more one post wonders I suggest you post Apache advocacy on ASF hosted forums. That is the correct place for it.
|Retrieving data ...|