Re: request reply with sql query

2009-10-21 Thread linuca
Hi, I tested the resquest/replay example from ActiveMQ (without using Camel) and it worked fine, so I don't think there is something wrong with the connection. So I assume there is something wrong with my Camel code? Can anyone tell me what I'm doing wrong? Thanks. -- View this message in con

Re: request reply with sql query

2009-10-20 Thread linuca
Hi, thanks for the hint. This is what I get in the activemq log. Is this because the queue expired before it got the message? Sending: WireFormatInfo { version=3, properties={TightEncodingEnabled=true, CacheSize=1024, TcpNoDelayEnabled=true, SizePrefixDisabled=false, StackTraceEnabled=true, Ma

Re: request reply with sql query

2009-10-20 Thread linuca
Hi, I run into another problem. If I run the standalone app of activemq in another host in my network, it just does no receive the messages. 1. I changed "localhost" to the real ip addres. ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory("tcp://192.168.0.1:61616"); 2

Re: copy database records and insert them in another database

2009-10-19 Thread linuca
Hi, I read about iBatis and tested some examples. But I think it is too complex for what I try to achieve. Now I just send an SQL query as a message from a Master class to a Slave class (in a different host). The latter executes it and stores the records in a List, and then sends the List back w

Re: request reply with sql query

2009-10-19 Thread linuca
ing. Any ideas? Claus Ibsen-2 wrote: > > On Mon, Oct 19, 2009 at 4:56 PM, linuca wrote: >> >> Thanks Claus, >> >> It works like charm. >> >> For now, I just send one message. >> >> I find weird that every second I get this message in t

Re: request reply with sql query

2009-10-19 Thread linuca
Thanks Claus, It works like charm. For now, I just send one message. I find weird that every second I get this message in the log: DEBUG org.springframework.jms.listener.DefaultMessageListenerContainer - Consumer [ActiveMQMessageConsume r { value=ID:mendoza04-43584-1255964003207-0:0:1:1, star

request reply with sql query

2009-10-19 Thread linuca
Hi, This is my first attempt at coding a request reply pattern with Camel (please be gentle :blush:). This is what I want to do: I have a Master and a Slave class. The Master class sends an sql query to the Slave class. The latter executes the query, fills the result in a List and then returns th

Re: JmsComponent uses spring's deprecated class

2009-10-16 Thread linuca
ht now I'm trying to perform a select query on the database, and then send the result to a consumer to insert the records (with iBatis). Once I get a working example, I'll post it here with the full code! Cheers and thanks again, Linuca. -- View this message in context: http://www.nab

Re: JmsComponent uses spring's deprecated class

2009-10-15 Thread linuca
Claus Ibsen-2 wrote: > > >> A manual is here >> http://camel.apache.org/manual.html > > I have already read this manual, it is good, but not good enough for me. > >> Also use the google search bar in the front page of the camel website. > > I've already tried this. There are examples, but I

Re: JmsComponent uses spring's deprecated class

2009-10-15 Thread linuca
I just switched to Spring 2.5.6, and it's working fine. Please, I want a decent manual for Camel! It's such a good thing that we have a forum al least. Thanks. -- View this message in context: http://www.nabble.com/JmsComponent-uses-spring%27s-deprecated-class-tp25897204p25907601.html Sent fro

JmsComponent uses spring's deprecated class

2009-10-14 Thread linuca
Hi Everybody! I'm trying a Camel example code and I get an error in the following line: context.addComponent("activemq", ActiveMQComponent.jmsComponentAutoAcknowledge(connectionFactory)); The error is: java.lang.NoClassDefFoundError: org/springframework/jms/listener/serversession/ServerSess

Re: copy database records and insert them in another database

2009-10-14 Thread linuca
t; the result set to an activemq queue... > > Also, did you read the getting started guide - > http://camel.apache.org/getting-started.html > > On Wed, Oct 14, 2009 at 9:09 AM, linuca wrote: > >> >> Hi Everybody! >> >> Evey 15 min, I need to copy al

copy database records and insert them in another database

2009-10-14 Thread linuca
Hi Everybody! Evey 15 min, I need to copy all the the created records in a database table, send them through ActiveMQ to another system, and then insert them in another database table. I asked in the ActiveMQ forum, and they suggested I used Camel to achieve this. I've read the documentation, an