4 Replies Latest reply on Jul 27, 2009 4:23 PM by ccustine

    deploy a servlet into Servicemix 3.4

    suxuguang

      Hi,

        Will drop a war file into hotdeploy directory only work for 4.x?

        Is there a way to deploy a servlet into servicemix 3.4.xx? Is it possible to package a servlet into a service assembly and deploy it to some component like service-http?

       

      Thanks!

        • 1. Re: deploy a servlet into Servicemix 3.4
          ccustine

          This is definitely not a feature in ServiceMix 3.x.  If you really wanted to make this work in ServiceMix 3.x you could probably write a custom component but because 3.x is very JBI centric it probably does'nt make much sense.  If you are just looking to deploy a simple web app that doesn't interact with the NMR, you could probably configure a Jetty instance with Spring XML inside servicemix.xml as an alternative.  Or you can always give FUSE ESB 4.1 a shot! 

          • 2. Re: deploy a servlet into Servicemix 3.4
            suxuguang

            Thank you very much for the answer!

             

            But our campany can only work with 3.4 right for now since other developments are already done to 3.4. Could you point me to some samples on how to configure a Jetty instance with Spring xml for servicemix?

             

            Thanks again!

            • 3. Re: deploy a servlet into Servicemix 3.4
              suxuguang

              Need a little more info.

              • 4. Re: deploy a servlet into Servicemix 3.4
                ccustine

                There is an excellent post about embedding jetty in a Spring context here.  You will probably want to read the comments as there appear to be some additional issues if you want to have Jetty watch for war files and auto deploy them.  Another option would be to do this within your own code and start that code as a bean.