This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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
 
Have you checked out Aspose?
 
subject: Integration session-web service Rest
 
jQuery in Action, 3rd edition