[jboss-user] [JBoss Seam] - Re: How can I get the session id?
chicochen
do-not-reply at jboss.com
Fri Jan 4 22:28:28 EST 2008
Also, is there a good way to keep http session in jboss seem actions calling via web service method?
@Stateless
| @Name("AuthenticateWebService")
| @WebService(name = "AuthenticateWebService", serviceName = "AuthenticateWebService")
| public class AuthenticateWebService implements AuthenticateWebServiceRemote {
|
| //@In(value = "authenticateAction", create = true)
| //private AuthenticateAction authenticateAction;
|
| @WebMethod
| public String login(String username, String password) {
| Identity.instance().setUsername(username);
| Identity.instance().setPassword(password);
| Identity.instance().login();
|
| if (Identity.instance().isLoggedIn()){
| ResponseInfo rInfo = ResponseInfo.getSuccessInfo();
|
|
|
| String xml = BeanXMLMapping.toXML(rInfo);
| return xml;
| }
| else {
| ResponseInfo rInfo = ResponseInfo.getFailInfo();
| String xml = BeanXMLMapping.toXML(rInfo);
| return xml;
| }
|
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117252#4117252
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117252
More information about the jboss-user
mailing list