facebook

Jax-ws tutorial done, but …

  1. MyEclipse Archived
  2.  > 
  3. Documentation
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #299255 Reply

    korayuygun
    Member

    Hello,
    the functionnalities offered by MyEclipse to create web services are really fast to implement. My problem is that after I have installed webservices on my Weblogic server I wanted to followe this tutorial http://weblogs.java.net/blog/ramapulavarthi/archive/2006/06/maintaining_ses.html to implement user session management but I dont know how to do.

      @Resource
      private WebServiceContext wsContext;
      public String doLogin(String login, String password) {
        LOGGER.debug("doLogin() - start");
            
        String result = "sdfgh";
        int state;
    
        try {
            MessageContext mc = wsContext.getMessageContext();
            HttpSession session = ((javax.servlet.http.HttpServletRequest)mc.get(MessageContext.SERVLET_REQUEST)).getSession();
    
        } catch (Exception e) {
            LOGGER.error(e.getMessage(), e);
            result = e.getMessage();
        }
          
        LOGGER.debug("doLogin() - end");
        return result;
      }

    but wsContext is null.
    Please help.

    Thanks in advance,
    Koray.

    #299256 Reply

    korayuygun
    Member

    Sorry, I have not posted this in the right forum.

    #299894 Reply

    Loyal Water
    Member
Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Jax-ws tutorial done, but …

You must be logged in to post in the forum log in