Re: Scala DSL with Scala 2.10
I have logged ticket https://issues.apache.org/jira/browse/CAMEL-6011 And upgrading Scala now. Actually this is not a Scala-way to just upgrade the version of the library. In fact we should create separated module for 2.10 (cloned from the 2.9). New development should take place in 2.10 module while existing 2.9 module should be kept for the compatibility reasons. Now we force people who want to switch from Camel 2.10 to Camel 2.11 to migrate all their business code to Scala 2.10 as well. And this can be painful for them. I can handle this issue if you want, but I strongly recommend to keep Scala 2.9 support. -- Henryk Konsek http://henryk-konsek.blogspot.com
Re: HTTP4 Client + SSL + Accept All Hostnames + Accept All certificates
Hi, I need to do exactly the same as described in this topic, but it doesn't work for me, neither with camel 2.8.0 nor with the newer camel version 2.10.3 - I still get javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated. Here is what I did: My own HttpClientConfigurer: public class MyHttpClientConfigurer implements HttpClientConfigurer { @Override public void configureHttpClient(HttpClient client) { try { SSLContext ctx = SSLContext.getInstance(SSL); X509TrustManager tm = new X509TrustManager() { public void checkClientTrusted(X509Certificate[] xcs, String string) throws CertificateException { } public void checkServerTrusted(X509Certificate[] xcs, String string) throws CertificateException { } public X509Certificate[] getAcceptedIssuers() { return new X509Certificate[0]; } }; ctx.init(null, new TrustManager[] { tm }, null); SSLSocketFactory ssf = new SSLSocketFactory(ctx, SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER); client.getConnectionManager().getSchemeRegistry().register(new Scheme(https4, 443, ssf)); client.getConnectionManager().getSchemeRegistry().register(new Scheme(http, 80, PlainSocketFactory.getSocketFactory())); client.getConnectionManager().getSchemeRegistry().register(new Scheme(http4, 80, PlainSocketFactory.getSocketFactory())); System.out.println(Bla); } catch (Exception e) { throw new RuntimeException(e); } } } The entry in my camel context file: bean id=myHttpClientConfigurer class=my.package.MyHttpClientConfigurer / The call of the URL in the route: from(direct:login) .setHeader(Exchange.HTTP_METHOD, constant(GET)) .to(https4://my_url/index.jsp?httpClientConfigurer=myHttpClientConfigurer) .end(); Am I missing something here ? Thanks. -- View this message in context: http://camel.465427.n5.nabble.com/HTTP4-Client-SSL-Accept-All-Hostnames-Accept-All-certificates-tp4549626p5726238.html Sent from the Camel - Users mailing list archive at Nabble.com.
[ANN] hawtio: a new lightweight HTML5 console for Apache Camel, ActiveMQ, JMX, OSGi Fuse Fabric
For the impatient just look here :) http://hawt.io/ Background == We've had numerous consoles all over the place for some time in various projects like Felix, Karaf, ActiveMQ, Camel, Tomcat, Fuse Fabric to name but a few. Many of them quite heavy weight requiring a custom web app to be deployed (which often is quite large); none particularly working together. We've been working on Fuse Fabric and its management console to provide a more consolidated view of a cluster of Apache integration middleware technologies. Increasingly we're seeing our users and customers using different combinations of technologies in different containers (e.g. Tomcat + ActiveMQ or Karaf + Camel or Fuse Fabric + Karaf + ActiveMQ + Camel or whatever). So for a few months a few of us have been working on trying to make the various web consoles for things like Apache Camel, ActiveMQ, Felix/Karaf/OSGi Fuse Fabric (long with more generic things like JMX OSGi) available as lightweight HTML5 plugins so they can be mixed and matched together to suite any container and combination of technologies that folks deploy in a JVM. hawtio = The result so far is hawtio: http://hawt.io/ You can deploy it as a WAR in any JVM (or feature in karaf) and it provides a UI console for whatever it finds in the JVM. So it works with Tomcat / Jetty / Karaf / JBoss / Fuse Fabric; and has plugins for JMX, OSGi, ActiveMQ, Camel Fuse Fabric so far with others on the way. The nice thing is its pretty small (about 1Mb WAR containing all the server side code, HTML, JS, images, CSS etc). The only real server side component is jolokia which is a small (about 300K) REST connector for JMX (which is awesome BTW!) - the rest is static content (which could be served from anywhere so doesn't need to be deployed in each JVM). Its based around a plugin architecture: http://hawt.io/developers/plugins.html so its easy to add new plugins for any kind of technology. A plugin is pretty much anything that runs in a browser. The nice thing is hawtio can discover UI plugins at runtime by examining the contents of the JVM or querying REST endpoints; so the UI can update in real time as you deploy new things into a JVM! hawtio, the hawt camel rider == A quick summary of the current features for camel folks: * If you have any camel contexts running in a JVM when hawtio starts up it adds an Integration tab which shows all the camel contexts running. * You can start/stop/suspend/resume the context and its routes; then look at all the metrics for routes/endpoints/processors. The Charts tab lets you visualise the real time metrics. * You can create new endpoints; browse endpoints which are browsable send messages to endpoints (with syntax editing support for JSON / XML / YAML / properties) * You can visualise all the camel routes or a specific camel route for a context in the Diagram tab and see real time metrics of how many messages are passing through each step on the diagram. e.g. https://raw.github.com/hawtio/hawtio/master/website/src/images/screenshots/camelRoute.png * Clicking on a Route allows you to Trace it; when tracing if you send a message into a route then it captures a copy of the message at each point through the route. So you can step through (scroll/click through the table) a route and see the message contents and how the message flows through the EIPs - highlighting where on the diagram each message is. This is very handy for figuring out why your route doesn't work :) Spot where the heading disappears! Or see why the CBR doesn't go where you expected. In general most of the runtime features of the open source Fuse IDE eclipse tooling are now supported in the camel hawtio plugin; so available in a web browser. Summary === So if you're vaguely interested in web consoles for Apache Camel I urge you to give it a try. We love contributions and feedback! http://hawt.io/contributing/index.html or feel free to raise new issues for how to improve the camel plugin: https://github.com/hawtio/hawtio/issues?labels=camelpage=1sort=updatedstate=open or if you've an itch for a new kind of plugin please dive in! We should be able to expose existing web apps/consoles as links inside hawtio too BTW. Feedback appreciated! Its hawt, but stay cool! ;) -- James --- Red Hat Email: jstra...@redhat.com Web: http://fusesource.com Twitter: jstrachan, fusenews Blog: http://macstrac.blogspot.com/ Open Source Integration
Eclipse Plugin Production Build
i've got a question about building production releases when the content XML file is setup for the Eclipse. I have (in my POM) moved the 'camel-eclipse' plugin to a separate profile which i only reference in an Eclipse run configuration. The trouble is, however, that i therefore need a way to [conditionally] exclude this bean: bean id=eclipseResolver class=org.apache.camel.component.eclipse.EclipsePackageScanClassResolver/ i.e., if i'm running in eclipse i want the bean but if i'm building a production release then i dont want that bean in the XML as it causes class errors when deployed to ServiceMix. Is there a way when running using the 'camel:run' mvn target to specify a different XML file to use? Martin -- View this message in context: http://camel.465427.n5.nabble.com/Eclipse-Plugin-Production-Build-tp5726247.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: [ANN] hawtio: a new lightweight HTML5 console for Apache Camel, ActiveMQ, JMX, OSGi Fuse Fabric
Hello, it looks really nice…I just give it a try, trying to install it in Karaf, where is my Camel project running, but after ~50 minut I wasn't succesfull. I was trying to utilize Fuse features.xml, to install hawtio, but that wasn't probably good idea :) I'll come back to it later, but if there is a easy way how to install hawtio as OSGi bundle into Apache Karaf, let me know, please. I'm still new in those things, so most probably I just did something wrong, or over-complicated :) On Fri, Jan 25, 2013 at 10:59 AM, James Strachan james.strac...@gmail.comwrote: For the impatient just look here :) http://hawt.io/ Background == We've had numerous consoles all over the place for some time in various projects like Felix, Karaf, ActiveMQ, Camel, Tomcat, Fuse Fabric to name but a few. Many of them quite heavy weight requiring a custom web app to be deployed (which often is quite large); none particularly working together. We've been working on Fuse Fabric and its management console to provide a more consolidated view of a cluster of Apache integration middleware technologies. Increasingly we're seeing our users and customers using different combinations of technologies in different containers (e.g. Tomcat + ActiveMQ or Karaf + Camel or Fuse Fabric + Karaf + ActiveMQ + Camel or whatever). So for a few months a few of us have been working on trying to make the various web consoles for things like Apache Camel, ActiveMQ, Felix/Karaf/OSGi Fuse Fabric (long with more generic things like JMX OSGi) available as lightweight HTML5 plugins so they can be mixed and matched together to suite any container and combination of technologies that folks deploy in a JVM. hawtio = The result so far is hawtio: http://hawt.io/ You can deploy it as a WAR in any JVM (or feature in karaf) and it provides a UI console for whatever it finds in the JVM. So it works with Tomcat / Jetty / Karaf / JBoss / Fuse Fabric; and has plugins for JMX, OSGi, ActiveMQ, Camel Fuse Fabric so far with others on the way. The nice thing is its pretty small (about 1Mb WAR containing all the server side code, HTML, JS, images, CSS etc). The only real server side component is jolokia which is a small (about 300K) REST connector for JMX (which is awesome BTW!) - the rest is static content (which could be served from anywhere so doesn't need to be deployed in each JVM). Its based around a plugin architecture: http://hawt.io/developers/plugins.html so its easy to add new plugins for any kind of technology. A plugin is pretty much anything that runs in a browser. The nice thing is hawtio can discover UI plugins at runtime by examining the contents of the JVM or querying REST endpoints; so the UI can update in real time as you deploy new things into a JVM! hawtio, the hawt camel rider == A quick summary of the current features for camel folks: * If you have any camel contexts running in a JVM when hawtio starts up it adds an Integration tab which shows all the camel contexts running. * You can start/stop/suspend/resume the context and its routes; then look at all the metrics for routes/endpoints/processors. The Charts tab lets you visualise the real time metrics. * You can create new endpoints; browse endpoints which are browsable send messages to endpoints (with syntax editing support for JSON / XML / YAML / properties) * You can visualise all the camel routes or a specific camel route for a context in the Diagram tab and see real time metrics of how many messages are passing through each step on the diagram. e.g. https://raw.github.com/hawtio/hawtio/master/website/src/images/screenshots/camelRoute.png * Clicking on a Route allows you to Trace it; when tracing if you send a message into a route then it captures a copy of the message at each point through the route. So you can step through (scroll/click through the table) a route and see the message contents and how the message flows through the EIPs - highlighting where on the diagram each message is. This is very handy for figuring out why your route doesn't work :) Spot where the heading disappears! Or see why the CBR doesn't go where you expected. In general most of the runtime features of the open source Fuse IDE eclipse tooling are now supported in the camel hawtio plugin; so available in a web browser. Summary === So if you're vaguely interested in web consoles for Apache Camel I urge you to give it a try. We love contributions and feedback! http://hawt.io/contributing/index.html or feel free to raise new issues for how to improve the camel plugin: https://github.com/hawtio/hawtio/issues?labels=camelpage=1sort=updatedstate=open or if you've an itch for a new kind of plugin please dive in! We should be able to expose existing web apps/consoles as links inside hawtio too BTW. Feedback appreciated! Its hawt, but stay cool! ;) -- James --- Red Hat Email:
Re: [ANN] hawtio: a new lightweight HTML5 console for Apache Camel, ActiveMQ, JMX, OSGi Fuse Fabric
If the feature file doesn't work you could just try this: * add this line to your etc/org.ops4j.pax.url.mvn.cfg (which won't be needed once we've released 1.0 soon ;) org.ops4j.pax.url.mvn.repositories= \ https://oss.sonatype.org/content/repositories/snapshots=sonatype.snapshot.repo \ * then in the Karaf / Fuse ESB console try: features:install war install mvn:io.hawt/hawtio-web/1.0-SNAPSHOT/war On 25 January 2013 11:32, Martin Stiborský martin.stibor...@gmail.com wrote: Hello, it looks really nice…I just give it a try, trying to install it in Karaf, where is my Camel project running, but after ~50 minut I wasn't succesfull. I was trying to utilize Fuse features.xml, to install hawtio, but that wasn't probably good idea :) I'll come back to it later, but if there is a easy way how to install hawtio as OSGi bundle into Apache Karaf, let me know, please. I'm still new in those things, so most probably I just did something wrong, or over-complicated :) On Fri, Jan 25, 2013 at 10:59 AM, James Strachan james.strac...@gmail.comwrote: For the impatient just look here :) http://hawt.io/ Background == We've had numerous consoles all over the place for some time in various projects like Felix, Karaf, ActiveMQ, Camel, Tomcat, Fuse Fabric to name but a few. Many of them quite heavy weight requiring a custom web app to be deployed (which often is quite large); none particularly working together. We've been working on Fuse Fabric and its management console to provide a more consolidated view of a cluster of Apache integration middleware technologies. Increasingly we're seeing our users and customers using different combinations of technologies in different containers (e.g. Tomcat + ActiveMQ or Karaf + Camel or Fuse Fabric + Karaf + ActiveMQ + Camel or whatever). So for a few months a few of us have been working on trying to make the various web consoles for things like Apache Camel, ActiveMQ, Felix/Karaf/OSGi Fuse Fabric (long with more generic things like JMX OSGi) available as lightweight HTML5 plugins so they can be mixed and matched together to suite any container and combination of technologies that folks deploy in a JVM. hawtio = The result so far is hawtio: http://hawt.io/ You can deploy it as a WAR in any JVM (or feature in karaf) and it provides a UI console for whatever it finds in the JVM. So it works with Tomcat / Jetty / Karaf / JBoss / Fuse Fabric; and has plugins for JMX, OSGi, ActiveMQ, Camel Fuse Fabric so far with others on the way. The nice thing is its pretty small (about 1Mb WAR containing all the server side code, HTML, JS, images, CSS etc). The only real server side component is jolokia which is a small (about 300K) REST connector for JMX (which is awesome BTW!) - the rest is static content (which could be served from anywhere so doesn't need to be deployed in each JVM). Its based around a plugin architecture: http://hawt.io/developers/plugins.html so its easy to add new plugins for any kind of technology. A plugin is pretty much anything that runs in a browser. The nice thing is hawtio can discover UI plugins at runtime by examining the contents of the JVM or querying REST endpoints; so the UI can update in real time as you deploy new things into a JVM! hawtio, the hawt camel rider == A quick summary of the current features for camel folks: * If you have any camel contexts running in a JVM when hawtio starts up it adds an Integration tab which shows all the camel contexts running. * You can start/stop/suspend/resume the context and its routes; then look at all the metrics for routes/endpoints/processors. The Charts tab lets you visualise the real time metrics. * You can create new endpoints; browse endpoints which are browsable send messages to endpoints (with syntax editing support for JSON / XML / YAML / properties) * You can visualise all the camel routes or a specific camel route for a context in the Diagram tab and see real time metrics of how many messages are passing through each step on the diagram. e.g. https://raw.github.com/hawtio/hawtio/master/website/src/images/screenshots/camelRoute.png * Clicking on a Route allows you to Trace it; when tracing if you send a message into a route then it captures a copy of the message at each point through the route. So you can step through (scroll/click through the table) a route and see the message contents and how the message flows through the EIPs - highlighting where on the diagram each message is. This is very handy for figuring out why your route doesn't work :) Spot where the heading disappears! Or see why the CBR doesn't go where you expected. In general most of the runtime features of the open source Fuse IDE eclipse tooling are now supported in the camel hawtio plugin; so available in a web browser. Summary === So if you're vaguely interested in web consoles for Apache Camel I
Re: [ANN] hawtio: a new lightweight HTML5 console for Apache Camel, ActiveMQ, JMX, OSGi Fuse Fabric
Gentelmans, Especially from Fuse. We have something similar already in Karaf repository and it's called WebConsole. It been there since 2011. I'm sure you was aware of that, especially Guilliaume. There was example how to use it together with Camel and ServiceMix. But you never took time to take a look on that. You decided to create another project instead of supporting existing Apache community project. Or, I should be happy that you did not fork it? We had the same problems with different web consoles, we saw that two years ago when you started working on Fabric. Now you came here and rescue us. If I remember correctly that's third console you produced for Fabric (I don't count previous Fuse consoles). I hope it will be latest and you will not drop the idea and continue supporting it. Hawt.io structure (because is has no architecture) is same as Felix WebConsole. In comparision Felix console uses OSGi services, your uses JMX. Please consider donating it as Felix WebConsole 5. You will change jQuery to Angular. I think hawt.io will finish same as ActiveMQ webconsole. With minimal set of functionality and problems with security. Cheers, Lukasz -- Small discamler: it's my personal opinion. I do not represent any company here. Wiadomość napisana przez James Strachan james.strac...@gmail.com w dniu 25 sty 2013, o godz. 10:59: For the impatient just look here :) http://hawt.io/ Background == We've had numerous consoles all over the place for some time in various projects like Felix, Karaf, ActiveMQ, Camel, Tomcat, Fuse Fabric to name but a few. Many of them quite heavy weight requiring a custom web app to be deployed (which often is quite large); none particularly working together. We've been working on Fuse Fabric and its management console to provide a more consolidated view of a cluster of Apache integration middleware technologies. Increasingly we're seeing our users and customers using different combinations of technologies in different containers (e.g. Tomcat + ActiveMQ or Karaf + Camel or Fuse Fabric + Karaf + ActiveMQ + Camel or whatever). So for a few months a few of us have been working on trying to make the various web consoles for things like Apache Camel, ActiveMQ, Felix/Karaf/OSGi Fuse Fabric (long with more generic things like JMX OSGi) available as lightweight HTML5 plugins so they can be mixed and matched together to suite any container and combination of technologies that folks deploy in a JVM. hawtio = The result so far is hawtio: http://hawt.io/ You can deploy it as a WAR in any JVM (or feature in karaf) and it provides a UI console for whatever it finds in the JVM. So it works with Tomcat / Jetty / Karaf / JBoss / Fuse Fabric; and has plugins for JMX, OSGi, ActiveMQ, Camel Fuse Fabric so far with others on the way. The nice thing is its pretty small (about 1Mb WAR containing all the server side code, HTML, JS, images, CSS etc). The only real server side component is jolokia which is a small (about 300K) REST connector for JMX (which is awesome BTW!) - the rest is static content (which could be served from anywhere so doesn't need to be deployed in each JVM). Its based around a plugin architecture: http://hawt.io/developers/plugins.html so its easy to add new plugins for any kind of technology. A plugin is pretty much anything that runs in a browser. The nice thing is hawtio can discover UI plugins at runtime by examining the contents of the JVM or querying REST endpoints; so the UI can update in real time as you deploy new things into a JVM! hawtio, the hawt camel rider == A quick summary of the current features for camel folks: * If you have any camel contexts running in a JVM when hawtio starts up it adds an Integration tab which shows all the camel contexts running. * You can start/stop/suspend/resume the context and its routes; then look at all the metrics for routes/endpoints/processors. The Charts tab lets you visualise the real time metrics. * You can create new endpoints; browse endpoints which are browsable send messages to endpoints (with syntax editing support for JSON / XML / YAML / properties) * You can visualise all the camel routes or a specific camel route for a context in the Diagram tab and see real time metrics of how many messages are passing through each step on the diagram. e.g. https://raw.github.com/hawtio/hawtio/master/website/src/images/screenshots/camelRoute.png * Clicking on a Route allows you to Trace it; when tracing if you send a message into a route then it captures a copy of the message at each point through the route. So you can step through (scroll/click through the table) a route and see the message contents and how the message flows through the EIPs - highlighting where on the diagram each message is. This is very handy for figuring out why your route doesn't work :) Spot where the heading disappears!
Re: [ANN] hawtio: a new lightweight HTML5 console for Apache Camel, ActiveMQ, JMX, OSGi Fuse Fabric
On 25 January 2013 11:51, Łukasz Dywicki l...@code-house.org wrote: Gentelmans, Especially from Fuse. We have something similar already in Karaf repository and it's called WebConsole. It been there since 2011. I'm sure you was aware of that, especially Guilliaume. I'm aware of most of the consoles at Apache yes. There was example how to use it together with Camel and ServiceMix. But you never took time to take a look on that. How do you know? I did as it happens. You decided to create another project instead of supporting existing Apache community project. Or, I should be happy that you did not fork it? I created another project. You got me there! I apologise for having the cheek to create a project - I hope you will find it in your heart to forgive me one day. The main reason I did is the idea behind hawtio is to be make a technology agnostic plugin based console. So its not OSGi specific or Karaf specific; or Tomcat or Fuse Fabric or Camel or ActiveMQ specific. Its a generic way to plug consoles together in a technology agnostic way. Thats why I didn't put it inside Apache Camel or Apache Karaf which are specific frameworks and containers. Though there's nothing stopping any project anywhere; inside Apache or outside - of making a plugin for hawtio; or reusing hawtio inside its own console, or exposing an existing console to hawtio. We had the same problems with different web consoles, we saw that two years ago when you started working on Fabric. Now you came here and rescue us. Remember this is the camel list. Karaf web console doesn't really help Camel folks terribly much. I created the original camel-web console; the reason I'm back here is to say I've figured out a better way to do the Camel console; thats way better way smaller. If I remember correctly that's third console you produced for Fabric (I don't count previous Fuse consoles). There is 1 console for Fuse Fabric; called FMC - which we're migrating to be a plugin for hawtio; so that Fabric has 1 modular console which anyone can extend. With anything. Like, oh I don't know, the Karaf web console if anyone fancies. I hear its quite good. I hope it will be latest and you will not drop the idea and continue supporting it. Gee thanks for your vote of confidence. We'll definitely be supporting it using it heavily. Hawt.io structure (because is has no architecture) is same as Felix WebConsole. if you're interested, the architecture is described here http://hawt.io/developers/index.html http://hawt.io/developers/plugins.html In comparision Felix console uses OSGi services, your uses JMX. A hawtio plugin can use REST / OSGi / JMX / whatever. But yeah, we're using JMX by default for discovery as its the lowest common denominator so we can point at any JVM and do something useful. e.g. a stand alone JVM / Tomcat / Jetty/ JBoss / Karaf / Fuse Fabric. Please consider donating it as Felix WebConsole 5. Felix can easily reuse it if it wants. Its not Felix / OSGi / Karaf specific though. You will change jQuery to Angular. The default plugins use jQuery and angularjs; though plugins can use anything they want... I think hawt.io will finish same as ActiveMQ webconsole. With minimal set of functionality and problems with security. Its already got more functionality than the ActiveMQ console when deployed in Karaf can reuse the same HTTP security. Thanks for your feedback! -- James --- Red Hat Email: jstra...@redhat.com Web: http://fusesource.com Twitter: jstrachan, fusenews Blog: http://macstrac.blogspot.com/ Open Source Integration
Re: Camel Routing using Java DSL in Servlet without Spring
Hi, I tried to find release date for Apache Camel 2.11 but it is nowhere mentioned. Also the links provided on the site http://www.apache.org/dyn/closer.cgi/camel/apache-camel/2.11.0/apache-camel-2.11.0.zip is showing HTTP 404. I tried to download the SNAPSHOT version and build using Maven but facing difficulties. It would be better to have SC release. Can please help with tentative dates for the RC? Thanks in advance, Manoj -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Routing-using-Java-DSL-in-Servlet-without-Spring-tp5725880p5726239.html Sent from the Camel - Users mailing list archive at Nabble.com.
Multiple POST parameters in Spring DSL
Hello, I am currently facing issue with passing multiple POST parameters from html page to servlet and routed to Camel Spring DSL. camel:from uri=servlet:///getPOI?matchOnUriPrefix=true/ camel:setHeader headerName=CamelHttpMethod inheritErrorHandler=true camel:constantPOST/camel:constant /camel:setHeader camel:setHeader headerName=Content-Type inheritErrorHandler=true camel:constantapplication/x-www-form-urlencoded/camel:constant /camel:setHeader camel:setBody inheritErrorHandler=true camel:simpleuserID=${header.userID},password=${header.password},poiID=${header.poiID}/camel:simple /camel:setBody camel:choice camel:when camel:method bean=testbean method=checkParameters/ camel:to uri=http://localhost:8080/ReceiveParameters/ReceiveServlet?bridgeEndpoint=trueamp;throwExceptionOnFailure=false; inheritErrorHandler=true pattern=InOnly/ /camel:when camel:otherwise camel:to uri=http://localhost:8080/ReceiveParameters/ReceiveServlet?bridgeEndpoint=trueamp;throwExceptionOnFailure=false; inheritErrorHandler=true pattern=InOnly/ /camel:otherwise /camel:choice /camel:route How to separate the parameters in setBody CamelContext? camel:setBody inheritErrorHandler=true camel:simpleuserID=${header.userID},password=${header.password},poiID=${header.poiID}/camel:simple Currently all the parameters are being received as single parameter userID=uid-12345,password=uid-12345,poiID=Pune and I tried to use SPLIT, with , as tokenizer camel:splitcamel:tokenize token=,//camel:split but still it is not working. Please suggest. Thanks in advance, Manoj -- View this message in context: http://camel.465427.n5.nabble.com/Multiple-POST-parameters-in-Spring-DSL-tp5726242.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: [ANN] hawtio: a new lightweight HTML5 console for Apache Camel, ActiveMQ, JMX, OSGi Fuse Fabric
Gave it a ride to test it and it looks awesome. http://camel.465427.n5.nabble.com/file/n5726252/hawt.io.png Still prefer VisualVM when it comes to monitoring though. Besides JMX threads, CPU and mem can be accessed here too. More feedback to come later when I get some more time. /Preben -- View this message in context: http://camel.465427.n5.nabble.com/ANN-hawtio-a-new-lightweight-HTML5-console-for-Apache-Camel-ActiveMQ-JMX-OSGi-Fuse-Fabric-tp5726244p5726252.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: [ANN] hawtio: a new lightweight HTML5 console for Apache Camel, ActiveMQ, JMX, OSGi Fuse Fabric
On 25 January 2013 12:58, Preben.Asmussen p...@dr.dk wrote: Gave it a ride to test it and it looks awesome. http://camel.465427.n5.nabble.com/file/n5726252/hawt.io.png Thanks! Still prefer VisualVM when it comes to monitoring though. Besides JMX threads, CPU and mem can be accessed here too. Yeah, am sure we can improve the JMX monitoring some more with some nicer views. We maybe need a kinda 'system' view showing CPU / memory / threads / disk in a simpler single view. FWIW the JMX tab if you select java.lang you can view/chart metrics on OperationSystem / Threading though the Memory stuff could use some work though. More feedback to come later when I get some more time. Thanks! -- James --- Red Hat Email: jstra...@redhat.com Web: http://fusesource.com Twitter: jstrachan, fusenews Blog: http://macstrac.blogspot.com/ Open Source Integration
Re: [ANN] hawtio: a new lightweight HTML5 console for Apache Camel, ActiveMQ, JMX, OSGi Fuse Fabric
Lukasz, I'm sorry you're angry, but you're missing the point that the Karaf web console is bound to OSGi even if it can be reused with Camel or ActiveMQ. So the Camel and ActiveMQ community will never drop their own console, because the OSGi users is only a fraction of the user base. Hawtio enable all projects to cooperate on a single web console, at last. So it serves a more general purpose imnsho.
Re: [ANN] hawtio: a new lightweight HTML5 console for Apache Camel, ActiveMQ, JMX, OSGi Fuse Fabric
I'm not angry. I'm just telling the truth. Nobody told to you yet. Why you think it's bound to OSGi? We have WAR packaging. Overall destination was always to support other runtimes. Charles was talking about that and he found even a name for it once it will get TLP (Orion). But it was so long ago you propably don't remember. Cheers, :) Lukasz Wiadomość napisana przez Guillaume Nodet gno...@gmail.com w dniu 25 sty 2013, o godz. 14:08: Lukasz, I'm sorry you're angry, but you're missing the point that the Karaf web console is bound to OSGi even if it can be reused with Camel or ActiveMQ. So the Camel and ActiveMQ community will never drop their own console, because the OSGi users is only a fraction of the user base. Hawtio enable all projects to cooperate on a single web console, at last. So it serves a more general purpose imnsho.
Re: Scala DSL with Scala 2.10
Henryk Konsek hekonsek@... writes: I have logged ticket https://issues.apache.org/jira/browse/CAMEL-6011 And upgrading Scala now. Actually this is not a Scala-way to just upgrade the version of the library. In fact we should create separated module for 2.10 (cloned from the 2.9). New development should take place in 2.10 module while existing 2.9 module should be kept for the compatibility reasons. Now we force people who want to switch from Camel 2.10 to Camel 2.11 to migrate all their business code to Scala 2.10 as well. And this can be painful for them. I can handle this issue if you want, but I strongly recommend to keep Scala 2.9 support. Totally agree. The Scala way to do is to build and publish camel-scala_2.9.2- 2.11.0.jar and camel-scala_2.10-2.11.0.jar so sbt could manage scala version automatically. You may want to check http://www.scala- sbt.org/release/docs/Getting-Started/Library-Dependencies.html#getting-the- right-scala-version-with Cheers, Alexander Nemish
Re: Camel Routing using Java DSL in Servlet without Spring
On Fri, Jan 25, 2013 at 10:46 AM, CamelNewbieUser harddrive.ma...@gmail.com wrote: Hi, I tried to find release date for Apache Camel 2.11 but it is nowhere mentioned. Also the links provided on the site http://www.apache.org/dyn/closer.cgi/camel/apache-camel/2.11.0/apache-camel-2.11.0.zip is showing HTTP 404. I tried to download the SNAPSHOT version and build using Maven but facing difficulties. It would be better to have SC release. Can please help with tentative dates for the RC? Sometime next month is the current ETA. Thanks in advance, Manoj -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Routing-using-Java-DSL-in-Servlet-without-Spring-tp5725880p5726239.html Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen - Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
Re: Camel Routing using Java DSL in Servlet without Spring
On Fri, Jan 25, 2013 at 10:46 AM, CamelNewbieUser harddrive.ma...@gmail.com wrote: Hi, I tried to find release date for Apache Camel 2.11 but it is nowhere mentioned. Also the links provided on the site http://www.apache.org/dyn/closer.cgi/camel/apache-camel/2.11.0/apache-camel-2.11.0.zip is showing HTTP 404. I tried to download the SNAPSHOT version and build using Maven but facing difficulties. It would be better to have SC release. Can please help with tentative dates for the RC? You can see the JIRA roadmap for ETA dates https://issues.apache.org/jira/browse/CAMEL#selectedTab=com.atlassian.jira.plugin.system.project%3Aroadmap-panel Thanks in advance, Manoj -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Routing-using-Java-DSL-in-Servlet-without-Spring-tp5725880p5726239.html Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen - Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
Getting next JMS Message before Route is Suspended
I have read several posts on suspending routes such as http://camel.465427.n5.nabble.com/Suspend-route-what-about-the-current-exchange-td5545837.html and have read https://camel.apache.org/how-can-i-stop-a-route-from-a-route.html. The problem I am having is that in the time that it takes to spawn a new thread and suspend the route, sometimes the next JMS message will be consumed which I don't want to happen. The message I receive that causes me to pause the route kicks off another process. When that process finishes I send a resume command to the route to continue processing off the JMS Queue. I need this to happen in exactly this order. I cannot read the next message and act upon it until the other processes has finished. Any suggestions? -- View this message in context: http://camel.465427.n5.nabble.com/Getting-next-JMS-Message-before-Route-is-Suspended-tp5726262.html Sent from the Camel - Users mailing list archive at Nabble.com.
Overload CamelContextFactoryBean
Hi, does anybody knows a way to overload/extend the spring osgi implementation of CamelContextFactoryBean? I actually wants to extend the basic implementation to do some further magic. :-) There seems to be some tricky ways to do it with an own SpringNamespaceHandler and extending the camel-spring.xsd but I failed so far. :-( Thx for any help Benjamin
Re: File component - run them sequentially
On Fri, Jan 25, 2013 at 3:38 PM, renamsavio renamsav...@gmail.com wrote: Does someone have any idea how to solve it? You can use the API on CamelContext to start|stop routes. So you would need to figure out when there is no more files on route1, to start route2, and so forth. And what should happen when route 3 is done. Should it start route1. So it goes in round robin? You can enable the sendEmptyMessageWhenIdle=true, which will have an empty message being sent out in the route. Then you can use that to know that there is no more file, and then start the next route http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html In Camel 2.11 it may be a bit easier with the control bus eip http://camel.apache.org/controlbus.html You can also use on completion http://camel.apache.org/oncompletion.html That may be easier. The file consumer is batch consumer, so there is a special header that tells when the batch is done = no more files. Then in the on consumer you can filter on that, and react upon stopping current route, and start next. Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/File-component-run-them-sequentially-tp5726185p5726264.html Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen - Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
Re: [ANN] hawtio: a new lightweight HTML5 console for Apache Camel, ActiveMQ, JMX, OSGi Fuse Fabric
On Fri, Jan 25, 2013 at 2:36 PM, Łukasz Dywicki l...@code-house.org wrote: I'm not angry. I'm just telling the truth. Nobody told to you yet. Thx for that, I think I was really erring on the dark side before ;-) Why you think it's bound to OSGi? We have WAR packaging. Overall destination was always to support other runtimes. The war packaging does start an OSGi framework inside the war. In addition the console heavily depends on pax-wicket, which afaik, does need OSGi. As you said, injection is done through OSGi services. My understanding (feel free to correct me if I'm wrong) is that the camel plugins is injected with a list of CamelContext coming from OSGi. Which kinda means to me, that you need to deploy your camel contexts in OSGi, next to the console itself. Charles was talking about that and he found even a name for it once it will get TLP (Orion). But it was so long ago you propably don't remember. Maybe I missed something, but when the Orion proposal was raised, Karaf web console did not really exist yet. The proposal was to create a TLP for an OSGi web console with a real web framework. None of these ideas did sound good to me at that time (having a TLP for an OSGi web console and rewriting the existing webconsole with a web framework). We disagree, but these 2 years did not really changed my mind. Now, a few people went ahead and rewrote an OSGi based web console, which is nice, but it's still is an OSGi web console and I still don't like the technical design decisions that were taken. And more importantly, this console does not really help half of our camel users which do not use OSGi. Cheers, :) Np. We've been trying to get the webconsole problems fixed since the beginning with ServiceMix 3, so that's almost 6 years ago now. it became even more complicated with ServiceMix 4 switching to OSGi. I think we have a clean solution now that can work for all projects with hawtio. Will the project last and pick up ? No one knows yet. Not all projects are bound to suceed. The one that do usually solves real problems in a clean way. I think hawtio is a good bet now ... until someone comes up with a better project. That's how it works. Lukasz Wiadomość napisana przez Guillaume Nodet gno...@gmail.com w dniu 25 sty 2013, o godz. 14:08: Lukasz, I'm sorry you're angry, but you're missing the point that the Karaf web console is bound to OSGi even if it can be reused with Camel or ActiveMQ. So the Camel and ActiveMQ community will never drop their own console, because the OSGi users is only a fraction of the user base. Hawtio enable all projects to cooperate on a single web console, at last. So it serves a more general purpose imnsho. -- Guillaume Nodet Red Hat, Open Source Integration Email: gno...@redhat.com Web: http://fusesource.com Blog: http://gnodet.blogspot.com/
Re: [ANN] hawtio: a new lightweight HTML5 console for Apache Camel, ActiveMQ, JMX, OSGi Fuse Fabric
I personally find the tone of this exchange very distasteful and I would much appreciate you continuing it on other media channels than the @camel user lists. FWIW, Lukasz made some valid points. However, you saw a need for a new project, created it, great. Hawt.io is nice, please continue to drive its development there. Thanks, Hadrian On 01/25/2013 07:36 AM, James Strachan wrote: On 25 January 2013 11:51, Łukasz Dywicki l...@code-house.org wrote: Gentelmans, Especially from Fuse. We have something similar already in Karaf repository and it's called WebConsole. It been there since 2011. I'm sure you was aware of that, especially Guilliaume. I'm aware of most of the consoles at Apache yes. There was example how to use it together with Camel and ServiceMix. But you never took time to take a look on that. How do you know? I did as it happens. You decided to create another project instead of supporting existing Apache community project. Or, I should be happy that you did not fork it? I created another project. You got me there! I apologise for having the cheek to create a project - I hope you will find it in your heart to forgive me one day. The main reason I did is the idea behind hawtio is to be make a technology agnostic plugin based console. So its not OSGi specific or Karaf specific; or Tomcat or Fuse Fabric or Camel or ActiveMQ specific. Its a generic way to plug consoles together in a technology agnostic way. Thats why I didn't put it inside Apache Camel or Apache Karaf which are specific frameworks and containers. Though there's nothing stopping any project anywhere; inside Apache or outside - of making a plugin for hawtio; or reusing hawtio inside its own console, or exposing an existing console to hawtio. We had the same problems with different web consoles, we saw that two years ago when you started working on Fabric. Now you came here and rescue us. Remember this is the camel list. Karaf web console doesn't really help Camel folks terribly much. I created the original camel-web console; the reason I'm back here is to say I've figured out a better way to do the Camel console; thats way better way smaller. If I remember correctly that's third console you produced for Fabric (I don't count previous Fuse consoles). There is 1 console for Fuse Fabric; called FMC - which we're migrating to be a plugin for hawtio; so that Fabric has 1 modular console which anyone can extend. With anything. Like, oh I don't know, the Karaf web console if anyone fancies. I hear its quite good. I hope it will be latest and you will not drop the idea and continue supporting it. Gee thanks for your vote of confidence. We'll definitely be supporting it using it heavily. Hawt.io structure (because is has no architecture) is same as Felix WebConsole. if you're interested, the architecture is described here http://hawt.io/developers/index.html http://hawt.io/developers/plugins.html In comparision Felix console uses OSGi services, your uses JMX. A hawtio plugin can use REST / OSGi / JMX / whatever. But yeah, we're using JMX by default for discovery as its the lowest common denominator so we can point at any JVM and do something useful. e.g. a stand alone JVM / Tomcat / Jetty/ JBoss / Karaf / Fuse Fabric. Please consider donating it as Felix WebConsole 5. Felix can easily reuse it if it wants. Its not Felix / OSGi / Karaf specific though. You will change jQuery to Angular. The default plugins use jQuery and angularjs; though plugins can use anything they want... I think hawt.io will finish same as ActiveMQ webconsole. With minimal set of functionality and problems with security. Its already got more functionality than the ActiveMQ console when deployed in Karaf can reuse the same HTTP security. Thanks for your feedback! -- James --- Red Hat Email: jstra...@redhat.com Web: http://fusesource.com Twitter: jstrachan, fusenews Blog: http://macstrac.blogspot.com/ Open Source Integration
Re: [ANN] hawtio: a new lightweight HTML5 console for Apache Camel, ActiveMQ, JMX, OSGi Fuse Fabric
This is one more reason why the hawt.io discussions should take place in the hawt.io communities. Not here. Thanks, Hadrian On 01/25/2013 08:08 AM, Guillaume Nodet wrote: Lukasz, I'm sorry you're angry, but you're missing the point that the Karaf web console is bound to OSGi even if it can be reused with Camel or ActiveMQ. So the Camel and ActiveMQ community will never drop their own console, because the OSGi users is only a fraction of the user base. Hawtio enable all projects to cooperate on a single web console, at last. So it serves a more general purpose imnsho.
Re: [ANN] hawtio: a new lightweight HTML5 console for Apache Camel, ActiveMQ, JMX, OSGi Fuse Fabric
You misunderstood me. So I rephrase. Camel and ActiveMQ community needs a versatile console which can run in a non OSGi environement, so they can't drop their current web console in favor of the karaf one. This discussion is imho totally relevant for the camel community, as it is for all other projects. I already forwarded the email to the karaf community and other projects may be involved too. On Fri, Jan 25, 2013 at 4:24 PM, Hadrian Zbarcea hzbar...@gmail.com wrote: This is one more reason why the hawt.io discussions should take place in the hawt.io communities. Not here. Thanks, Hadrian On 01/25/2013 08:08 AM, Guillaume Nodet wrote: Lukasz, I'm sorry you're angry, but you're missing the point that the Karaf web console is bound to OSGi even if it can be reused with Camel or ActiveMQ. So the Camel and ActiveMQ community will never drop their own console, because the OSGi users is only a fraction of the user base. Hawtio enable all projects to cooperate on a single web console, at last. So it serves a more general purpose imnsho. -- Guillaume Nodet Red Hat, Open Source Integration Email: gno...@redhat.com Web: http://fusesource.com Blog: http://gnodet.blogspot.com/
Persisting route details..
Hi, There are a couple of use-cases that I want to address - 1. Persisting all routes last start-time and end-time somehow so that on the application server startup routes do not start if they have just recently ran and also to report route statistics. 2.Modifying the routes such that the changes don't take effect untill the current exchange finishes. Can anyone share their insights if they have done something similar? I have Camel running in Jboss with Oracle at the backend. I was thinking of creating a table - route_status to persist all this information but was wondering if there is a better approach. Thanks, V
Re: [ANN] hawtio: a new lightweight HTML5 console for Apache Camel, ActiveMQ, JMX, OSGi Fuse Fabric
Ok, that is a different discussion I would rather have in the context of Camel 3.0. I will start a separate thread for this. Having the conversation in the context of the subject of this thread may be confusing. Sorry for the misunderstanding. Cheers, Hadrian On 01/25/2013 10:42 AM, Guillaume Nodet wrote: You misunderstood me. So I rephrase. Camel and ActiveMQ community needs a versatile console which can run in a non OSGi environement, so they can't drop their current web console in favor of the karaf one. This discussion is imho totally relevant for the camel community, as it is for all other projects. I already forwarded the email to the karaf community and other projects may be involved too. On Fri, Jan 25, 2013 at 4:24 PM, Hadrian Zbarcea hzbar...@gmail.com wrote: This is one more reason why the hawt.io discussions should take place in the hawt.io communities. Not here. Thanks, Hadrian On 01/25/2013 08:08 AM, Guillaume Nodet wrote: Lukasz, I'm sorry you're angry, but you're missing the point that the Karaf web console is bound to OSGi even if it can be reused with Camel or ActiveMQ. So the Camel and ActiveMQ community will never drop their own console, because the OSGi users is only a fraction of the user base. Hawtio enable all projects to cooperate on a single web console, at last. So it serves a more general purpose imnsho.
Re: Persisting route details..
Camel currently is essentially stateless. You can achieve what you want, but you'd have to implement it yourself. Something along the lines you mentioned. We are however planning to have support for persistence at a core level in 3.0. Christian Ohr added some details about that on the 3.0 ideas page [1] (near the bottom of the page). [1] http://cwiki.apache.org/confluence/display/CAMEL/Camel+3.0+-+Ideas Cheers Hadrian On 01/25/2013 10:56 AM, Vishal Changrani wrote: Hi, There are a couple of use-cases that I want to address - 1. Persisting all routes last start-time and end-time somehow so that on the application server startup routes do not start if they have just recently ran and also to report route statistics. 2.Modifying the routes such that the changes don't take effect untill the current exchange finishes. Can anyone share their insights if they have done something similar? I have Camel running in Jboss with Oracle at the backend. I was thinking of creating a table - route_status to persist all this information but was wondering if there is a better approach. Thanks, V
Re: Scala DSL with Scala 2.10
Totally agree. The Scala way to do is to build and publish camel-scala_2.9.2- 2.11.0.jar and camel-scala_2.10-2.11.0.jar I reopened the Scala 2.10 issue [1] so we might settle an agreement on how Scala backwards compatibility should be handled in Camel. +1 for renaming existing Scala module to camel-scala_2.9.2 and creating new camel-scala_2.10 module (by cloning). [1] https://issues.apache.org/jira/browse/CAMEL-6011 -- Henryk Konsek http://henryk-konsek.blogspot.com
Re: [ANN] hawtio: a new lightweight HTML5 console for Apache Camel, ActiveMQ, JMX, OSGi Fuse Fabric
FWIW, I think I first mentioned hawtio in the Camel 3.0 thread (message from 8:27 am) when you asked Lukasz to look at the lightweight web console, only saying we should look at it. James started this different thread to actually not pollute the Camel 3 discussion with hawtio details. So I think we're on the same page. On Fri, Jan 25, 2013 at 4:58 PM, Hadrian Zbarcea hzbar...@gmail.com wrote: Ok, that is a different discussion I would rather have in the context of Camel 3.0. I will start a separate thread for this. Having the conversation in the context of the subject of this thread may be confusing. Sorry for the misunderstanding. Cheers, Hadrian On 01/25/2013 10:42 AM, Guillaume Nodet wrote: You misunderstood me. So I rephrase. Camel and ActiveMQ community needs a versatile console which can run in a non OSGi environement, so they can't drop their current web console in favor of the karaf one. This discussion is imho totally relevant for the camel community, as it is for all other projects. I already forwarded the email to the karaf community and other projects may be involved too. On Fri, Jan 25, 2013 at 4:24 PM, Hadrian Zbarcea hzbar...@gmail.com wrote: This is one more reason why the hawt.io discussions should take place in the hawt.io communities. Not here. Thanks, Hadrian On 01/25/2013 08:08 AM, Guillaume Nodet wrote: Lukasz, I'm sorry you're angry, but you're missing the point that the Karaf web console is bound to OSGi even if it can be reused with Camel or ActiveMQ. So the Camel and ActiveMQ community will never drop their own console, because the OSGi users is only a fraction of the user base. Hawtio enable all projects to cooperate on a single web console, at last. So it serves a more general purpose imnsho. -- Guillaume Nodet Red Hat, Open Source Integration Email: gno...@redhat.com Web: http://fusesource.com Blog: http://gnodet.blogspot.com/
Camel Quartz Bug
Friends, I think there´s a bug in camel-quartz component. When I start 500 camel quartz routes I have 500 triggers fired. When I start 600 camel quartz routes I have 600 triggers fired. When I start 700 camel quartz routes I have 700 triggers fired. When I start 800 camel quartz routes I have 800 triggers fired. When I start 900 camel quartz routes I have 900 triggers fired. When I start 1000 camel quartz routes I have 975 triggers fired. When I start 1000 camel quartz routes I have 899 triggers fired. When I start 1000 camel quartz routes I have 940 triggers fired. ... So, when I start 1000 camel quartz routes I have [something less than 1000] triggers fired. I attached my context.xml and Java Test Case. Does somebody knows what is happening? My production app try start over 3000 camel quartz jobs but not all of them is fired. Thanx MassiveCamelQuartzTest.java http://camel.465427.n5.nabble.com/file/n5726285/MassiveCamelQuartzTest.java destinationTestContext.xml http://camel.465427.n5.nabble.com/file/n5726285/destinationTestContext.xml log4j.properties http://camel.465427.n5.nabble.com/file/n5726285/log4j.properties pom.xml http://camel.465427.n5.nabble.com/file/n5726285/pom.xml -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Quartz-Bug-tp5726285.html Sent from the Camel - Users mailing list archive at Nabble.com.
Dynamically building endpoint
I have a bean, lets call it b and a property P on the exchange. I want to send the exchange to an endpoint with the URI: foo: + b.getSomeValue(getProperty(P)) + :bar: + b.getSomeOtherValue(getProperty(P)) + :suffix Is it possible to do this using to(...) or toF(...) ? If so, what would the syntax be? Thanks Lars -- View this message in context: http://camel.465427.n5.nabble.com/Dynamically-building-endpoint-tp5726286.html Sent from the Camel - Users mailing list archive at Nabble.com.
HL7 Mina throwing org.apache.mina.filter.codec.ProtocolDecoderException: org.apache.mina.common.BufferDataException
I'm getting the exception below when using the HL7 component and codec with mina to receive streamed HL7 messages. The program works find when I send it separate messages from a 2nd program using Camel/HL7/Mina and receives an ACK successfully. But when testing with our client we're seeing this exception. The HL7 hex appears to be valid when I reviewed it. It contains the special characters for MLLP in the message: 0x0b (11 decimal) = start marker 0x0d (13 decimal = the \r char) = segment terminators 0x1c (28 decimal) = end 1 marker 0x0d (13 decimal) = end 2 marker Do I need to set a decoderMaxLineLength like the textline codec? Or am I'm missing something else? The only difference I can think of is the client test includes the special characters listed above. And it may be a continuous stream instead of separate messages like my own test program sent successfully. Appreciate any help to resolve this issue. 2013-01-25 18:52:08,831 WARN Camel (camel-1) thread #124 - MinaThreadPool org.apache.camel.component.mina.MinaConsumer$ReceiveHandler - [/209.149.112.25:7899] EXCEPTION: org.apache.mina.filter.codec.ProtocolDecoderException: org.apache.mina.common.BufferDataException: dataLength: 189616968 (Hexdump: 0B 4D 53 48 ...HL7 HEX REMOVED FOR BREVITY... 0D 1C 0D) at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:165) at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299) at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53) at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648) at org.apache.mina.common.support.AbstractIoFilterChain$HeadFilter.messageReceived(AbstractIoFilterChain.java:499) at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299) at org.apache.mina.common.support.AbstractIoFilterChain.fireMessageReceived(AbstractIoFilterChain.java:293) at org.apache.mina.transport.socket.nio.SocketIoProcessor.read(SocketIoProcessor.java:228) at org.apache.mina.transport.socket.nio.SocketIoProcessor.process(SocketIoProcessor.java:198) at org.apache.mina.transport.socket.nio.SocketIoProcessor.access$400(SocketIoProcessor.java:45) at org.apache.mina.transport.socket.nio.SocketIoProcessor$Worker.run(SocketIoProcessor.java:485) at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: org.apache.mina.common.BufferDataException: dataLength: 189616968 at org.apache.mina.common.ByteBuffer.prefixedDataAvailable(ByteBuffer.java:1631) at org.apache.mina.filter.codec.serialization.ObjectSerializationDecoder.doDecode(ObjectSerializationDecoder.java:88) at org.apache.mina.filter.codec.CumulativeProtocolDecoder.decode(CumulativeProtocolDecoder.java:133) at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:158) ... 14 more 2013-01-25 18:52:08,832 DEBUG Camel (camel-1) thread #124 - MinaThreadPool org.apache.camel.component.mina.MinaConsumer - Closing session as an exception was thrown from MINA 2013-01-25 18:52:08,832 INFO Camel (camel-1) thread #124 - MinaThreadPool org.apache.camel.component.mina.MinaConsumer$ReceiveHandler - [/209.149.112.25:7899] CLOSE Maven dependencies and version: camel-core 2.10.3 camel-hl7 2.10.3 camel-mina 2.10.3 camel-jms 2.10.3 camel-spring 2.10.3 activemq-camel 5.7.0 activemq-pool 5.7.0 xbean-spring 3.12 hapi-structures-v24 1.2 slf4j-log4j12 1.6.6 CAMEL ROUTE: // create CamelContext with HL7 codec registered SimpleRegistry registry = new SimpleRegistry(); registry.put(hl7codec, new HL7MLLPCodec()); CamelContext inContext = new DefaultCamelContext(registry); // set up activemq jms ConnectionFactory connectionFactory = new ActiveMQConnectionFactory(vm://localhost?broker.persistent=false); // add jms queue to camel context inContext.addComponent(hl7-jms, JmsComponent.jmsComponentAutoAcknowledge(connectionFactory)); // add our route to the CamelContext try { inContext.addRoutes(new RouteBuilder() { public void configure() { getContext().setHandleFault(true); onException(Exception.class).continued(true); // route from mina endpoint to jms component from(mina:tcp:// + hl7Ip + : + hl7Port + ?sync=trueminaLogger= + minaLogger) .to(hl7-jms:queue:hl7); // route from jms component to hl7 message handling bean
Re: NullpointerException in ClassPathXmlApplicationContext
Hi Claus and Christian, thanks for your support. Using JAXB 2.2.6 helped it out. But I will also check for a newer JDK version. Kind regards, Christian -Ursprüngliche Mitteilung- Von: Claus Ibsen-2 [via Camel] ml-node+s465427n5726211...@n5.nabble.com An: Christian Jacob cjaco...@aol.com Verschickt: Fr, 25 Jan 2013 7:42 am Betreff: Re: NullpointerException in ClassPathXmlApplicationContext On Fri, Jan 25, 2013 at 12:06 AM, Christian Müller [hidden email] wrote: Camel 2.10.3 only supports Spring 3.0.x and 3.1.x. Spring 3.2.x support is added in the upcoming Camel 2.11.0 release. Which concrete JDK 1.7.0 version do you use? Some older ones had issues with parsing XML documents. Yeah the earlier version of JDK 1.7 was buggy. Also you may want to add JAXB 2.2.6 on the classpath which is newer and more reliable than what comes out of JDK. If you use Maven then camel-core has dependencies for that out of the box. Sent from a mobile device Am 24.01.2013 22:26 schrieb Christian Jacob [hidden email]: Hi Claus, I'm using JDK 1.7.0, Camel 2.10.3, and Spring 3.2.0.RELEASE, and I'm running my tests in Eclipse Juno. Thanks for your help. Do you need more informations? Regards, Christian -Ursprüngliche Mitteilung- Von: Claus Ibsen-2 [via Camel] [hidden email] An: Christian Jacob [hidden email] Verschickt: Do, 24 Jan 2013 9:32 pm Betreff: Re: NullpointerException in ClassPathXmlApplicationContext On Thu, Jan 24, 2013 at 9:29 PM, Christian Jacob [hidden email] wrote: Hi there, I'm quite new to Camel and face some problems when building unit tests which extend CamelSpringTestSupport. In the constructor of ttClassPathXmlApplicationContext/tt, I oftenly (*but not always!*) get a NullpointerException. This is the stack trace:p/ Can anybody help me? Many thanks in advance! What JDK, Camel and Spring version do you use? -- View this message in context: http://camel.465427.n5.nabble.com/NullpointerException-in-ClassPathXmlApplicationContext-tp5726189.html Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen - Red Hat, Inc. FuseSource is now part of Red Hat Email: [hidden email] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen If you reply to this email, your message will be added to the discussion below: http://camel.465427.n5.nabble.com/NullpointerException-in-ClassPathXmlApplicationContext-tp5726189p5726190.html To unsubscribe from NullpointerException in ClassPathXmlApplicationContext, click here. NAML -- View this message in context: http://camel.465427.n5.nabble.com/NullpointerException-in-ClassPathXmlApplicationContext-tp5726189p5726202.html Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen - Red Hat, Inc. FuseSource is now part of Red Hat Email: [hidden email] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen If you reply to this email, your message will be added to the discussion below: http://camel.465427.n5.nabble.com/NullpointerException-in-ClassPathXmlApplicationContext-tp5726189p5726211.html To unsubscribe from NullpointerException in ClassPathXmlApplicationContext, click here. NAML -- View this message in context: http://camel.465427.n5.nabble.com/NullpointerException-in-ClassPathXmlApplicationContext-tp5726189p5726293.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: HL7 Mina throwing org.apache.mina.filter.codec.ProtocolDecoderException: org.apache.mina.common.BufferDataException
189616968 bytes may be simply too much... The normal (original) mode of operation in HL7 is to send one message, receive the response, send the next message, receive the next response and so on. Much like HTTP, however, instead of defining the length of a request somewhere, MLLP delimits a request by the marker bytes you mentioned. HL7 does not define a streaming mode, so neither the camel-hl7 component nor HAPI do support it. cheers Christian 2013/1/25 StanZ stanley@eagleriversolutions.com: I'm getting the exception below when using the HL7 component and codec with mina to receive streamed HL7 messages. The program works find when I send it separate messages from a 2nd program using Camel/HL7/Mina and receives an ACK successfully. But when testing with our client we're seeing this exception. The HL7 hex appears to be valid when I reviewed it. It contains the special characters for MLLP in the message: 0x0b (11 decimal) = start marker 0x0d (13 decimal = the \r char) = segment terminators 0x1c (28 decimal) = end 1 marker 0x0d (13 decimal) = end 2 marker Do I need to set a decoderMaxLineLength like the textline codec? Or am I'm missing something else? The only difference I can think of is the client test includes the special characters listed above. And it may be a continuous stream instead of separate messages like my own test program sent successfully. Appreciate any help to resolve this issue. 2013-01-25 18:52:08,831 WARN Camel (camel-1) thread #124 - MinaThreadPool org.apache.camel.component.mina.MinaConsumer$ReceiveHandler - [/209.149.112.25:7899] EXCEPTION: org.apache.mina.filter.codec.ProtocolDecoderException: org.apache.mina.common.BufferDataException: dataLength: 189616968 (Hexdump: 0B 4D 53 48 ...HL7 HEX REMOVED FOR BREVITY... 0D 1C 0D) at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:165) at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299) at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53) at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648) at org.apache.mina.common.support.AbstractIoFilterChain$HeadFilter.messageReceived(AbstractIoFilterChain.java:499) at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299) at org.apache.mina.common.support.AbstractIoFilterChain.fireMessageReceived(AbstractIoFilterChain.java:293) at org.apache.mina.transport.socket.nio.SocketIoProcessor.read(SocketIoProcessor.java:228) at org.apache.mina.transport.socket.nio.SocketIoProcessor.process(SocketIoProcessor.java:198) at org.apache.mina.transport.socket.nio.SocketIoProcessor.access$400(SocketIoProcessor.java:45) at org.apache.mina.transport.socket.nio.SocketIoProcessor$Worker.run(SocketIoProcessor.java:485) at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: org.apache.mina.common.BufferDataException: dataLength: 189616968 at org.apache.mina.common.ByteBuffer.prefixedDataAvailable(ByteBuffer.java:1631) at org.apache.mina.filter.codec.serialization.ObjectSerializationDecoder.doDecode(ObjectSerializationDecoder.java:88) at org.apache.mina.filter.codec.CumulativeProtocolDecoder.decode(CumulativeProtocolDecoder.java:133) at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:158) ... 14 more 2013-01-25 18:52:08,832 DEBUG Camel (camel-1) thread #124 - MinaThreadPool org.apache.camel.component.mina.MinaConsumer - Closing session as an exception was thrown from MINA 2013-01-25 18:52:08,832 INFO Camel (camel-1) thread #124 - MinaThreadPool org.apache.camel.component.mina.MinaConsumer$ReceiveHandler - [/209.149.112.25:7899] CLOSE Maven dependencies and version: camel-core 2.10.3 camel-hl7 2.10.3 camel-mina 2.10.3 camel-jms 2.10.3 camel-spring 2.10.3 activemq-camel 5.7.0 activemq-pool 5.7.0 xbean-spring 3.12 hapi-structures-v24 1.2 slf4j-log4j12 1.6.6 CAMEL ROUTE: // create CamelContext with HL7 codec registered SimpleRegistry registry = new SimpleRegistry(); registry.put(hl7codec, new HL7MLLPCodec()); CamelContext inContext = new DefaultCamelContext(registry); // set up activemq jms ConnectionFactory connectionFactory = new ActiveMQConnectionFactory(vm://localhost?broker.persistent=false); // add jms queue to camel context inContext.addComponent(hl7-jms,
Re: HL7 Mina throwing org.apache.mina.filter.codec.ProtocolDecoderException: org.apache.mina.common.BufferDataException
We're working in asynchronous mode where they send all of the messages and I send the response back as each one is processed using ActveMQ for JMS queuing. It worked fine in my own testing but is failing here. What I don't understand is the length of the message: 189616968 bytes The hex for the message in the log is for one ADT message with only 6 segments. It's pretty small so I'm not sure why or how the buffer length was reached? If the sender sends async a continous stream with each message sparated by the MLLP special characters, would the HL7MLLPCODEC cut off each one and process separately? It may not be doing that. But then again the log HEX only contains one HL7 message with starting and ending characters. -- View this message in context: http://camel.465427.n5.nabble.com/HL7-Mina-throwing-org-apache-mina-filter-codec-ProtocolDecoderException-org-apache-mina-common-Buffen-tp5726292p5726296.html Sent from the Camel - Users mailing list archive at Nabble.com.
Does Camel JPA component implement it's own connection pooling?
I ask because when I use jpa: in producer mode, I get this error: Caused by: oracle.net.ns.NetException: Listener refused the connection with the following error: ORA-12519, TNS:no appropriate service handler found Strangely, using jpa: in consumer mode, this does not happen. In the tnslsnr.log, I observe 120 connections being opened when running the route with jpa: in producer mode. If I instead use a custom Processor and do my own JPA persistence code, the issue does not occur. Thanks for any advice, Chris
Re: Does Camel JPA component implement it's own connection pooling?
On Fri, Jan 25, 2013 at 3:55 PM, Chris Wolf cwolf.a...@gmail.com wrote: I ask because when I use jpa: in producer mode, I get this error: Caused by: oracle.net.ns.NetException: Listener refused the connection with the following error: ORA-12519, TNS:no appropriate service handler found Strangely, using jpa: in consumer mode, this does not happen. In the tnslsnr.log, I observe 120 connections being opened when running the route with jpa: in producer mode. If I instead use a custom Processor and do my own JPA persistence code, the issue does not occur. Thanks for any advice, Chris I stepped through with the debugger and the problem went away. The point at which a lot of connections were opened was after I stepped over: return jpaTemplate.execute(new JpaCallbackObject() { public Object doInJpa(EntityManager entityManager) throws PersistenceException { return callback.doInJpa(entityManager); } ..and when running in real time (not debugging) it seems to be running in an AsyncProcessor - I wonder if it's too many worker threads eating up the connections? BTW, this is mt first project using Camel, so forgive the lack of experience... [ad #1 - file:///tmp/local/data] UnmarshallingContext DEBUG EOF reached at line 2007 [ad #1 - file:///tmp/local/data] SendProcessor DEBUG Endpoint[jpa://?persistenceUnit=marketdata] Exchange[null] [ad #1 - file:///tmp/local/data] JpaTransactionManager DEBUG Creating new transaction with name [null]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT 8505 marketdata INFO [Camel (camel-1) thread #1 - file:///tmp/local/data] openjpa.Runtime - Starting OpenJPA 2.2.1 8535 marketdata INFO [Camel (camel-1) thread #1 - file:///tmp/local/data] openjpa.jdbc.JDBC - Using dictionary class org.apache.openjpa.jdbc.sql.OracleDictionary. [ad #1 - file:///tmp/local/data] JpaTransactionManager DEBUG Opened new EntityManager [org.apache.openjpa.persistence.EntityManagerImpl@798b429b] for JPA transaction [ad #1 - file:///tmp/local/data] JpaTransactionManager DEBUG Initiating transaction commit [ad #1 - file:///tmp/local/data] JpaTransactionManager DEBUG Committing JPA transaction on EntityManager [org.apache.openjpa.persistence.EntityManagerImpl@798b429b] [ad #1 - file:///tmp/local/data] JpaTransactionManager DEBUG Closing JPA EntityManager [org.apache.openjpa.persistence.EntityManagerImpl@798b429b] after transaction [ad #1 - file:///tmp/local/data] EntityManagerFactoryUtils DEBUG Closing JPA EntityManager
Re: CXF endpoint and properties
Hi, I am using 2.10.1. Is it possible to you spring place holders? something like cxf:cxfEndpoint id=referentielOut address=${Props:WSUrl} Regards, Hari -- View this message in context: http://camel.465427.n5.nabble.com/CXF-endpoint-and-properties-tp4848384p5726303.html Sent from the Camel - Users mailing list archive at Nabble.com.
Endpoint Uri not recognized but functional, possible bug.
Hello, Using camel 2.10.3 Here is the test case : http://pastie.org/5865294 Both test are success, but it doesn`t seem right. Both Endpoint are used and working but I can`t get it back from the CamelContext if I don`t add it directly to the CamelContext. Thanks for your time. -- View this message in context: http://camel.465427.n5.nabble.com/Endpoint-Uri-not-recognized-but-functional-possible-bug-tp5726311.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Custom interceptors and finding the first and last camel route
I don`t understand what you are asking. Usually you can just add a .to(somethingElse) at the end of your route. Or you can add some http://camel.apache.org/predicate.html to check if your request was succesful first. If your 2 routes should be in sync, why aren`t they on the same route ? Else you might try to use http://camel.apache.org/aggregator2.html and you will need to make sure it`s 2 matching messages and maybe skip some if only 1 of your 2 routes success. -- View this message in context: http://camel.465427.n5.nabble.com/Custom-interceptors-and-finding-the-first-and-last-camel-route-tp5726148p5726312.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Does Camel JPA component implement it's own connection pooling?
Can you share us your camel route? It is important for us to find out the key reason of your issue. 发自我的 iPhone 在 2013-1-26,上午5:22,Chris Wolf cwolf.a...@gmail.com 写道: On Fri, Jan 25, 2013 at 3:55 PM, Chris Wolf cwolf.a...@gmail.com wrote: I ask because when I use jpa: in producer mode, I get this error: Caused by: oracle.net.ns.NetException: Listener refused the connection with the following error: ORA-12519, TNS:no appropriate service handler found Strangely, using jpa: in consumer mode, this does not happen. In the tnslsnr.log, I observe 120 connections being opened when running the route with jpa: in producer mode. If I instead use a custom Processor and do my own JPA persistence code, the issue does not occur. Thanks for any advice, Chris I stepped through with the debugger and the problem went away. The point at which a lot of connections were opened was after I stepped over: return jpaTemplate.execute(new JpaCallbackObject() { public Object doInJpa(EntityManager entityManager) throws PersistenceException { return callback.doInJpa(entityManager); } ..and when running in real time (not debugging) it seems to be running in an AsyncProcessor - I wonder if it's too many worker threads eating up the connections? BTW, this is mt first project using Camel, so forgive the lack of experience... [ad #1 - file:///tmp/local/data] UnmarshallingContext DEBUG EOF reached at line 2007 [ad #1 - file:///tmp/local/data] SendProcessor DEBUG Endpoint[jpa://?persistenceUnit=marketdata] Exchange[null] [ad #1 - file:///tmp/local/data] JpaTransactionManager DEBUG Creating new transaction with name [null]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT 8505 marketdata INFO [Camel (camel-1) thread #1 - file:///tmp/local/data] openjpa.Runtime - Starting OpenJPA 2.2.1 8535 marketdata INFO [Camel (camel-1) thread #1 - file:///tmp/local/data] openjpa.jdbc.JDBC - Using dictionary class org.apache.openjpa.jdbc.sql.OracleDictionary. [ad #1 - file:///tmp/local/data] JpaTransactionManager DEBUG Opened new EntityManager [org.apache.openjpa.persistence.EntityManagerImpl@798b429b] for JPA transaction [ad #1 - file:///tmp/local/data] JpaTransactionManager DEBUG Initiating transaction commit [ad #1 - file:///tmp/local/data] JpaTransactionManager DEBUG Committing JPA transaction on EntityManager [org.apache.openjpa.persistence.EntityManagerImpl@798b429b] [ad #1 - file:///tmp/local/data] JpaTransactionManager DEBUG Closing JPA EntityManager [org.apache.openjpa.persistence.EntityManagerImpl@798b429b] after transaction [ad #1 - file:///tmp/local/data] EntityManagerFactoryUtils DEBUG Closing JPA EntityManager