I am using the camel jetty component to route to activemq to access other
backend services.

For instance: 

   from("jetty:http://0.0.0.0:8083/people";)
        .setHeader(JMS_TYPE, constant("AddPeople"))
        .to("activemq:proxy.out").routeId("addPeople");

I would also like to serve up some static web pages that are part of the
classpath. Of course, I want to be able to leverage the jetty server that
is already running within the camel jetty component. Unfortunately I am at
a bit of a loss at how do do this.


I have tried creating a context handler in spring:

<bean id="staticPageHandler"
class="org.eclipse.jetty.server.handler.ContextHandler">                        
                                                
        <property name="contextPath" value="/"/>
        <property name="resourceBase" value="./resources/web" />
        </bean>

And then added it in the list of handlers on the uri:
"jetty:http://0.0.0.0:8083/people??handlers=staticPageHandler";
However that didn't work either.

Any ideas? Am I missing something simple?



Reply via email to