Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Web Services and the fly likes Integration session-web service Rest Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Integration session-web service Rest" Watch "Integration session-web service Rest" New topic
Author

Integration session-web service Rest

marco mmmm
Greenhorn

Joined: Jun 03, 2011
Posts: 1

Can I use the session in RESTful web services?

@Path("start")
@GET
@Produces("text/xml")
public String start(@Context HttpServletRequest request)
{
session = request.getSession(true);
String[] c = new String[6];/*
c[0]=request.getParameter("server");
c[1]=request.getParameter("username");
c[2]=request.getParameter("password");
c[3]=request.getParameter("port");
c[4]=request.getParameter("room");
c[5]=request.getParameter("nickname");


session.setAttribute(c[1], c);
}

this code don't work
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Integration session-web service Rest