Why Jetty? (web development)
It seems that all the Clojure web frameworks expect you to be using Jetty - what about deploying to Tomcat or Resin or JBoss or...? -- Sean A Corfield -- (904) 302-SEAN Railo Technologies, Inc. -- http://getrailo.com/ An Architect's View -- http://corfield.org/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Why Jetty? (web development)
You can just as well use those. Jetty is just more practical for development, as you don't need to deploy to be able to test it. 2010/9/1 Sean Corfield seancorfi...@gmail.com: It seems that all the Clojure web frameworks expect you to be using Jetty - what about deploying to Tomcat or Resin or JBoss or...? -- Sean A Corfield -- (904) 302-SEAN Railo Technologies, Inc. -- http://getrailo.com/ An Architect's View -- http://corfield.org/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004 Demandoj en aŭ pri Esperanto? Questions about Esperanto? Vragen over Esperanto? Perguntas sobre o Esperanto? - http://demandoj.tk -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Why Jetty? (web development)
On Sep 1, 12:25 pm, Sean Corfield seancorfi...@gmail.com wrote: On Wed, Sep 1, 2010 at 12:14 AM, Joop Kiefte iko...@gmail.com wrote: You can just as well use those. Jetty is just more practical for development, as you don't need to deploy to be able to test it. That doesn't exactly help answer my question :) Jetty can be easily embedded in a Java app and ring-jetty adapter does this job well, so all examples of Clojure web frameworks based on ring use Jetty in development mode. To deploy to Tomcat/JBoss/others you can create a WAR file (using Lein-WAR plugin or Maven WAR artifact) and deploy it on app server of your choice. Is that what your question was about? Regards, Shantanu -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Why Jetty? (web development)
On Wed, Sep 1, 2010 at 2:00 AM, Shantanu Kumar kumar.shant...@gmail.com wrote: Jetty can be easily embedded in a Java app and ring-jetty adapter does this job well, so all examples of Clojure web frameworks based on ring use Jetty in development mode. To deploy to Tomcat/JBoss/others you can create a WAR file (using Lein-WAR plugin or Maven WAR artifact) and deploy it on app server of your choice. Is that what your question was about? Well, that doesn't really _answer_ my question but it's closer :) Everything I see seems to be based on Jetty and the ring-jetty adapter or something similar. If I build something with ring-jetty and package it as a WAR and deploy it to Tomcat (or JBoss or...), will it work? If so, why is it called ring-jetty when it would work with other containers? If not, how do you build a Clojure web app that runs on Tomcat / JBoss / etc? (so the underlying question is: what's the raw Servlet implementation that folks use to power Clojure-based web apps on containers other than Jetty?) -- Sean A Corfield -- (904) 302-SEAN Railo Technologies, Inc. -- http://getrailo.com/ An Architect's View -- http://corfield.org/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Why Jetty? (web development)
On Wed, Sep 1, 2010 at 7:46 PM, Sean Corfield seancorfi...@gmail.com wrote: If not, how do you build a Clojure web app that runs on Tomcat / JBoss / etc? (so the underlying question is: what's the raw Servlet implementation that folks use to power Clojure-based web apps on containers other than Jetty?) -- That in general is not a problem about the container but clojure itself. I see the same problem for Microsoft's F#. That said, I have no problem using clojure and put it on Google's app engine(which is java) by just subclass the request object(or something like that), the plain old servlet way. What is difficult would then be about layout, templating etc. For serious web development, I would say both clojure and F# would be better to serve in the 'business logic' side as the eco-system surrounding java/c# is way ahead of clojure/F#. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Why Jetty? (web development)
On Thu, Sep 2, 2010 at 12:46 PM, Sean Corfield seancorfi...@gmail.comwrote: On Wed, Sep 1, 2010 at 2:00 AM, Shantanu Kumar kumar.shant...@gmail.com wrote: Jetty can be easily embedded in a Java app and ring-jetty adapter does this job well, so all examples of Clojure web frameworks based on ring use Jetty in development mode. To deploy to Tomcat/JBoss/others you can create a WAR file (using Lein-WAR plugin or Maven WAR artifact) and deploy it on app server of your choice. Is that what your question was about? Well, that doesn't really _answer_ my question but it's closer :) Everything I see seems to be based on Jetty and the ring-jetty adapter or something similar. If I build something with ring-jetty and package it as a WAR and deploy it to Tomcat (or JBoss or...), will it work? If so, why is it called ring-jetty when it would work with other containers? If not, how do you build a Clojure web app that runs on Tomcat / JBoss / etc? (so the underlying question is: what's the raw Servlet implementation that folks use to power Clojure-based web apps on containers other than Jetty?) This is really *NOT* an answer to your question. But your can look up http://github.com/datskos/ring-netty-adapter if you want to write an adapter for Tomcat/JBoss/Glassfish/Weblogic/Websphere/etc. -- simple is good http://brucewang.net http://twitter.com/number5 -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Why Jetty? (web development)
On Wed, Sep 1, 2010 at 10:46 PM, Sean Corfield seancorfi...@gmail.com wrote: (so the underlying question is: what's the raw Servlet implementation that folks use to power Clojure-based web apps on containers other than Jetty?) I use ring.util.servlet, and gen-class to create a servlet. I wrote something up on this a while back. You may find the code useful http://m.3wa.com/?p=472 I don't use jetty in production. I create war and deploy to tomcat. -- Omnem crede diem tibi diluxisse supremum. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en