Deploy Camel project to Activemq

2011-12-13 Thread focaldi
Hi I am using Activemq 5.5.1 and I wanna deploy my camel application what it is adding dynamic routes and some datasource registry. But I couldnt add datasources to camel instance that provided by Active MQ. If I would use camelContext = new DefaultCamelContext(registry);, I can register to camel

how to configure jms URI to support send or receive message on remote ibm mq queue

2011-12-13 Thread xiangqiuzhao
i can't use JNDI and can't use some configure file. so i wan't know how to use from(uri) to receive or send message to remote ibm mq queue. how to sepecial the address and port. -- View this message in context:

Re: how to configure jms URI to support send or receive message on remote ibm mq queue

2011-12-13 Thread Willem Jiang
Can you using Spring to access the IBM mq ? You just need to setup the right connection factory on camel-jms component. On Tue Dec 13 16:24:19 2011, xiangqiuzhao wrote: i can't use JNDI and can't use some configure file. so i wan't know how to use from(uri) to receive or send message to

Re: Custom Jackson ObjectMapper

2011-12-13 Thread Claus Ibsen
Hi Charles Thanks for sharing this. I think you have a good solution so far. We may want to improve the Camel json data format to allow to specify a custom ObjectMapper. Unfortunately the Camel json data format is a dual library that supports xstream and jackson. So if we add this option, then

Re: how to configure jms URI to support send or receive message on remote ibm mq queue

2011-12-13 Thread Claus Ibsen
Hi Google and search this forum. There has been plenty of posts about how to connect to IBM MQ from JMS and/or Camel. On Tue, Dec 13, 2011 at 9:24 AM, xiangqiuzhao xiangqiuz...@gmail.com wrote: i can't use JNDI and can't use some configure file. so i wan't know how to use from(uri) to

Re: Basic JMS to bean In/Out Router Question

2011-12-13 Thread Claus Ibsen
On Mon, Dec 12, 2011 at 11:55 PM, mattmadhavan mattmadha...@yahoo.com wrote: Hello, I have been in out with this question for a while - Been pulled in different directions last few months - My apologies about it! Been spending some time on the Camel Book, starting to understand some basic

Re: Deploy Camel project to Activemq

2011-12-13 Thread Willem Jiang
On Tue Dec 13 16:21:14 2011, focaldi wrote: Hi I am using Activemq 5.5.1 and I wanna deploy my camel application what it is adding dynamic routes and some datasource registry. But I couldnt add datasources to camel instance that provided by Active MQ. If I would use camelContext = new

Re: Best practice to generate complexe HTML

2011-12-13 Thread Claus Ibsen
Hi There is no best solution to rule them all. Use what works best for you. Yes template engines is great for generating dynamic HTML pages. If you are into the Scala world, then there is also scalate http://scalate.fusesource.org/ On Mon, Dec 12, 2011 at 5:51 PM, Sol Ido sol...@robbieone.com

getUnitOfWork().done - Memory leak

2011-12-13 Thread diwakar
Hi, In servicemix/JBI, if message exchange was not set to DONE status, there will be a memory leak (not easy to detect). Will missing getUnitOfWork().done(ex) lead to a memory leak in Camel? Are there such leaks possible also in Camel due to missing exchange

Re: Deploy Camel project to Activemq

2011-12-13 Thread Claus Ibsen
On Tue, Dec 13, 2011 at 9:32 AM, Willem Jiang willem.ji...@gmail.com wrote: On Tue Dec 13 16:21:14 2011, focaldi wrote: Hi I am using Activemq 5.5.1 and I wanna deploy my camel application what it is adding dynamic routes and some datasource registry. But I couldnt add datasources to camel

Re: Deploy Camel project to Activemq

2011-12-13 Thread focaldi
Thanks Willem but I didnt create another camelcontext. Just I want to use ActiveMQ camelcontext instance. So when I tried to add this context in java code, I couldnt find like camelContext.addRegister command. -- View this message in context:

Re: Dynamic Routing

2011-12-13 Thread Claus Ibsen
Hi You must have build the method wrong, in the for loop. Make sure its built correctly. I just added a test to trunk that works with 3 parameters http://svn.apache.org/viewvc?rev=1213597view=rev On Mon, Dec 12, 2011 at 5:49 PM, m.jimen.blazquez m.jimen.blazq...@gmail.com wrote: Hi, I have

Re: Scala DSL - Calling Spring beans as predicates

2011-12-13 Thread Claus Ibsen
On Mon, Dec 12, 2011 at 5:53 PM, Craig McDaniel cpmcdan...@gmail.com wrote: I guess I should clarify that I'm getting an AmbiguousMethodCallException, not that the bean binding can't see the method. We can use help on the Scala DSL. Maybe we could add a method so you can invoke a bean from the

Re: NotifyBuilder issue while integration testing?

2011-12-13 Thread Claus Ibsen
Hi What version of Camel are you using? On Mon, Dec 12, 2011 at 4:34 PM, suman prashanth.shivaku...@gmail.com wrote: Hello Guys, Iam trying to do integration testing using NotifyBuilder support of camel. Very basic use as highlighted below =  NotifyBuilder notify = new

Re: Deploy Camel project to Activemq

2011-12-13 Thread focaldi
Thanks Claus, but I am trying to add in ActiveMQ library. And my project has a myconfig.xml for configuration and I want to register datasources what defined in myconfig.xml to camelcontext. So I cannot use a jndi.properties file... May be I couldt explain what is my problem... -- View this

Re: how to configure jms URI to support send or receive message on remote ibm mq queue

2011-12-13 Thread xiangqiuzhao
i only want to use camel api to setup the jms to access ibm mq. and i want to extend camel-jms to support my application message protocol. like big message how to split some small message. -- View this message in context:

Re: Deploy Camel project to Activemq

2011-12-13 Thread Willem Jiang
I think you can just put the setting of the datasrouces into your config.xml. On Tue Dec 13 16:41:56 2011, focaldi wrote: Thanks Claus, but I am trying to add in ActiveMQ library. And my project has a myconfig.xml for configuration and I want to register datasources what defined in

Re: seda queue performance

2011-12-13 Thread metebalci
Thanks Christian and Raul. I am not much experienced on camel, so I may use wrong terminology, be aware of this please. More details: I am using camel 2.6.0 at the moment with Sun Java 6 on Linux, and it runs inside a war deployed on Tomcat 7. I am configuring it programmatically with

Re: Dynamic Routing

2011-12-13 Thread m.jimen.blazquez
Hi, I have reduced my code to the simplest code. This code goes perfectly: route camel:from uri=cxfrs:/exchange2 / camel:bean ref=orderServiceRest method=buy('symbol', 'quantity', 'price') / /route but this one goes wrong: route camel:from uri=cxfrs:/exchange2

Re: seda queue performance

2011-12-13 Thread Guillaume Yziquel
Le Tuesday 13 Dec 2011 à 01:30:10 (-0800), metebalci a écrit : Christian, you said sendBody uses InOut pattern, actually I only want InOnly (only send, no need for return), how can I use it like that ? requestBody. http://camel.apache.org/producertemplate.html -- Guillaume Yziquel

Re: seda queue performance

2011-12-13 Thread Raul Kripalani
Just to clarify, there seems to be some confusion regarding the usage of sendBody/requestBody and variants. The correct usage is as follows, pasted from the Wiki: The send*() methods use the default Message Exchange Pattern (InOnly, InOut etc) as the endpoint. If you want to explicitly perform a

Re: Temporary consumers?

2011-12-13 Thread Raul Kripalani
Any negative number will close the message group. Regards, Raúl. On 12 December 2011 19:05, Raul Kripalani r...@fusesource.com wrote: Yes, message groups is the way to go. I've used this in the past and it's an extremely elegant and well-behaved pattern ;) If producers shut down cleanly,

BAM - problem with database

2011-12-13 Thread marcinN
Hi I have a problem with database for BAM. I created sample code : ActivityBuilder request = activity(broker:topic:req?concurrentConsumers=1).name(Request) .correlate(xpath(/Request/@Id).stringResult()); ActivityBuilder response =

Re: NotifyBuilder issue while integration testing?

2011-12-13 Thread suman
Hello, Iam using 2.8.3 Thanks -- View this message in context: http://camel.465427.n5.nabble.com/NotifyBuilder-issue-while-integration-testing-tp5068648p5071046.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Dynamic Routing

2011-12-13 Thread Claus Ibsen
Hi I can reproduce the issue and have created a ticket https://issues.apache.org/jira/browse/CAMEL-4773 On Tue, Dec 13, 2011 at 10:45 AM, m.jimen.blazquez m.jimen.blazq...@gmail.com wrote: Hi, I have reduced my code to the simplest code. This code goes perfectly: route        

Re: Best practice to generate complexe HTML

2011-12-13 Thread Sol Ido
Thank you Claus I really like Scala and i have to consider the combinaison of Scalate and Jade as a generator since i'm still looking for a complete solution. My main concern is too avoid to declare to much Jetty entries. If i've to open one for each action and controller ... In this page

Re: Best practice to generate complexe HTML

2011-12-13 Thread James Strachan
On 13 December 2011 11:51, Sol Ido sol...@robbieone.com wrote: Thank you Claus I really like Scala and i have to consider the combinaison of Scalate and Jade as a generator since i'm still looking for a complete solution. As an aside Scalate supports a few different template languages; the 2

Re: Best practice to generate complexe HTML

2011-12-13 Thread Claus Ibsen
Hi If you use matchOnUriPrefix=true on the jetty endpoints, then they match any context path prefix, from(jetty://0.0.0.0:80/manager?matchOnUriPrefix=true).to(bean:webappOne); So if you hit these urls they will be triggered in the route above http://0.0.0.0:80/manager/foo/bar

Re: Dynamic Routing

2011-12-13 Thread Claus Ibsen
On Tue, Dec 13, 2011 at 11:48 AM, Claus Ibsen claus.ib...@gmail.com wrote: Hi I can reproduce the issue and have created a ticket https://issues.apache.org/jira/browse/CAMEL-4773 Fixed today, and will be part of the Camel 2.9.0 release. On Tue, Dec 13, 2011 at 10:45 AM, m.jimen.blazquez

Re: Problem using JmsCompoment with Tibco implementation

2011-12-13 Thread Pierre HARDY
I did the test and running a standalone camel works. I do not have the error anymore. When i'm not providing the JMS API i have a classNotFoundException. Can it still be a double API missmatch ? Do you have ideas or lead to help me fix this problem ? Le 09/12/2011 10:38, Pierre HARDY a écrit :

Re: NotifyBuilder issue while integration testing?

2011-12-13 Thread Claus Ibsen
Hi You need to use whenDoneByIndex(0) to tell the notify builder to match when the very first exchange was done. As the recipient list, multicast, splitter EIP will create sub-messages (eg new Exchanges) and they may be done before the parent Exchange and thus cause the notify in your example to

RE: Garbage collection Execuation ...

2011-12-13 Thread Omar Atia
Dear Deckerego, I didn't write any code it is all XML configuration as spring and I have attached xml came context. Thanks, Omar Atia -Original Message- From: deckerego [mailto:decker...@gmail.com] Sent: Monday, December 12, 2011 6:10 PM To: users@camel.apache.org Subject: Re: Garbage

Re: Endpoint internal exceptions and how to handle

2011-12-13 Thread Jason Dillon
Is there a better place to ask this question? --jason On Dec 7, 2011, at 3:11 PM, Jason Dillon wrote: I'm wondering what (if any) is the camel way to cope w/and handle exceptions which are internal to and endpoint (not for those which occur while processing exchanges with an endpoint).

RE: Garbage collection Execuation ...

2011-12-13 Thread Omar Atia
Attached Graph for Old Gen behavior . [cid:image001.png@01CCB9D3.EFAC3460] -Original Message- From: deckerego [mailto:decker...@gmail.com] Sent: Monday, December 12, 2011 6:10 PM To: users@camel.apache.org Subject: Re: Garbage collection Execuation ... If you're seeing objects

running processors in different classloaders

2011-12-13 Thread Mark Webb
Does Camel support the ability to have processors run in separate classloaders? I have a system that will support 3rd party plug-ins (processors). This makes me want to separate the processors into their own classloaders, similar to what Tomcat does with contexts. Thanks, Mark

Re: Camel Quartz consumer doesn't allow underscores?

2011-12-13 Thread jsnyder
Thank you very much Claus. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Quartz-consumer-doesn-t-allow-underscores-tp5063734p5072569.html Sent from the Camel - Users mailing list archive at Nabble.com.

Temporary Queues with request/reply and ActiveMQ failover

2011-12-13 Thread Mike Pilone
I've been working through a problem regarding temporary queues, ActiveMQ failover, and Apache Camel. The scenario is: 1. Two brokers started in a network of brokers 2. Camel producers and consumers connect to a random broker creating temporary reply queues 3. I take one broker offline (clean

Dynamic routing and bridgeEndpoint

2011-12-13 Thread xverges
Hello all. I've tried to create an http proxy/router using dynamic routing. The simplest attempt was from(jetty:http://0.0.0.0:8080/dynamic/?matchOnUriPrefix=true;) .dynamicRouter(constant(http://www.google.com/?q=camelbridgeEndpoint=truethrowExceptionOnFailure=false;)); It doesn't work,

Re: Basic JMS to bean In/Out Router Question

2011-12-13 Thread mattmadhavan
Hi Claus, I still cannot get the this simple scenario working - Shame on me! Any assistance will be appreciated. I have the following route in the configure (@override) method of my test class. /from(jms:validate?*replyTo=validateResul*t).bean(ValidatorBean.class).to(jms:validateResult);/ Is

Re: Basic JMS to bean In/Out Router Question

2011-12-13 Thread mattmadhavan
Hello, Sorry about my ramblings above! I figured this out (Man was so simple!) This thread helped me! http://camel.465427.n5.nabble.com/Request-Reply-using-a-predefined-reply-queue-td470371.html /This is my Route:/ *

JMS Queue to Bean To JMSQueue - Turn around time

2011-12-13 Thread mattmadhavan
Hello, *This is my Route:* from(jms:validate?replyTo=validateResult).bean(ValidatorBean.class); *Sending a message as follows:* template.sendBody(jms:validate, My Text Message); *Receiving the replied message as follows:* Endpoint endpoint =

Re: Dynamic routing and bridgeEndpoint

2011-12-13 Thread Craig Taylor
At first glance, I'd suspect that the default google.com page has some relative resources that it's trying to load and is re-obtaining the page, the browser finds relative resources on the page to load (css, javascript, images etc) and re-rendering them... Try a wget / curl on it and see the

Re: Dynamic routing and bridgeEndpoint

2011-12-13 Thread xverges
I'd suspect that the default google.com page has some relative resources that it's trying to load I've just tried with from(jetty:http://0.0.0.0:8080/dynamic/?matchOnUriPrefix=true;) .dynamicRouter(constant(http://0.0.0.0:8000/?bridgeEndpoint=truethrowExceptionOnFailure=false;)); where

how to extend the component?

2011-12-13 Thread xiangqiuzhao
i wan't to use camel-jms component,but my application must implements some strategies to hander the big message, like how to merge some small message to a whole message. so i want to extend the camel-jms, if i create a new camel-myjms component and the MyProducer extend JmsProducer, MyConsumer

Re: how to configure jms URI to support send or receive message on remote ibm mq queue

2011-12-13 Thread Willem Jiang
You can find the information in the JmsComponent. If you want implement some thing by your own , you'd better to go through the code. On Wed Dec 14 11:27:51 2011, xiangqiuzhao wrote: bean id=jms class=org.apache.camel.component.jms.JmsComponent property name=connectionFactory bean

Re: how to configure jms URI to support send or receive message on remote ibm mq queue

2011-12-13 Thread Claus Ibsen
On Wed, Dec 14, 2011 at 4:27 AM, xiangqiuzhao xiangqiuz...@gmail.com wrote: bean id=jms class=org.apache.camel.component.jms.JmsComponent   property name=connectionFactory    bean class=com.ibm.mq.jms.MQConnectionFactory     property name=queueManager value=TestQueueCtrl /     property

Re: Dynamic routing and bridgeEndpoint

2011-12-13 Thread Claus Ibsen
Hi Why are you using the dynamic router EIP? Just use from to Or from recipientList Read the documentation about the Dynamic Router EIP, as what you do end up in a endless loop, as the dynamic router will re-evaluate the expression until it returns null. On Tue, Dec 13, 2011 at 10:03 PM,

Re: how to extend the component?

2011-12-13 Thread Claus Ibsen
On Wed, Dec 14, 2011 at 4:39 AM, xiangqiuzhao xiangqiuz...@gmail.com wrote: i wan't to use camel-jms component,but my application must implements some strategies to hander the big message, like how to merge some small message to a whole message. so i want to extend the camel-jms, if i create

Re: Endpoint internal exceptions and how to handle

2011-12-13 Thread Willem Jiang
I'm afraid you have to catch the exception in your consumer. Then you may notify the out side manager which can restart the route for you. I don't think current camel error handler can deal with this kind situation. On Wed Dec 14 02:11:55 2011, Jason Dillon wrote: Is there a better place

Re: how to extend the component?

2011-12-13 Thread xiangqiuzhao
how to implement the synchronized communicate by camel-jms ? i need to extend JmsProducer and override the process method? -- View this message in context: http://camel.465427.n5.nabble.com/how-to-extend-the-component-tp5073447p5073527.html Sent from the Camel - Users mailing list archive at

Re: Dynamic routing and bridgeEndpoint

2011-12-13 Thread xverges
Thanks! recipientList was what I was looking for, but since my list had only one member I didn't bother to check... My apologies: the obvious control loop in the dynamic router diagram wasn't enough to make me read the red box warning about an endless loop, or the comments in the sample beans

Re: how to configure jms URI to support send or receive message on remote ibm mq queue

2011-12-13 Thread xiangqiuzhao
i means why the remote mq server address or port is not part of the camel-jms uri or some properties. like jms://localhost:1414:queueName=Q1qmgrName=QM1... -- View this message in context:

can camel-jms support the ibm mq MQMD.ApplIdentityData?

2011-12-13 Thread xiangqiuzhao
and when i received the message's ApplIdentityData is HEAD, i need to receive others message. so how to send/receive message more than one in camel-jms producer/consumer. -- View this message in context: