How to use ejb3 in servlet
http://javahowto.blogspot.com/2007/07/simple-ejb-3-servlet-application.html
在glassfish中进行ejb调用的几种场景
http://blog.zdnet.com.cn/html/40/310440-847836.html
注意:
如果你在servlet中是用annotation注入ejb对象。web.xml必须是2.5以上。
the web.xml file has to be version 2.5 or newer (as it is in your example). Annotations in the servlet are ignored if the web.xml is version 2.4 or older. I originally created my servlet with Eclipse 3.2, which provided a version 2.4 web.xml, and the servlet threw a null pointer exception when it tried to call the EJB.