1 Reply Latest reply on Jul 30, 2007 4:02 PM by alesj

    Jboss and Spring

    pedwards

      Guys,

      I am new to jboss. I've got a prewritten spring application, that I now need to run out of jboss. I've had a play with the jboss-spring deployer, but its still using 1.2.5 version of spring, which doesn't work with my code.

      So I need to know how to start spring application context from a war file.

      Alesj, you state in the JBoss/Spring development sticky thread that: simple instantiation of app context inside war is basic stuff...

      I'm sorry, but I haven't found it simple, but then I don't have huge experience with war files. All I'm wanting to do, is start my app. Please are you able to supply a simple war file example?

      Thanks very much for your help.
      Paul.

        • 1. Re: Jboss and Spring
          alesj

          Like I said in the sticky, deploying Spring .war file/application is what Spring is all about - see their basic instructions. JBoss (Tomcat) in this case only serves as a web container.

          What JBoss/Spring is about, is the integration with EJB3 or any AOP injection capable module.

          "pedwards" wrote:
          but its still using 1.2.5 version of spring

          Not true. There is not so new release that supports Spring 2.0.

          "pedwards" wrote:

          So I need to know how to start spring application context from a war file.

          See Spring instructions.
          There must be Spring specific ServletContextListener defined in web.xml.

          "pedwards" wrote:
          Please are you able to supply a simple war file example?

          Any working .war should do.
          JBoss (Tomcat) is a normal web container. ;-)