Re: camel-mail - need to force a close/reconnect

2011-07-11 Thread Claus Ibsen
On Mon, Jul 11, 2011 at 7:40 PM, Donald Whytock wrote: > I don't know if the POP3 and SMTP connections actually have anything > to do with each other, but if the connection locking up is an issue > I'd be inclined to check your flag and force a close after any place > you had to force an open. >

Re: Problems with jetty component and posts with more then one value for a field.

2011-07-11 Thread Claus Ibsen
On Tue, Jul 12, 2011 at 7:33 AM, Taariq Levack wrote: > Hi > > I just tried it on 2.7.2 and you will see this kind of log. > > [                          main] SpringCamelContext             TRACE > Getting endpoint with uri: > jetty:http://0.0.0.0:8080/Message?say=hello&to=bob&to=bill > [        

Re: Problems with jetty component and posts with more then one value for a field.

2011-07-11 Thread Taariq Levack
Hi I just tried it on 2.7.2 and you will see this kind of log. [ main] SpringCamelContext TRACE Getting endpoint with uri: jetty:http://0.0.0.0:8080/Message?say=hello&to=bob&to=bill [ main] SpringCamelContext TRACE Getting

Re: slow reply for jms component when url contains replyTo

2011-07-11 Thread Claus Ibsen
On Mon, Jul 11, 2011 at 10:12 PM, Jim Newsham wrote: > > Hi Claus, > > Thanks for opening the jira issue, and for your comments.  To answer your > questions: > > 1.  We use fixed reply-to queues which are exclusive to Camel. > 2.  We need a fixed reply-to queue to avoid losing reply messages in ca

Re: Problems with jetty component and posts with more then one value for a field.

2011-07-11 Thread Claus Ibsen
Hi What version of Camel are you using? On Tue, Jul 12, 2011 at 12:44 AM, Blair wrote: > I am wondering if i am doing this wrong, or if there is a work around? > > Fields posted (or getted) from a form are placed as headers, which is a > wonderful beautiful thing. > however... > > a url of the

Problems with jetty component and posts with more then one value for a field.

2011-07-11 Thread Blair
I am wondering if i am doing this wrong, or if there is a work around? Fields posted (or getted) from a form are placed as headers, which is a wonderful beautiful thing. however... a url of the form http://localhost:8080/Message?say=hello&to=bob&to=bill causes issues. The POST and PUT equivalen

Re: Embedded web console

2011-07-11 Thread boday
hmmm...anyone try to package camel-web within an existing app (lately)? I tried adding the dependency (below) in my web app and deployed to Tomcat...but, I can't seem to get to the console (tried http://localhost:8080/ and http://localhost:8080/, etc). What is the URL/context to hit? Any other i

Re: slow reply for jms component when url contains replyTo

2011-07-11 Thread Jim Newsham
Hi Claus, Thanks for opening the jira issue, and for your comments. To answer your questions: 1. We use fixed reply-to queues which are exclusive to Camel. 2. We need a fixed reply-to queue to avoid losing reply messages in case of disconnection (which would happen with temporary queues b

Re: slow reply for jms component when url contains replyTo

2011-07-11 Thread Christian Müller
Hello Claus, hello Jim! We also using fixed persistent reply to queue which are *exclusive* to Camel. We have to do this, because we must not loose messages which is potentially the case for temp queues, as I understood. Best, Christian On Sat, Jul 9, 2011 at 5:52 PM, Claus Ibsen wrote: > Hi J

Re: camel-guice

2011-07-11 Thread Tim
Thank you Williem! It should be worth mentioning that this fix could be as simple as creating a non-internals depending release of guiceyfruit. That would allow people to use it in current versions of camel with no other changes as well as later versions of camel to use. On Mon, Jul 11, 2011 at 3

Re: camel-mail - need to force a close/reconnect

2011-07-11 Thread Donald Whytock
I don't know if the POP3 and SMTP connections actually have anything to do with each other, but if the connection locking up is an issue I'd be inclined to check your flag and force a close after any place you had to force an open. This may be something similar to what I see in my custom XMPP driv

Re: camel-mail - need to force a close/reconnect

2011-07-11 Thread Dan Checkoway
Ah, good point! I can't really see anybody wanting to recycle the connection in between messages. I think "single" essentially could mean what you originally posted about "close.after.poll=true", in that all messages picked up during that polling iteration would be processed, and delete flags wou

Re: Simple example

2011-07-11 Thread Claus Ibsen
On Mon, Jul 11, 2011 at 12:02 PM, James Green wrote: > Incidentally the example in camel.xml: > >         >             >             >         > > Does appear to work although I had to manually create the example.B queue > first. > > The factory here must be wrong - there's nothing showing in Wir

Re: camel-mail - need to force a close/reconnect

2011-07-11 Thread Donald Whytock
Maybe not every exchange for "single", since camel-mail will pick up all messages available at a poll. Like, if in your five seconds three messages come in, camel-mail currently would pick up all three. Or would you want that to be an option too...closing and re-opening the folder for each messag

Re: camel-mail - need to force a close/reconnect

2011-07-11 Thread Dan Checkoway
Thanks Claus. I think part of the problem is that the connection *is* open...i.e. the server doesn't disconnect you, it just starts returning errors. I think the "disconnect after poll" option would be a valuable addition, but for those of us who poll very frequently (i.e. my 5-sec poll period) m

Re: camel-mail - need to force a close/reconnect

2011-07-11 Thread Donald Whytock
Seconded. Forced disconnects/reconnects might clear up a lockup problem I've been having from time to time with my ISP's POP3 server, and I'm polling every 15 seconds. close.after.poll=true? Don On Mon, Jul 11, 2011 at 9:59 AM, Claus Ibsen wrote: > Hi > > I think we got logic in place which as

Re: java.lang.IndexOutOfBoundsException in cxf producer

2011-07-11 Thread glawi
Thanks for the answer, but I got this illumination this night :) I missed the Holders. Ok, everything works now. Thanks again. -- View this message in context: http://camel.465427.n5.nabble.com/java-lang-IndexOutOfBoundsException-in-cxf-producer-tp468541p4575140.html Sent from the Camel - Users

Re: camel-mail - need to force a close/reconnect

2011-07-11 Thread Claus Ibsen
Hi I think we got logic in place which asks if the connection/mailbox is opened before polling. But maybe we can improve the logic there? We may also consider adding a disconnect option, so you can explicit configure it to disconnect after the poll. So if you only poll the mailbox every 5th minut

Re: How to use JMS TextMessage Properties?

2011-07-11 Thread Claus Ibsen
On Mon, Jul 11, 2011 at 3:05 PM, dunnlow wrote: > Claus, > Thanks for the reply (your book has been a HUGE help btw). > > Sorry, I am still missing something.  I understand your comment about the > stream component, which clears up one question.  However, I tried passing > the message to a bean, a

Re: How to use JMS TextMessage Properties?

2011-07-11 Thread dunnlow
Claus, Doh, I just reread your reply, and set the method declaration in my bean to be: public String toSql(org.apache.camel.Message obj) { } which, (surprise surprise) gives me just what i need. Thanks again! -- View this message in context: http://camel.465427.n5.nabble.com/How-to-use-JMS-

Re: Scheduled Polling Consumer on FTP endpoint

2011-07-11 Thread mitko . kolev
Hi leNerd, I solved this by adding a pollStrategy to the file: from("file:target/input/?pollStrategy=#pollStrategy&delay=1") from("quartz:yourSchedule") .bean("pollStrategy") public class FilePollStrategy implements PollingConsumerPollStrategy { @Override public boolean begin(Con

Re: How to use JMS TextMessage Properties?

2011-07-11 Thread dunnlow
Claus, Thanks for the reply (your book has been a HUGE help btw). Sorry, I am still missing something. I understand your comment about the stream component, which clears up one question. However, I tried passing the message to a bean, as: ("activemq:queue:myholdingqueue?testConnectionOnStartup=

Re: Scheduled Polling Consumer on FTP endpoint

2011-07-11 Thread Claus Ibsen
On Mon, Jul 11, 2011 at 10:58 AM, lunchbox wrote: > Hi all, > > I'm having the exact same problem as leNerd explains in the OP, except I'm > enriching from a JMS queue instead of a FTP server. Basically, I want ALL > the queued messages instead of just one. > You can use a java bean / Camel Proce

Re: tcp proxy route

2011-07-11 Thread Claus Ibsen
Hi You can check this guide how to deploy to ServiceMix http://fusesource.com/docs/esb/4.4/esb_deploy_osgi/index.html On Sun, Jul 10, 2011 at 12:52 PM, Doraemon wrote: > Now I must deploy this TCP proxy(camel-example-tcpipproxy) into servicemix, > as the picture shows below. > > Could you tell m

Re: Broker shutdown also shuts Camel application down

2011-07-11 Thread Claus Ibsen
On Mon, Jul 11, 2011 at 2:40 PM, Sander Mak wrote: > On Mon, Jul 11, 2011 at 2:28 PM, Claus Ibsen wrote: >> How do you shutdown the AMQ broker? > > I ctrl-c in the broker console. > >> And why do you want to shutdown the broker, but keep on running Camel? > > Just to make it clear: the Camel app

Re: Broker shutdown also shuts Camel application down

2011-07-11 Thread Sander Mak
On Mon, Jul 11, 2011 at 2:28 PM, Claus Ibsen wrote: > How do you shutdown the AMQ broker? I ctrl-c in the broker console. > And why do you want to shutdown the broker, but keep on running Camel? Just to make it clear: the Camel app is running standalone here, not inside the broker. The camel r

Re: How to use JMS TextMessage Properties?

2011-07-11 Thread Claus Ibsen
Hi JMS properties get mapped to Camel headers. There is some details here http://camel.apache.org/jms The stream component will only output the message body. If you use the log component then you can instruct it to output all kind of sorts http://camel.apache.org/log .to("log:foo?showHeaders=tr

Re: Broker shutdown also shuts Camel application down

2011-07-11 Thread Claus Ibsen
On Mon, Jul 11, 2011 at 10:51 AM, Sander Mak wrote: > Not really during startup, since the app keeps running fine as longs > as the ActiveMQ broker is running. Only when I purposely kill the > broker, the Camel app goes down with it. It almost seems like a > System.exit(0) is happening somewhere i

How to use JMS TextMessage Properties?

2011-07-11 Thread dunnlow
This seems like it should be easy, but I cannot figure out how to obtain the properties from a JMS TextMessage. I can obtain the body of the message with ConvertBodyTo() but I also need the properties. I'm using an ActiveMQ (v5.5) TestMessage and setting the properties in a different java app lik

Re: Camel metamodel

2011-07-11 Thread unmarshall
Hi Claus, I understand that the java beans is the current metamodel. Creating meta model any other way is not that difficult. For instance i have created a custom component for which i did declare a schema and that is also backed by a bean as well. So if any tool would want to use my custom compon

Re: Camel metamodel

2011-07-11 Thread Claus Ibsen
On Mon, Jul 11, 2011 at 11:16 AM, unmarshall wrote: > Hi Claus, > > I have already seen the model package in camel-core. I still do not see any > metamodel for components. Endpoint configurations are based on URI > configurations which can very easily change from one release to another and > prett

Re: Simple example

2011-07-11 Thread James Green
Incidentally the example in camel.xml: Does appear to work although I had to manually create the example.B queue first. The factory here must be wrong - there's nothing showing in Wireshark at all. Just can't see what! On 11 July 2011 10:42, James Gre

Re: Simple example

2011-07-11 Thread James Green
I changed the factory line to the following: ConnectionFactory connectionFactory = new ActiveMQConnectionFactory( "tcp://10.0.0.81:61616?broker.persistent=false"); In activemq.xml: Our subnet is 10.0.0.0/24. I am .84, the test box is .81. When I telnet to it from my Ne

Re: Camel metamodel

2011-07-11 Thread unmarshall
Hi Claus, I have already seen the model package in camel-core. I still do not see any metamodel for components. Endpoint configurations are based on URI configurations which can very easily change from one release to another and pretty hard to track. IMO Camel still lacks the definition of metamo

Re: java.lang.IndexOutOfBoundsException in cxf producer

2011-07-11 Thread Willem Jiang
On 7/8/11 11:15 PM, glawi wrote: Hi all, I got the same issue whith Camel 2.7.2. The FrostByteTransformer.applyTreatmentOnInputData code : final Incident incident = (Incident) inputData.getIn().getBody(Map.class).get(DataMapFields.INCIDENT); final Execute request = new Exec

Re: Scheduled Polling Consumer on FTP endpoint

2011-07-11 Thread lunchbox
Hi all, I'm having the exact same problem as leNerd explains in the OP, except I'm enriching from a JMS queue instead of a FTP server. Basically, I want ALL the queued messages instead of just one. What's the situation and the recommended solution with Camel now? If we go with Willem's idea of s

Re: Camel metamodel

2011-07-11 Thread unmarshall
Hi Charles, The metamodel that you are pointing at only contains the element definitions for a camel context. The endpoints which are specified via a URI and the parameters that can be set on a particular endpoint do not have any meta model. The properties that can be set on an endpoint are essen

Re: Camel metamodel

2011-07-11 Thread Claus Ibsen
On Mon, Jul 11, 2011 at 10:21 AM, unmarshall wrote: > Hi All, > > Is there any effort being put in developing a camel metamodel which can then > be used to create camel routes during design time using a graphical editor? > There is already a metamodel, its in the model package of camel-core (eg a

Re: Broker shutdown also shuts Camel application down

2011-07-11 Thread Sander Mak
Not really during startup, since the app keeps running fine as longs as the ActiveMQ broker is running. Only when I purposely kill the broker, the Camel app goes down with it. It almost seems like a System.exit(0) is happening somewhere in the ActiveMQ code which handles the loss of connection. Alt

Re: Simple example

2011-07-11 Thread Charles Moulliard
Hi, Can you show us the configuration that you use to connect to activemq broker ? Maybe you connect to a local in memory instance using VM Transport protocol created when Camel starts and removed during the shutdown process. This is perhaps why you don't see anything in your ActiveMQ broker's que

Re: Camel metamodel

2011-07-11 Thread Charles Moulliard
Hi Mahdav, What you call the metamodel is the Camel Schema that you can read it or import it in Eclipse/IntelliJ IDE tools --> http://camel.apache.org/schema/spring/camel-spring.xsd. This document represents the DSL language, words to be used, their values and grammar rules. Regards, Charles Mou

Simple example

2011-07-11 Thread James Green
Hi, Is it expected that a Netbeans Java (Maven) app can copy/paste the simple example source code and run when configured to connect against an existing ActiveMQ instance? I must be doing something blindingly stupid, as it fails without any exception for me! I am connecting against my developmen

Re: camel-guice

2011-07-11 Thread Willem Jiang
Hi, I just created a JIRA[1] to trace this issue. [1]https://issues.apache.org/jira/browse/CAMEL-4209 On 7/9/11 12:42 AM, Tim wrote: camel guice is using guice 2.0 Which wouldn't be so bad except that it uses things from the guice internal packages. This makes it impossible to use it alongside

Re: Broker shutdown also shuts Camel application down

2011-07-11 Thread Claus Ibsen
On Mon, Jul 11, 2011 at 10:09 AM, Sander Mak wrote: > Hi Claus, > > Thanks for chiming in. I followed your advice and used Main: > http://pastie.org/2195549 > > Unfortunately the same thing happens: the JVM shutsdown once I > shutdown ActiveMQ. The interesting bit is that the Hangup code > (shutdo

Camel metamodel

2011-07-11 Thread unmarshall
Hi All, Is there any effort being put in developing a camel metamodel which can then be used to create camel routes during design time using a graphical editor? I have seen the graphical editor from fuse source, but it is not based on any meta-model. In fact it is not even a generator and it stil

Re: Broker shutdown also shuts Camel application down

2011-07-11 Thread Sander Mak
Hi Claus, Thanks for chiming in. I followed your advice and used Main: http://pastie.org/2195549 Unfortunately the same thing happens: the JVM shutsdown once I shutdown ActiveMQ. The interesting bit is that the Hangup code (shutdown hook) is triggered by this scenario: 09:58:08,657 [ INFO] MainS