[jboss-user] [EJB 3.0] - Re: best way to expose ejb3 as web service?
jaki
do-not-reply at jboss.com
Thu Aug 14 02:37:04 EDT 2008
I posted the wrong code in the 2nd code section in the above post. Below is the correct one:
@WebMethod
| public String checkLogin(String id, String pass)
| {
| User u = new UserManagerBean().check(id,pass);
|
| if(u==null)
| {
| return "Invalid Username / Password";
| }
| else
| {
| return "Success";
| }
| return u;
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170484#4170484
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4170484
More information about the jboss-user
mailing list