好像ibm上有篇文章是用junit测试ejb的。

解决方案 »

  1.   

    你可以看看Cactus,apache的一个project,好像内容和你要求差不多吧,下面是他的简单介绍:Cactus is a simple test framework for unit testing server-side java code (Servlets, EJBs, Tag Libs, Filters, ...). The intent of Cactus is to lower the cost of writing tests for server-side code. It uses JUnit and extends it. Cactus implements an in-container strategy