Re: Apache Camel ActiveMq

2012-03-22 Thread sambardar
it is just a test for now. kpigeneratorBean simply sets a test message From KPI Bean in the body of the message. Basically it has just 1 line: e.getOut().setBody(From KPI Bean); In fact if i route the message directly from netty component to the queue, i still get the error. -- View this

Re: Apache Camel ActiveMq

2012-03-22 Thread Claus Ibsen
On Thu, Mar 22, 2012 at 9:00 AM, sambardar sanjay_ambar...@yahoo.com wrote: it is just a test for now. kpigeneratorBean simply sets a test message From KPI Bean in the body of the message. Basically it has just 1 line:  e.getOut().setBody(From KPI Bean); In fact if i route the message

Re: org.apache.camel.RuntimeCamelException: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages

2012-03-22 Thread soumya_sd
@Alexandre Thanks for looking into this. Can you give us an idea when the next RC1 is planned ? -- View this message in context: http://camel.465427.n5.nabble.com/org-apache-camel-RuntimeCamelException-org-apache-camel-TypeConverterLoaderException-Failed-to-load--tp5575757p5585606.html Sent

Re: diagram generator

2012-03-22 Thread Nestor Urquiza
Hi Romain, After reading http://camel.465427.n5.nabble.com/diagram-generator-td4375588.html I said to myself let me give a try to the plugin. I have documented a couple of problems I have found so far: http://code.google.com/p/rmannibucau/wiki/MavenRepository

Re: diagram generator

2012-03-22 Thread Romain Manni-Bucau
Hi Nestor, i think th eissues you ran into was mainly due to the fact i was using m2 last year and with m3 defaults changed. regarding the generation from java it should work since the plugin simply need to be able to load classes (did you run it after compile phase?) - Romain 2012/3/22

Re: EJB and RSS Component in JBoss 7

2012-03-22 Thread Claus Ibsen
Hi Sad to hear that using EJBs is still a in 2012. Have you configured the EjbComponent to specify the JndiContext it need to lookup the EJBs? http://camel.apache.org/ejb And in the old EJB days you needed to have container specific deployment configuration files. I assume this is no

Re: diagram generator

2012-03-22 Thread Nestor Urquiza
I see. I now run the example using: mvn clean package exec:java -Dexec.mainClass=camelinaction.OrderRouter2 And at least I got: [INFO] Trace fr.rmannibucau.loader.spi.DiagramGeneratorRuntimeException: can't find route inside camelinaction.OrderRouteBuilder directory. at

Re: How to get header parameter in a to route of camel

2012-03-22 Thread Alex Anderson
from( jms:request)            .process(new AddHeader())            .to(cxfrs://http://abc.com/; + header (test)) Have you tried: .to(simple(cxfrs://http://abc.com/${header.test};))

Re: How to get header parameter in a to route of camel

2012-03-22 Thread atg roxx
Hi RNPG, I check the links you have provided and they are really good, but they dont seem to solve my problem. I want to genreatet the URI in dynamic fashion. i.e http://abc.zyz.com/this part has to be is dynamically added whose value is there in one of the header parameter Can you suggest a

Re: How to get header parameter in a to route of camel

2012-03-22 Thread atg roxx
Hi Alex, I doubt that we can use simple within to. I am getting compilation error for it. Regards, -atg roxx On Thu, Mar 22, 2012 at 2:59 PM, Alex Anderson a...@frontlinesms.comwrote: from( jms:request) .process(new AddHeader()) .to(cxfrs://http://abc.com/; +

Re: How to get header parameter in a to route of camel

2012-03-22 Thread Marco Westermann
Hi, you cannot use simple language in the to endpoint-uri, but you can use it in the recipientList! from( jms:request) .process(new AddHeader()) .recipientList(simple(cxfrs://http://abc.com/${header.test};)); regards, Marco Am 22.03.2012 16:13, schrieb atg roxx: Hi

Throttling: maximumRequestsPerPeriod problem

2012-03-22 Thread garrydias
Hi! I´m trying to use Throttle in my xml CamelContext under 2.9 Camel version, but when I set the /maximumRequestsPerPeriod/ property my compilation fails displaying this message: *cvc-complex-type.3.2.2: Attribute 'maximumRequestsPerPeriod' is not allowed to appear in element

Re: Throttling: maximumRequestsPerPeriod problem

2012-03-22 Thread Marco Westermann
Hi, did you see, that the syntax changed with camel 2.8: see: http://camel.apache.org/throttler.html throttle timePeriodMillis=1 constant3/constant to uri=mock:result/ /throttle regards, Marco Am 22.03.2012 16:37, schrieb garrydias: Hi! I´m trying to use Throttle

using MessageConverter with Bean

2012-03-22 Thread Xuan Huang
Hi, I have in my RouteBuilder something like this: public class MyRouteBuilder extends RouteBuilder{ private static final String IN_QUEUE=activemq:myqueue.in?messageConverter=#myMessageConverter; @Override public void configure(){ from(IN_QUEUE).choice()

Re: diagram generator

2012-03-22 Thread Nestor Urquiza
I commented in the project page http://code.google.com/p/rmannibucau/wiki/CamelDiagramGenerator I have provided a sample project to test (added a couple of classes to the source code for chapter2/cbr of Camel in Action Book). As I stated there the URL for the sample project is

Orchestration with Camel

2012-03-22 Thread Hugo
Hi everyone, I am wondering which advantages I could have using Camel for orchestration tasks (like sequence of webservices calls) rather than Apache ODE ? The only point I am aware right now, it is : with Camel I can do it in java (even if Camel wasnot initially created for orchestration) and

Re: diagram generator

2012-03-22 Thread Romain Manni-Bucau
did you add in the conf: fileTypejava/fileType? - Romain 2012/3/22 Nestor Urquiza nestor.urqu...@gmail.com I see. I now run the example using: mvn clean package exec:java -Dexec.mainClass=camelinaction.OrderRouter2 And at least I got: [INFO] Trace

Re: Apache Camel ActiveMq

2012-03-22 Thread sambardar
It doesn't work even if i just send the message directly from netty endpoint without modifying the body -- View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-ActiveMq-tp5580552p5587190.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Throttling: maximumRequestsPerPeriod problem

2012-03-22 Thread garrydias
Yes! I´ve tried: *throttle timePeriodMillis=1 constant20/constant to uri=mock:result/ /throttle * and *throttle timePeriodMillis=1 headergarryHeader/header to uri=mock:result/ /throttle * both are displaying: /Caused by:

Tomcat JDK 1.6 Recommend Memory Settings

2012-03-22 Thread chrislovecnm
Hi all We are running these setting in production right now. JAVA_OPTS=-XX:+HeapDumpOnOutOfMemoryError -server -Xms1024m -Xmx1024m -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:+UseCompressedOops -Xss1024K -XX:NewSize=512m -XX:+CMSIncrementalMode

Re: How to get header parameter in a to route of camel

2012-03-22 Thread atg roxx
Hi Marco, I am facing a strange problem when using recipientList, the processor method where I am setting the value in header is getting the input as the appended value of the earlier request. from( jms:request) .process(new AddHeader(test)) .to(cxfrs://http://abc.com/; +

Re: Orchestration with Camel

2012-03-22 Thread Hadrian Zbarcea
Camel was created for message processing. One of typical usecase for camel is business processes. The key points are: * use of a higher level language to describe your business process: in ODE you have BPEL, in camel you don't, but you have EIPs (via a DSL supported in a few languages,

RE: Orchestration with Camel

2012-03-22 Thread Omar Atia
Currently I have project to replace BPEL with activemq and Camel , avoid BPEL . Enjoy the camel ride. Thanks, -Original Message- From: Hugo [mailto:the_damned_an...@voila.fr] Sent: Thursday, March 22, 2012 6:36 PM To: users@camel.apache.org Subject: Orchestration with Camel Hi

Re: diagram generator

2012-03-22 Thread Nestor Urquiza
I tried that but it fails even though the class is indeed in the specified package: Caused by: java.lang.ClassNotFoundException: camelinaction/OrderRouteBuilder ... $ ls src/main/java/camelinaction/OrderRouteBuilder.java src/main/java/camelinaction/OrderRouteBuilder.java On Thu, Mar 22, 2012 at

Re: diagram generator

2012-03-22 Thread Nestor Urquiza
Can you please tell me what the content of input should be for a class in package camelinaction named OrderRouteBuilder? I have tested with .class, with .java, without extension, using package notation, using relative and absolute path notation and I always get java.lang.ClassNotFoundException I

Re: diagram generator

2012-03-22 Thread Romain Manni-Bucau
Try running compile goal before generate goal. - Romain Le 22 mars 2012 19:58, Nestor Urquiza nestor.urqu...@gmail.com a écrit : Can you please tell me what the content of input should be for a class in package camelinaction named OrderRouteBuilder? I have tested with .class, with .java,

Re: diagram generator

2012-03-22 Thread Nestor Urquiza
Not sure what you mean by generate goal. I can see the classes are generated (compiled) before the plugin emits the error. So the classes are indeed in the target/classes $ mvn clean compile package exec:java -Dexec.mainClass=camelinaction.OrderRouter2 ... [INFO] Building jar:

Re: diagram generator

2012-03-22 Thread Romain Manni-Bucau
just pushed some changes: 1) the plugin name changed a bit to follow maven convention 2) fixing some classloading issues when running the plugin from the build when the route builder is defined here my conf: ?xml version=1.0? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=