Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Switching from Webrick->Mongrel (not rails)

Reply
Thread Tools

Switching from Webrick->Mongrel (not rails)

 
 
John Pritchard-williams
Guest
Posts: n/a
 
      08-28-2008
Hi,

For performance reason, I'm thinking of migrating my webapp (not rails)
from Webrick->Mongrel. Couple of questions if anybody could quickly
answer them !

1. Do I really have to re-write my Servlets ? - the examples given on
webrick and Mongrel site seem to have different APIs?

2. The Webrick site has a nice small example of starting up a webserver
and mounting a couple of servlets: so does the Mongrel site. The Webrick
version contains a 'trap' (so you can 'CTRL-C' to stop it): the Mongrel
version doesn't (and the 'trap' code doesn't translate..)

Anybody got a simple example of a Mongrel.rb file to start up a server
and to make it interruptible with a 'CTRL-C' (etc) ?

Thanks !

John
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Roger Pack
Guest
Posts: n/a
 
      08-29-2008

> Anybody got a simple example of a Mongrel.rb file to start up a server
> and to make it interruptible with a 'CTRL-C' (etc) ?


Check out the mongrel docs and example files--I think there's one in
there.
-=R
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Process Switching vs. Fast/CEF Switching? asdf Cisco 7 05-29-2007 05:26 PM
Problems with dhcp when switching networks Haider Rizvi Wireless Networking 1 11-05-2004 08:45 PM
Switching AC to Battery loses wireless IP address =?Utf-8?B?c2tpYnVtNDQy?= Wireless Networking 6 10-28-2004 02:43 AM
Re: auto switching from LAN to Wifi connection Jeff Durham Wireless Networking 0 09-22-2004 05:39 PM
auto switching from LAN to Wifi connection =?Utf-8?B?Tml2ZWs=?= Wireless Networking 0 09-22-2004 03:37 PM



Advertisments