EJB--SEAM
解决:http://www.blogjava.net/Bobbyliao/archive/2008/10/01/232018.html
后来发现,原来是UserManagerBean中的@Local,@Remote必须明确写上接口的类型,才可以。修改代码如下:
package cn.study.ejb;import javax.ejb.Local;import javax.ejb.Remote;import javax.ejb.Stateless;@Stateless@Remote(UserManager.class)@Local(UserManager.class)public class UserManagerBean implements UserManager { public void addUser(User user) { System.out.println(user.getUsername() + "已经被成功保存!"); user.setId(13); }}
Copyright @ go4it Powered by: .Text and ASP.NET Theme by: .NET Monster