How to package SwitchYard application as WAR
Issue
- I created a simple SwitchYard application using the SwitchYard Project wizard in JBoss Developer Studio. This application starts in a Camel route with a JMS binding.
- Once complete, I changed the configuration from JAR to WAR, following the approach outlined in the
demos/webapp-deploy
quickstart. - The application deploys, but it appears that Camel has not started.
- I tried adding the
SimpleCamelServletContextListener
to myweb.xml
, and Camel loads the routes - but I get errors because the default Camel context thus created knows nothing about SwitchYard components. - Could you tell me the correct way to bootstrap Camel in a SwitchYard WAR application or point me in the right direction if I have done something wrong?
Environment
- Red Hat JBoss Fuse Service Works (FSW)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.