Re: example app to embed camel-web-console

Atleast please guide how to embed apache-web-console in my app.
I tried adding the camel war dependency in my pom, maven added everything from the camelwar to my war when I tried accessing local host:8080 I got tomcat home page please guide how to integrate camel web console in my app

Re: example app to embed camel-web-console

Hi
So you hit tomcat, and there were no errors deploying?
Did you perhaps configure your IDE to deploy to a context root? If so you need to add that to the URL.
Also, did you manage to get the example app running from the maven archetype?
Follow this page carefully http://camel.apache.org/web-console.html

> Atleast please guide how to embed apache-web-console in my app.
> I tried adding the camel war dependency in my pom, maven added everything
> from the camelwar to my war when I tried accessing local host:8080 I got
> tomcat home page please guide how to integrate camel web console in my app
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/example-app-to-embed-camel-web-console-tp4512075p4512688.html> Sent from the Camel - Users mailing list archive at Nabble.com.

Re: example app to embed camel-web-console

Thanks for the reply ,I emebdded camel war to my war project which I deploy using jetty-maven-plugin

,context root for my war is artms ,please tell me how to access camel console , I mean what is the url
my jetty runs on 8080 so I acces my application as localhost:8080/artms what should be for camel ?

> Thanks for the reply ,I emebdded camel war to my war project which I deploy
> using jetty-maven-plugin
>
> ,context root for my war is artms ,please tell me how to access camel
> console , I mean what is the url
> my jetty runs on 8080 so I acces my application as localhost:8080/artms
> what should be for camel ?
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/example-app-to-embed-camel-web-console-tp4512075p4517407.html> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Re: example app to embed camel-web-console

Yeah, what Taariq suggested should work. Keep in mind that when you specify
camel-web as a dependency, the maven-jetty-plugin will overlay the camel
webconsole web app in your own web app and run it as one web app. You would
probably have to have multiple executions of the maven-jetty-plugin in your
pom to get both web apps to be independent.

Re: example app to embed camel-web-console

I dont want both the apps to be independent , I want to have camel web console in my app as a web resource, I tried http://localhost:8080/artms/routes url it did not work ,
so to test it in simple way I created a a wicket quickstart project added camel-web-console as dependency.

this project is maven eclipse project it has jetty pluign .I attached this project. Please help me run web-console in this.myproject.zip

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:com/mycompany/applicationContext-camel.xml
</param-value>
</context-param>
<!--
There are three means to configure Wickets configuration mode and they
are
tested in the order given.
1) A system property: -Dwicket.configuration
2) servlet specific <init-param>
3) context specific <context-param>
The value might be either "development" (reloading when templates
change)
or "deployment". If no configuration is found, "development" is the
default.
-->

Re: example app to embed camel-web-console

It worked well in the test application, I tried in my actual application It failed with no such method error, because camel and my application both had the same jar with different version , so what is the solution for this ? I mean both wars might have same jars with differnt version and obviously it lead to probelms os how to what do you suggest ?

Re: example app to embed camel-web-console

Now it depends on what jar you are talking about but in general since a WAR
classloader is flat, you can't have two versions of the same class... so you
will either have to find some way of using the same version of this jar in
your application as Camel uses or separate this into 2 WARs.

> It worked well in the test application, I tried in my actual application
> It
> failed with no such method error, because camel and my application both
> had the same jar with different version , so what is the solution for this
> ? I mean both wars might have same jars with differnt version and
> obviously it lead to probelms os how to what do you suggest ?
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/example-app-to-embed-camel-web-console-tp4512075p4521186.html> Sent from the Camel - Users mailing list archive at Nabble.com.
>