Tomcat-Rails, a pet project to run jruby on rails applications within an embedded tomcat

2009-06-22 Thread David Calavera
Hi,

I'm working on a little project to use tomcat as server for rails
applications without generate a war file. I'm using an embedded tomcat and
jruby-rack to wrap requests.

I don't know if this could be useful for anyone, currently it's based on my
needs, but you can find more info in the project page:

http://calavera.github.com/tomcat-rails
http://github.com/calavera/tomcat-rails

Advice and feedback will be really appreciated.

Cheers

-- 
David Calavera
http://www.thinkincode.net


Re: Tomcat-Rails, a pet project to run jruby on rails applications within an embedded tomcat

2009-06-22 Thread Mark Thomas
David Calavera wrote:
 Hi,
 
 I'm working on a little project to use tomcat as server for rails
 applications without generate a war file. I'm using an embedded tomcat and
 jruby-rack to wrap requests.
 
 I don't know if this could be useful for anyone, currently it's based on my
 needs, but you can find more info in the project page:
 
 http://calavera.github.com/tomcat-rails
 http://github.com/calavera/tomcat-rails
 
 Advice and feedback will be really appreciated.

You should read http://tomcat.apache.org/legal.html, particularly the
parts related to trademarks and naming.

If you haven't already found it, this class (from sandbox/trunk) is
quite useful when you start embedding Apache Tomcat.
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/startup/Tomcat.java

Mark


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat-Rails, a pet project to run jruby on rails applications within an embedded tomcat

2009-06-22 Thread Martin Gainty

Hi David-

can you use CGIServlet to accomplish the ror?

thanks,
Martin 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 From: david.calav...@gmail.com
 Date: Mon, 22 Jun 2009 16:36:46 +0200
 Subject: Tomcat-Rails, a pet project to run jruby on rails applications 
 withinan embedded tomcat
 To: users@tomcat.apache.org
 
 Hi,
 
 I'm working on a little project to use tomcat as server for rails
 applications without generate a war file. I'm using an embedded tomcat and
 jruby-rack to wrap requests.
 
 I don't know if this could be useful for anyone, currently it's based on my
 needs, but you can find more info in the project page:
 
 http://calavera.github.com/tomcat-rails
 http://github.com/calavera/tomcat-rails
 
 Advice and feedback will be really appreciated.
 
 Cheers
 
 -- 
 David Calavera
 http://www.thinkincode.net

_
Insert movie times and more without leaving Hotmail®.
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009

Re: Tomcat-Rails, a pet project to run jruby on rails applications within an embedded tomcat

2009-06-22 Thread David Calavera
On Mon, Jun 22, 2009 at 4:50 PM, Mark Thomas ma...@apache.org wrote:

 David Calavera wrote:
  Hi,
 
  I'm working on a little project to use tomcat as server for rails
  applications without generate a war file. I'm using an embedded tomcat
 and
  jruby-rack to wrap requests.
 
  I don't know if this could be useful for anyone, currently it's based on
 my
  needs, but you can find more info in the project page:
 
  http://calavera.github.com/tomcat-rails
  http://github.com/calavera/tomcat-rails
 
  Advice and feedback will be really appreciated.

 You should read http://tomcat.apache.org/legal.html, particularly the
 parts related to trademarks and naming.


Yep, I already added the asf license and all that stuff but I have to
submitted.



 If you haven't already found it, this class (from sandbox/trunk) is
 quite useful when you start embedding Apache Tomcat.

 http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/startup/Tomcat.java


I'm using it, it was really useful, one code line to config all the server
classes instead of hundred XD.




 Mark


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




-- 
David Calavera
http://www.thinkincode.net


Re: Tomcat-Rails, a pet project to run jruby on rails applications within an embedded tomcat

2009-06-22 Thread David Calavera
On Mon, Jun 22, 2009 at 4:52 PM, Martin Gainty mgai...@hotmail.com wrote:


 Hi David-

 can you use CGIServlet to accomplish the ror?


rails doesn't work pretty well with cgi, they are using rack, that's an
implementation of python's wsgi in ruby.




 thanks,
 Martin
 __
 Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

 Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
 Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
 Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
 dient lediglich dem Austausch von Informationen und entfaltet keine
 rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
 E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
 Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
 destinataire prévu, nous te demandons avec bonté que pour satisfaire
 informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
 de ceci est interdite. Ce message sert à l'information seulement et n'aura
 pas n'importe quel effet légalement obligatoire. Étant donné que les email
 peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
 aucune responsabilité pour le contenu fourni.




  From: david.calav...@gmail.com
  Date: Mon, 22 Jun 2009 16:36:46 +0200
  Subject: Tomcat-Rails, a pet project to run jruby on rails applications
 withinan embedded tomcat
  To: users@tomcat.apache.org
 
  Hi,
 
  I'm working on a little project to use tomcat as server for rails
  applications without generate a war file. I'm using an embedded tomcat
 and
  jruby-rack to wrap requests.
 
  I don't know if this could be useful for anyone, currently it's based on
 my
  needs, but you can find more info in the project page:
 
  http://calavera.github.com/tomcat-rails
  http://github.com/calavera/tomcat-rails
 
  Advice and feedback will be really appreciated.
 
  Cheers
 
  --
  David Calavera
  http://www.thinkincode.net

 _
 Insert movie times and more without leaving Hotmail®.

 http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009




-- 
David Calavera
http://www.thinkincode.net