28 Apr 2010 @ 12:19 PM 

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();
Posted By: Zayin
Last Edit: 28 Apr 2010 @ 12:19 PM

EmailPermalinkComments (0)
Tags
Tags:
Categories: glassfish, java

 Last 50 Posts
 Back
Change Theme...
  • Users » 1
  • Posts/Pages » 38
  • Comments » 57
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

Links



    No Child Pages.

Portfolio



    No Child Pages.