L.S.,

Basically, ServiceMix is just a Spring application, so if you create a
simple webapp which creates a Spring ApplicationContext and add
support for XBean, you should be almost set.

The web.xml syntax would look something like:
  <context-param>
    <param-name>contextClass</param-name>
    
<param-value>org.apache.xbean.spring.context.XmlWebApplicationContext</param-value>
  </context-param>

  <listener>
    
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  </listener>

You can now configure an <sm:container/> in your application context
xml file and starting adding configuration for the container there.
Make sure you get all the dependencies for ServiceMix packaged in the
war file.  If you want a more elaborate example, the best place to
look is probably the source code for the servicemix-web distribution
itself, which does exactly the same thing: create a war which sets up
the Spring application context.

Regards,

Gert Vanthienen
------------------------
Open Source SOA: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/



2009/3/23 jsj <[email protected]>:
>
> Hello-I'm trying to create a .war file containing the SAs I plan to use
> without the need to use the conosle for 'registering' components. Simply
> wish to build .war(containing SM runtime and SAs) and copy to hotdeploy
> directory of web server. What is suggested approach for this?
>
> Thank you for input, JSJ.
> --
> View this message in context: 
> http://www.nabble.com/.war-deployment-tp22653515p22653515.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>

Reply via email to