aspose file tools*
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 Java 8 in Action this week in the Java 8 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
 
Don't get me started about those stupid light bulbs.
 
subject: Integration session-web service Rest
 
Similar Threads
Struggling With Passing Data Between Data Access Class, Business Bean, and Controller
Java mail problem
Retrieving Session variables into another JSP
Inserting Image in a PDF File generated using JAVA PdfWriter object
dispatching to servlets and JSPs