As I said; the easiest thing is to just use Fuse Fabric as we've lots of
documentation and out of the box examples that just work. However if you
want to use the spring watcher directly try this:


Try putting a spring camel XML file inside the spring folder (not /sping)
within the git repo?

e.g. here's a sample git repo for hawtio (which is used by default when you
use hawtio, so there should be this file there already?):
https://github.com/hawtio/hawtio-config

here's the watched spring XMLs
https://github.com/hawtio/hawtio-config/tree/master/spring

So try edit that camel XML there?

If you run hawtio via this command in the hawtio/hawtio-web directory
(assuming you've setup your machine with npm / typescript:
https://github.com/hawtio/hawtio/blob/master/BUILDING.md#installing-local-dependencies
)

  mvn test-compile exec:java

then you will be able to edit this camel XML file via this URL:


http://localhost:8080/hawtio/#/wiki/branch/master/camel/canvas/spring/camel-spring.xml

when you hit save, you'll see in the log the route change (e.g. try edit
the Log statement to make it even more obvious).


Or change this blueprint XML file to watch the entire git repo if you
refer; e.g. change this to "${hawtio.config.dir}" instead of
"${hawtio.config.dir}/spring"
https://github.com/hawtio/hawtio/blob/master/hawtio-watcher-spring-context/src/main/resources/OSGI-INF/blueprint/blueprint.xml#L7-7

more detail on hawtio config here:
http://hawt.io/configuration/index.html




On 6 November 2013 01:00, Klaus777 <max.bridgewa...@gmail.com> wrote:

> Also, to make sure it is not a compatibility issue, I took
>
> https://oss.sonatype.org/content/repositories/public/io/hawt/sample/1.2-M27/sample-1.2-M27.war
> ,
> and inserted the following JAR into its  WEB-INF/lib folder:
>
> https://oss.sonatype.org/content/repositories/public/io/hawt/hawtio-watcher-spring-context/1.2-M27/hawtio-watcher-spring-context-1.2-M27.jar
>
> I also created an additional camel context
> /sping/mypersonal-camelcontext.xml. I declared a camel context in this file
> with a different id.
>
>
> Still no change in the deployed context.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/How-to-Deploy-new-Camel-Context-with-Hawtio-tp5742571p5742685.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
James
-------
Red Hat

Email: jstra...@redhat.com
Web: http://fusesource.com
Twitter: jstrachan, fusenews
Blog: http://macstrac.blogspot.com/

Open Source Integration

Reply via email to