Revert "Add lost ejb3 and threads."

This reverts commit 44464a0f1270356981d8debef3d7b58554e07bbf.