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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to