Re: Does Camel supports dynamic routing by getting the routing info from database

2012-03-05 Thread johnson0233
Thanks Guys, now i am getting the idea of dynamic routing, and my new question here is, if i have a central routing manager which can route the message based on rules stores in database, and how could this "routing manager" work with these communication adapters such as ftp, http? As far as i know,

Re: help with websphere MQ with XA transaction. Sample code below.

2012-03-05 Thread David Karlsen
You will need a transaction manager: http://en.wikipedia.org/wiki/Java_Transaction_API#JTA_implementation_of_the_X.2FOpen_XA_architecture for coordinating the transactions between the XAResources. Atomikos is one such transactionmanager - jotm another one. Atomikos has a configuration guide here:

Re: Do Apache Camel needs a SAP integration?

2012-03-05 Thread Björn Bength
Hi I forgot to open a JIRA for this. But what do you mean? No, we can't add the dependencies to a repo, but we can refer to a doc that describes what to do to add it to one's local repo. Maybe we can't include the component into camel-extra and have people build the entire stack of camel-extra com

Re: Do Apache Camel needs a SAP integration?

2012-03-05 Thread Romain Manni-Bucau
Hi, can't it be added to the google project creating a repo in the source repository? - Romain 2012/3/5 Christian Müller > I think the problem is to add the dependency "org.sap/sap-jco/x.y.z" to an > ASF maven repository. Without it, we cannot build this component. Because > of this, I see no

Re: Do Apache Camel needs a SAP integration?

2012-03-05 Thread Christian Müller
I think the problem is to add the dependency "org.sap/sap-jco/x.y.z" to an ASF maven repository. Without it, we cannot build this component. Because of this, I see no way to host this component at camel-extra. :-( Best, Christian On Fri, Jan 20, 2012 at 7:22 PM, Christian Müller < christian.muel.

Camel Properties Component Cache

2012-03-05 Thread ychawla
Hello All, The Camel Properties component is very cool, however there are a few enhancements which would make it even better. First off the 'Cache' property is very nice. If Cache is set to false, then you can change your properties file and Camel will pick up the changes. The default on this i

RE: CXF endpoint's address dynamically modified?

2012-03-05 Thread ychawla
Hello All, I think this would be a great feature to have available with a cxf bean URI configuration. Consider the use case where Camel is acting as an intermediary broker/facade for other services. The broker and the services it fronts all share the same WSDL and service definition. The only di

Re: Does Camel supports dynamic routing by getting the routing info from database

2012-03-05 Thread Christian Müller
Year, I would also recommend using the dynamic recipient list. You have multiple options to implement your logic to query the database and provide the result (bean, processor, expression, method call, ...) Best, Christian On Mon, Mar 5, 2012 at 5:31 PM, ychawla wrote: > The other way you can do

RESTful service proxy ..

2012-03-05 Thread dvsridhar
I have an use case to support where the camel route has to act as a proxy to a restful service implementation. Camel route (interface based resource implementation) will conduct common auth, authorization, other common task and then call the REST full implementation. Using the BookStore example

Re: help with websphere MQ with XA transaction. Sample code below.

2012-03-05 Thread dmhatre
Thank you Claus and Babak for the reply. I am running this as a standalone application (not in java ee server). And I need to implement global transaction using JTA Do I need to use JOTM or Atomikos etc. Also I am using Java DSL instead of spring and all the explanation in the book is using sprin

Re: null pointer exception

2012-03-05 Thread dvsridhar
Thank you very much for the response Babak. Your suggestion seems to be working. However, Camel 2.9.0 doesn't give that jaxb impl jar, so I had to manually download and use that Jar. Thanks, Sridhar -- View this message in context: http://camel.465427.n5.nabble.com/null-pointer-exception-tp55378

SQL Component parameter order?

2012-03-05 Thread dunnlow
I have an application that stores a POJO to a database. I read the attribute values from a variety of sources (JMS and XML File). I have been using a bean processor to construct the insert statement which I pass to my jdbc endpoint. This has been working, but now I need to insert more complex (H

Re: Does Camel supports dynamic routing by getting the routing info from database

2012-03-05 Thread ychawla
The other way you can do this is by using the Recipient List pattern: http://camel.apache.org/recipient-list.html You can query your database, have a bean where you setup a recipient list Header, and then call the recipient list. -- View this message in context: http://camel.465427.n5.nabble.co

Re: null pointer exception

2012-03-05 Thread Babak Vahdat
Hi this a JAXB bug [1] being already addressed and resolved. [1] http://java.net/jira/browse/JAXB-860 Babak -- View this message in context: http://camel.465427.n5.nabble.com/null-pointer-exception-tp5537826p5537953.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Mixed Messages and Resequencer

2012-03-05 Thread Hervé BARRAULT
Hi, I think using camel like this : Define a standard route (which uses a "dynamic" content based router). from("cxf:myEndpoint").process(myProcessor).to(header("target").toString()); header("target").toString() => seda:<> And a template which i should instantiate for each new <> such as from(

null pointer exception

2012-03-05 Thread dvsridhar
Hello, Quite regularly I get the following exception. It is very random. When i get this exception some times the restart works. Some times it doesn't, it is very frustrating. This trace doesn't give me any information. Is there any way I can enable something to spit more information on this error

Re: Camel crashes upon ActiveMQ shutdown

2012-03-05 Thread ShlomiJ
Tomcat A servlet, which is set to be initialized on startup using Tomcat's 1 in web.xml, initiates a singleton. That singleton holds a CamelContext member. This context is initialized exactly as described in my previous post, except for the try/catch (this is simply because that the method in the

Re: Does Camel supports dynamic routing by getting the routing info from database

2012-03-05 Thread Achim Nierbeck
Hi, so you have a specialized route in your database you could start with a jpa endpoint polling on this route, after you retrieved your "customized" route via jpa you need a bean that acts as a RouteBuilder where you interpret your "customized" route and start this route. This roue builder Either

Does Camel supports dynamic routing by getting the routing info from database

2012-03-05 Thread johnson0233
Hi All, Could anyone help to advise that the way Camel route the message by getting the corresponding routing information from database? Lets say, we have 3 steps to execute, and the execution sequence stores in database, step1,step2,step3, so can we use the generic bundle to route this kinds of

Re: Camel crashes upon ActiveMQ shutdown

2012-03-05 Thread Claus Ibsen
Hi Can you tell a bit more about the difference in Tomcat, that works, and the other that does not work. I assume you deploy a WAR to Tomcat, and have a spring servlet/listener to pickup and start the app, from the spring XML file. And then there is some difference in how you boot up Camel? Or ho

Re: Testing a transacted route with CamelTestSupport

2012-03-05 Thread Mikeycmccarthy
Thanks Christian, that's really useful. Is it possible to do this at all without naming the transactional policy (it's named as required in the test you linked to)? I'm on 2.9.0 of Camel and it's nice that I can accept the defaults of not needing to explicitly name my transaction policy. Thanks!

Re: Camel routing to address specific users with ActiveMQ/stomp over websockets.

2012-03-05 Thread Otho
Thank your two very much for the helpful tips and links. Regards, Otho Am 1. März 2012 15:11 schrieb Claus Ibsen : > On Wed, Feb 29, 2012 at 7:32 PM, Otho wrote: > > Hey all, > > > > I have the following use-case: > > > > Users connect to activemq via stomp over websockets and register with a >