Hi Deven, As we are using 2 different camel components to expose the websocket and jetty servers, then you can't use the same port between the 2 components. But you can imagine to share also your web code with the websocket component like I have done here :
https://github.com/FuseByExample/websocket-activemq-camel/tree/master/camel-ws/src/main/resources/webapp https://github.com/FuseByExample/websocket-activemq-camel/blob/master/camel-ws/src/main/java/com/fusesource/examples/camel/websocket/WebSocketStockPricesRoute.java https://github.com/FuseByExample/websocket-activemq-camel#camel WebServer & WebSocket use the same port : 9090 ! Regards, Charles On Tue, Aug 26, 2014 at 11:05 PM, Deven Phillips <deven.phill...@gmail.com> wrote: > I have seen some discussions elsewhere, but I was hoping I could get a > definitive answer here: > > Is it possible to have a camel-websocket endpoint listening with a URL > like: > > "websocket://localhost:2080/replication" > > AND also have a camel-jetty endpoint listening with a URL like: > > "jetty://http://localhost:2080/rest/" > > When I have tried to accomplish this, I get an error that the port is > already in use. Is there a way to make this work? > > Thanks in advance! > > Deven > -- Charles Moulliard Apache Committer / Architect @RedHat Twitter : @cmoulliard | Blog : http://cmoulliard.github.io