A
Aaron Smith
Is it possible to use the WEBrick:aemon with WEBrick::AbstractServlet.
Here is what i'm running for the basic servlet:
dir = Dir:wd
server = WEBrick::HTTPServer.new(
ort => port,
ocumentRoot => dir
end
server.mount "/gateway", RUBYAMF::WEBrickServlet
trap "INT" do server.shutdown end
server.start
I've seen an example saying you have to subclass the HTTPServer and just
run the WEBrick:aemon.start when initializing. But can this be done
with servlets?
Thanks.
Here is what i'm running for the basic servlet:
dir = Dir:wd
server = WEBrick::HTTPServer.new(
ort => port,
ocumentRoot => dir
end
server.mount "/gateway", RUBYAMF::WEBrickServlet
trap "INT" do server.shutdown end
server.start
I've seen an example saying you have to subclass the HTTPServer and just
run the WEBrick:aemon.start when initializing. But can this be done
with servlets?
Thanks.