Re: Conceptual 'correctness' of using Camel Unit Tests

2011-05-05 Thread Claus Ibsen
On Thu, May 5, 2011 at 6:37 PM, Hadrian Zbarcea wrote: > Improving testing is a long time pet peeve of mine. I experimented with both > junit parallel tests (works awesome) and with maven 3 multithreaded builds > (using -T). Combining both on a box with one quad core i7 and 16G ram gave me > an

Re: Conceptual 'correctness' of using Camel Unit Tests

2011-05-05 Thread Claus Ibsen
On Thu, May 5, 2011 at 10:07 PM, Gert Villemos wrote: > From the comments I conclude that we should apply both 'normal' unit tests > and Camel unit tests (= integration tests). There is no special Camel "correctness" about this. Its best practice for any project. To do both unit test and integrat

Re: Camel 2.3 throws exception on runtime

2011-05-05 Thread Bingliu
Thank you -- View this message in context: http://camel.465427.n5.nabble.com/Camel-2-3-throws-exception-on-runtime-tp4372198p4374901.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: POP3 mail deletion

2011-05-05 Thread Hadrian Zbarcea
Hi Donald, Looks like this requires some work in the mail component. I created an issue for this: https://issues.apache.org/jira/browse/CAMEL-3948 I tentatively scheduled it for 2.8.0. There is a good number of issues fixed in 2.8.0 though and I suspect we're gonna start closing down for a rele

Re: POP3 mail deletion

2011-05-05 Thread Donald Whytock
I think I've isolated the problem. Someone better-versed in Camel guts please advise? I tested with a standalone program using the JavaMail library, and found that if you close a POP3 folder and open it again the DELETED flag doesn't work. I think this is because messages are identified by relat

Re: Conceptual 'correctness' of using Camel Unit Tests

2011-05-05 Thread Hadrian Zbarcea
Yes, that is correct. Hadrian On May 5, 2011, at 4:07 PM, Gert Villemos wrote: > From the comments I conclude that we should apply both 'normal' unit tests > and Camel unit tests (= integration tests). > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Conceptual-correct

Re: Conceptual 'correctness' of using Camel Unit Tests

2011-05-05 Thread Gert Villemos
>From the comments I conclude that we should apply both 'normal' unit tests and Camel unit tests (= integration tests). -- View this message in context: http://camel.465427.n5.nabble.com/Conceptual-correctness-of-using-Camel-Unit-Tests-tp4372286p4374003.html Sent from the Camel - Users mailing li

Re: Problem with Multiple Camel Contexts

2011-05-05 Thread Craig Taylor
After creating an additional camelContext and injecting it I'm now seeing that it's really only validating the component endpoints are found and not actually parsing the parameter values. Eg: xftp://... does properly generate an exception but : ftp:user@host/&shouldHaveBeenQuestion does not chec

Re: Conceptual 'correctness' of using Camel Unit Tests

2011-05-05 Thread Hadrian Zbarcea
Improving testing is a long time pet peeve of mine. I experimented with both junit parallel tests (works awesome) and with maven 3 multithreaded builds (using -T). Combining both on a box with one quad core i7 and 16G ram gave me an under 25 min full build and test (except assembly), but with qu

Re: Problem with Multiple Camel Contexts

2011-05-05 Thread Claus Ibsen
You need to use an OSGi aware CamelContext implementation. If you use OSGi blueprint then use the one from camel-blueprint. If you use Spring DM then use the one from camel-spring (there should be some impl. in the JAR in some osgi package). On Thu, May 5, 2011 at 6:15 PM, Craig Taylor wrote: >

Problem with Multiple Camel Contexts

2011-05-05 Thread Craig Taylor
I'm attempting to use a working OSGI Camel Context for normal processing and a DefaultCamelContext to validate syntax parsing of user-entered (manually and through wizard like interfaces). I'm using the noAutoStart on the routes to avoid picking up files and other possible ill-effects of testing t

Re: CXF component with WS-Addressing and one way messages

2011-05-05 Thread ychawla
Well, this might not be an issues for the Camel mailing list. I downloaded cxf 2.4.0 and 2.2.12 and ran the WS Addressing samples distributed with them and saw the same behavior. I bumped this message over to the CXF mailing list. Thanks, yogesh -- View this message in context: http://camel.4

Re: Prformance problem with method message.getBody(String.class);

2011-05-05 Thread Claus Ibsen
Hi Yeah unfortunately camel-http forces stream caching and will spool to disk > 64KB payloads So you need to disable that by setting the threshold to 0 http://camel.apache.org/stream-caching.html On Thu, May 5, 2011 at 5:06 PM, Arturas Girenko wrote: > Hi, > Please help with understanding of

Prformance problem with method message.getBody(String.class);

2011-05-05 Thread Arturas Girenko
Hi, Please help with understanding of why the call I have is so slow: String responseBodyString = response.getOut().getBody(String.class); (I'm reading 5MB message from camel-http endpoint) - it takes ~7sec to process. While the same message takes up to 1 second to show up with SoapUI. The var

Re: Conceptual 'correctness' of using Camel Unit Tests

2011-05-05 Thread Christian Schneider
Theoretically yes and I know Hadrian was already experimenting with that but we are quite conservative with that. You can easily have occasional test failures then that take a lot of time to find and fix. Christian Am 05.05.2011 15:26, schrieb David Karlsen: Can they be run in parallel - or

Re: Problem designing a camel route for an OSGi system.

2011-05-05 Thread Donald Whytock
I actually have a static method for SEDA exchange production in a library bundle that uses the camelcontext singleton. Other bundles use it to send messages of the form writemsg(queuename, message_to, message_body); Works surprisingly well. I'd expected the classloader to choke on it. On Thu, M

Re: POP3 mail deletion

2011-05-05 Thread Donald Whytock
I will, yes, but correcting that in my copy didn't seem to fix the problem. I'll do a little more research and testing, try to get it working and submit a patch. On Thu, May 5, 2011 at 9:20 AM, Claus Ibsen wrote: > Hi > > > > http://javamail.kenai.com/nonav/javadocs/com/sun/mail/pop3/package-sum

Re: Conceptual 'correctness' of using Camel Unit Tests

2011-05-05 Thread David Karlsen
Can they be run in parallel - or can modules be run in parallel - that could speed things up. 2011/5/5 Christian Schneider > I think it is only named wrong. The camel test support is written to > support integration > tests not unit tests. > > I think it is a very good idea to write real unit te

Re: POP3 mail deletion

2011-05-05 Thread Claus Ibsen
Hi http://javamail.kenai.com/nonav/javadocs/com/sun/mail/pop3/package-summary.html Seems like we should only set the reset when we do NOT want to delete the mails with POP3. eg so if delete=true, we do not set this option. I think the reset is a bug. Do you mind creating a ticket? On Wed,

Re: POP3 mail deletion

2011-05-05 Thread Claus Ibsen
On Thu, May 5, 2011 at 3:14 PM, Claus Ibsen wrote: > On Wed, May 4, 2011 at 5:29 PM, Donald Whytock wrote: >> A design question regarding the mail component... >> >> When I tried using the mail component with POP3, I had a problem with >> deleting messages.  Depending on the server I was talking

Re: POP3 mail deletion

2011-05-05 Thread Claus Ibsen
On Wed, May 4, 2011 at 5:29 PM, Donald Whytock wrote: > A design question regarding the mail component... > > When I tried using the mail component with POP3, I had a problem with > deleting messages.  Depending on the server I was talking to, I had > either inconsistent and sporadic success, or c

Re: camel gui

2011-05-05 Thread James Strachan
On 5 May 2011 14:06, Romain Manni-Bucau wrote: > yes but only in XML format, no? Its a visual designer/editor - but the output format is currently XML yes. -- James --- FuseSource Email: ja...@fusesource.com Web: http://fusesource.com Twitter: jstrachan, fusenews Blog: http://macstrac.blogs

Re: camel gui

2011-05-05 Thread Romain Manni-Bucau
yes but only in XML format, no? - Romain 2011/5/5 James Strachan : > On 4 May 2011 21:39, Romain Manni-Bucau wrote: >> Hi all, >> >> do you have any informations about a gui for camel or a route diagram >> generator? I know fuse did some work around the eclipse framework but >> will it be integr

Re: camel gui

2011-05-05 Thread James Strachan
On 4 May 2011 21:39, Romain Manni-Bucau wrote: > Hi all, > > do you have any informations about a gui for camel or a route diagram > generator? I know fuse did some work around the eclipse framework but > will it be integrated into the community version? FWIW the community edition of Fuse IDE let

Is there any way to use camel-crypto for S/MIME handling?

2011-05-05 Thread Sorin Silaghi
Hi, As the subject says, can I decrypt S/MIME messages using camel-crypto? If so how? I'm not looking to handle e-mail so I can't use regular e-mail support. Thank you.

Re: auto-loading Groovy

2011-05-05 Thread Claus Ibsen
Hi You asked about this a while ago. We had another user asking about it so I created a ticket https://issues.apache.org/jira/browse/CAMEL-3940 On Mon, May 2, 2011 at 5:34 PM, Mark Webb wrote: > Is there a mechanism to auto-load, or auto-update a groovy script for > a Camel route at runtime? >

Re: Exception during testing

2011-05-05 Thread Claus Ibsen
On Thu, May 5, 2011 at 11:47 AM, Muhammad Ichsan wrote: > Hi > > Does anyone know why this happens? > > org.apache.camel.RuntimeCamelException: > java.lang.IllegalAccessException: Class > org.apache.camel.component.bean.MethodInfo can not access a member of > class id.web.michsan.xt.route.CommonEn

Re: Camel 2.3 throws exception on runtime

2011-05-05 Thread Claus Ibsen
On Thu, May 5, 2011 at 12:21 PM, Bingliu wrote: > Nothing. I use camel in osgi framework.I use a bundle config camelContext.xml > and publish the camelContext as a osgi service.In other bundle, I get the > camelContext and creating produceTemplate. It is 72. > The JMX clash in OSGi has been fixed

Limitations or bug on FTP2 with FTPS

2011-05-05 Thread Laurentiu Trica
Hello, I'm using an FTPS endpoint to output my route and I have a problem. On one FTPS endpoint I get the following error, from time to time: 13:01:00,770 | WARN | ZZZ-OUT-thread-2 | RemoteFileProducer | 68 - org.apache.camel.camel-core - 2.6.0.fuse-01-09 | Writing file failed with

Re: Intercept send to beanRef endpoint

2011-05-05 Thread Jean-Pierre Bergamin
Ok that sounds reasonable, but... The testBean in the following routes simply appends "foo" to the message and returns it. The following three routes do exactly the same: from("direct:in").to("bean:testBean"); // bean is endpoint from("direct:in").to("testBean"); // bean is endpoint from("dire

Re: Camel 2.3 throws exception on runtime

2011-05-05 Thread Bingliu
Nothing. I use camel in osgi framework.I use a bundle config camelContext.xml and publish the camelContext as a osgi service.In other bundle, I get the camelContext and creating produceTemplate. It is 72. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-2-3-throws-exceptio

Re: Intercept send to beanRef endpoint

2011-05-05 Thread Claus Ibsen
You can use org.apache.camel.spi.InterceptStrategy to implement a customer interceptor. Its a bit low level as you need to implement logic in code (and not as in the DSL as you can do with interceptSendToEndpoint) Its kinda like an AOP around, so you can do some custom logic when a BeanDefinition

Exception during testing

2011-05-05 Thread Muhammad Ichsan
Hi Does anyone know why this happens? org.apache.camel.RuntimeCamelException: java.lang.IllegalAccessException: Class org.apache.camel.component.bean.MethodInfo can not access a member of class id.web.michsan.xt.route.CommonEndpointRouteBuilder$1 with modifiers "public" Thanks -- ~The best men

Re: Intercept send to beanRef endpoint

2011-05-05 Thread Romain Manni-Bucau
sorry i was probably not clear, i meant this kind of interception should be added to camel, it doesn't exist today (i think ;)). - Romain 2011/5/5 Jean-Pierre Bergamin : > Hello Romain > > What exactly do you mean with the interceptProcessor()? I can't find any > reference to such a construct. >

Re: Intercept send to beanRef endpoint

2011-05-05 Thread Jean-Pierre Bergamin
Hello Romain What exactly do you mean with the interceptProcessor()? I can't find any reference to such a construct. Thanks, James Am 05.05.2011 09:48, schrieb Romain Manni-Bucau: Hi, i think it should stay like it (KISS), if you want to intercept you have to use an endpoints otherwise you

Re: Intercept send to beanRef endpoint

2011-05-05 Thread Romain Manni-Bucau
in one case you send your exchange to an endpoint which sends it to a processor. In the other case (beanRef) you send it directly to the processor. - Romain 2011/5/5 Jean-Pierre Bergamin : > Am 05.05.2011 09:34, schrieb Claus Ibsen: >> >> On Thu, May 5, 2011 at 9:19 AM, Jean-Pierre Bergamin >>  w

Re: Intercept send to beanRef endpoint

2011-05-05 Thread Jean-Pierre Bergamin
Am 05.05.2011 09:34, schrieb Claus Ibsen: On Thu, May 5, 2011 at 9:19 AM, Jean-Pierre Bergamin wrote: Hello camel users We are trying to intercept calls from being sent to a bean endpoint in a route that is declared as: from("...").beanRef("myBean", "myMethod") The interception is declared

Re: [RMX:#] How should you use message headers?

2011-05-05 Thread mitko . kolev
Hi Johannes, I would use a special purpose payload object based on approach B, because the name and timestame do not seem to be used by Camel endpoints. If you then need to send the name and the timestamp, for example as HTTP headers, I would use a special purpose route element that sets those

Re: Conceptual 'correctness' of using Camel Unit Tests

2011-05-05 Thread Christian Schneider
I think it is only named wrong. The camel test support is written to support integration tests not unit tests. I think it is a very good idea to write real unit tests and integration tests. The unit tests are extremly fast and give you a first security. Still the integration tests are very imp

How should you use message headers?

2011-05-05 Thread Klug, Johannes
Dear all, We're having some discussions within our team on how to use message header fields. A bit of background: One of our applications decodes binary data, and splits that into usable data. Possible outcomes are int, long, float, double, Boolean, byte[], and possibly others we haven't i

Conceptual 'correctness' of using Camel Unit Tests

2011-05-05 Thread Gert Villemos
Some would argue that a unit test per definition tests the unit completely standalone. Using JUnit this is easy, especially when combined with Spring, i.e. you can isolate your bean and test each method directly. The Camel Junit on the other hand test the unit as part of a camle route. Even if the

Re: Camel 2.3 throws exception on runtime

2011-05-05 Thread Claus Ibsen
Its just a WARNing. Seems like in the JMX Server there is already a MBean with that name. What do you do in RouterGateway:72 ? On Thu, May 5, 2011 at 10:14 AM, Bingliu wrote: > Hi,when i make pressure test, an exception has been thrown. Please look this: > 2011 五月 05 15:32:39 219416 WARN  [Ne

Re: Camel 2.3 throws exception on runtime

2011-05-05 Thread Bingliu
Runtime: JDK 1.6,OSGI framework;OS:Linux;I don't configure the -- View this message in context: http://camel.465427.n5.nabble.com/Camel-2-3-throws-exception-on-runtime-tp4372198p4372205.html Sent from the Camel - Users mailing list archive at Nabble.com.

Camel 2.3 throws exception on runtime

2011-05-05 Thread Bingliu
Hi,when i make pressure test, an exception has been thrown. Please look this: 2011 五月 05 15:32:39 219416 WARN [New I/O server worker #3-6] org.apache.camel.management.DefaultManagementLifecycleStrategy - Could not register thread pool: java.util.concurrent.ThreadPoolExecutor@13452c4 as ThreadP

Re: POP3 mail deletion

2011-05-05 Thread Arkadi Shishlov
On Wed, 04 May 2011 18:29:49 +0300, Donald Whytock wrote: A design question regarding the mail component... Indeed there are some issues with mail component. I didn't investigated it closely, but in case mail input is dumped into multicast+SEDA then there are interesting things with POP3 an

Re: Intercept send to beanRef endpoint

2011-05-05 Thread Romain Manni-Bucau
Hi, i think it should stay like it (KISS), if you want to intercept you have to use an endpoints otherwise you are free to use endpoint, processors etc... another solution could be to add an interceptProcessor(). - Romain 2011/5/5 Claus Ibsen : > On Thu, May 5, 2011 at 9:19 AM, Jean-Pierre Berg

Re: Intercept send to beanRef endpoint

2011-05-05 Thread Claus Ibsen
On Thu, May 5, 2011 at 9:19 AM, Jean-Pierre Bergamin wrote: > Hello camel users > > We are trying to intercept calls from being sent to a bean endpoint in a > route that is declared as: >  from("...").beanRef("myBean", "myMethod") > > The interception is declared as > interceptSendToEndpoint("bean

Intercept send to beanRef endpoint

2011-05-05 Thread Jean-Pierre Bergamin
Hello camel users We are trying to intercept calls from being sent to a bean endpoint in a route that is declared as: from("...").beanRef("myBean", "myMethod") The interception is declared as interceptSendToEndpoint("bean:myBean?method=myMethod"), but calls to myBean are not intercepted. W

Re: camel gui

2011-05-05 Thread Romain Manni-Bucau
hi Jean-Baptiste, thanks, i didn't know this one. - Romain 2011/5/5 Jean-Baptiste Onofré : > Hi Romain, > > another tool that Claus forgot on the list is Talend Open Studio. > A Camel Designer GUI will be available in the next Talend Open Studio > release (Community Edition). It's an integrated

Re: camel gui

2011-05-05 Thread Jean-Baptiste Onofré
Hi Romain, another tool that Claus forgot on the list is Talend Open Studio. A Camel Designer GUI will be available in the next Talend Open Studio release (Community Edition). It's an integrated platform powered by Eclipse. Regards JB On 05/05/2011 09:01 AM, Romain Manni-Bucau wrote: thanks

Re: camel gui

2011-05-05 Thread Romain Manni-Bucau
thanks for these answers, it was what i've found. i don't really like the maven plugin because it relies on dot and i don't want to depend on external tools in my pom. - Romain 2011/5/5 Claus Ibsen : > Hi > > 1) > At Apache Camel there is a maven tool to generate a visualization of > the routes