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.
本文介绍了如何在Servlet中使用EJB 3,并强调了web.xml文件必须为2.5版本或更高才能支持注解。文章还讨论了在不同版本的web.xml中使用注解时可能遇到的问题。
251

被折叠的 条评论
为什么被折叠?



