Hi,

Maybe somebody else can give you a better indication as how to do this, but
here's how I would do it. ASSUMING that your'e web app is Spring enabled.

Change your web.xml to include

   <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>/WEB-INF/servicemix.xml</param-value>
    </context-param>
    <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>

This will cause the servicemix.xml file to load. and as a result your
servicemix JBIContainer, along with other spring based beans....

That's it

Remember that as you add more Binding Components  eg http, you will have to
progressively add more jars to your project, at the very least I think you
only need 6 or 7 jar files, but as you add new BC's you need to add more
jars (obviously)

Hope that helps
Ivanhoe




On 8/29/07, kumar k <[EMAIL PROTECTED]> wrote:
>
> What I wanted to ask is how to package it with my application. My
> application is deployed as a war file. If I want to embed servicemix with it
> what all jars etc need to be packaged with that war and what should be
> package structure.
>   Regards
>   Kumar
>
> Kit Plummer <[EMAIL PROTECTED]> wrote:
>   On 8/29/07, kumar k wrote:
> >
> > What are the steps required for embeding ServiceMix in my application?
> >
> > ---------------------------------
> > Looking for a deal? Find great prices on flights and hotels with Yahoo!
> > FareChase.
>
>
> Sending you on a boondoggle:
>
> http://incubator.apache.org/servicemix/basic.html
>
> --
> Kit Plummer
> Nobody-in-Charge @ Black:Hole:Logic
> http://www.blackholelogic.com
>
>
>
> ---------------------------------
> Ready for the edge of your seat? Check out tonight's top picks on Yahoo!
> TV.

Reply via email to