This works in GlassFish v2, but I’m sure it should work in any Java app server
@Path("") public class terminal { @Context private javax.servlet.http.HttpServletRequest hsr; . . . @GET @Path("get_time") @Produces("text/plain") public String get_time(@QueryParam("license_code") String license_code) { Connection con = null; try { String ip = hsr.getRemoteAddr(); |

Categories
Tag Cloud
Blog RSS
Comments RSS
Last 50 Posts
Back
Void « Default
Life
Earth
Wind
Water
Fire
Light 