MailConverters fails with uppercase content type TEXT/PLAIN?

2013-01-04 Thread axelr
Hi, I am wondering why the MailComponent fails to extract the text body of a simple (multipart) mail: TRACE [Camel - imaps://...] org.apache.camel.component.mail.MailBinding: Part #0: ContentType: TEXT/PLAIN; charset=utf-8 INFO [Camel - imaps://...] de.ordix: Exchange[ExchangePattern:InOnly, Bo

Re: camel sql

2013-01-04 Thread Willem jiang
Hi, What's you sql looks like? Did you need to change it dynamically? camel-sql support to use the query from message header with "CamelSqlQuery" which you can change the value dynamically. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http:

camel sql

2013-01-04 Thread pointerness
Hi, I am evaluating camel for our product. I am trying to use a camel route in an existing web application. We use spring-jdbc queryforlist to fetch data from DB. I thought camel's sql component should be a straight fit. However I get either bad sql grammar or class not found when I try to use the

Re: Camel websocket disconnect trigger

2013-01-04 Thread Willem jiang
Hi, Current Camel websocket manage the web socket connection itself with the MemoryWebsocketStore. I'm not sure what kind of resource you need to manage yourself. You should be able to know if the client web socket disconnect if you can pass the customer NodeSynchronization into the WebSocketE

Camel websocket disconnect trigger

2013-01-04 Thread aoisagi
Hi, I just started playing around with camel-websocket, however, there doesn't seem to be a trigger when the client quit the browser. Is there some kind of mechanism to detect disconnected socket so I can recycle some resources that's dedicated to that socket previously? Thanks. -- View this mes

Re: Route Policy Question: Server Restarts

2013-01-04 Thread pglebow
I've entered https://issues.apache.org/jira/browse/CAMEL-5929. Thanks again! Phil On Fri, Jan 4, 2013 at 9:01 AM, Claus Ibsen-2 [via Camel] < ml-node+s465427n5724919...@n5.nabble.com> wrote: > Hi > > Catching up with mails. > > On Tue, Dec 18, 2012 at 7:51 PM, pglebow <[hidden > email]

Re: Issue with use of SSLFilter with a custom codec

2013-01-04 Thread James Gough
Solution found (or stumbled upon): I added the following filter to my resources.groovy file: myCodecFilter(org.apache.mina.filter.codec.ProtocolCodecFilter, mycodec) And I changed the URL so that: 1. I removed the codec entry 2. I added "&allowDefaultCodec=false" to disable the adding of the

Re: Fetching webpages with CXF on the producer endpoint side

2013-01-04 Thread Martin Stiborský
Finally solved. About time, it was out of options anyway, it was inevitable to stumble over correct solution :D Two things, erase exchange body passed from CXF (it works but why it's like that?), then gzip unmarshalling (that was hard for me to find out, stupid me). from("cxfrs:bean:jenkinsServer"

Re: Sclaing camel

2013-01-04 Thread Christian Müller
It depends on the core framework you use (Mina, Netty, ...). Checkout the documentation, but most of the frameworks let you configure the max. thread pool size. The other request threads are blocked until they are served. If the database query doesn't take too long, you can live without a queue...

Re: Issue with use of SSLFilter with a custom codec

2013-01-04 Thread James Gough
More data points: -It doesn't matter whether I set the client field to true, it behaves the same way no matter what the field is set to -When I called the "sendMessage" method with the grails routing plugin, it was fine with me passing it a string until I added the SSLFilter, then it threw a

CAMEL-5217

2013-01-04 Thread Caspar MacRae
Hello, I don't think CAMEL-5217 has been merged in (wasn't in 2.11-SNAPSHOT, so checked out trunk). Best regards, Caspar

Re: Sclaing camel

2013-01-04 Thread kiranreddykasa
Thanks Christan it helped.. Consider this simple route async tcp(1) --->someBean(2) bean(2) will be accessing database for processing requests, What if the tcp endpoint gets 10k requests concurrently and bean(2) cant open that many database connections ?? Should i put the requests in queue

Re: WebSphere MQ Reply

2013-01-04 Thread Claus Ibsen
Hi What version of Camel do you use? On Thu, Jan 3, 2013 at 3:12 PM, prueegg wrote: > I have a problem with Request/Reply over WebSphere MQ. > > Sitation is that the Request is comming from WMQ and has to go back to WMQ. > Everything works fine, the message is handeld correctly as InOut, the re

Re: Proxy BeanInvocations turning into first-class payloads?

2013-01-04 Thread Claus Ibsen
Hi Welcome to the community. On Mon, Dec 31, 2012 at 5:38 AM, Liam Clarke-Hutchinson wrote: > Hmm, > > I think I've figured this out. The CamelProxyFactoryBean uses > ProxyHelper to create the proxied service - but the "convert a bean > invocation with one arg to just the arg" logic requires usi

Re: Remove an advice

2013-01-04 Thread Claus Ibsen
On Fri, Jan 4, 2013 at 6:02 PM, Henri Tremblay wrote: > That's what I'm doing. > > routeDefinitionUnderTest.adviceWith(context(), new > AdviceWithRouteBuilder() { > > @Override > public void configure() throws Exception { > weaveById("doTry*").before().setHeader("JMSMessage

Re: Clustered CronScheduledRoutePolicy - how to?

2013-01-04 Thread Claus Ibsen
On Thu, Nov 29, 2012 at 7:42 AM, Denis S wrote: > Hi, > > I have an sftp component which load files from external location. The route > starts and stops periodically by cron policy (@Claus Ibsen: thanks for your > advise to use it). > > Now I need to do this in a cluster (several tomcat nodes), bu

Re: Remove an advice

2013-01-04 Thread Henri Tremblay
That's what I'm doing. routeDefinitionUnderTest.adviceWith(context(), new AdviceWithRouteBuilder() { @Override public void configure() throws Exception { weaveById("doTry*").before().setHeader("JMSMessageID", constant("DuplicateID")); } }); But I have two tests

Re: Route Policy Question: Server Restarts

2013-01-04 Thread Claus Ibsen
Hi Catching up with mails. On Tue, Dec 18, 2012 at 7:51 PM, pglebow wrote: > I have several routes that run at different times during the business day. A > CronScheduledRoutePolicy is used to control the polling schedule. For > example, the system polls for a file via FTP between 14:00 and 15:

Re: Referencing constants in a (spring) route definition

2013-01-04 Thread Claus Ibsen
Hi This is not possible. You cannot use the spring XML tags inside . When you are inside then its all Camel XML. On Thu, Jan 3, 2013 at 12:47 PM, fab wrote: > Hello all, > > I'm using spring to define camel routes and was wondering if it is possilbe > to reference constants in a java class as

Re: Scala DSL with Scala 2.10

2013-01-04 Thread Claus Ibsen
Hi The scalate team has been so kind to cut releases that support Scala 2.9 and 2.10. So the last hurdle for Camel is to have an OSGi bundle of Scala 2.10 which is in the works. When all that is released. We could reconsider upgrading camel-scala to 2.10 as we have all the needed pieces now. Also

Re: Remove an advice

2013-01-04 Thread Christian Müller
You can use adviceWith [1] in your test. In this case you don't have to touch your original route. [1] http://camel.apache.org/advicewith.html Best, Christian On Fri, Jan 4, 2013 at 4:52 PM, Henri Tremblay wrote: > Hi, > > Happy new year to everyone. > > I'm doing integration tests. I'm reading

Re: Sclaing camel

2013-01-04 Thread Christian Müller
Find my comments inline. Best, Christian On Fri, Jan 4, 2013 at 11:09 AM, kiranreddykasa wrote: > Hi > > With spring and camel integration we have developed a webapp from which we > can add or remove routes at runtime. > Cool. > > Suppose if there is an tcp endpoint which is receiving some ten

Re: camel-smpp in trx mode

2013-01-04 Thread Christian Müller
That's the problem from my point of view. If you can suggest a good design how to handle it, I will implement it. Assume your route to send short messages looks like the following: from("bean://") .to("smpp://..."); By using TRX mode your smpp session will also receive: - sync. response from th

Re: Fetching webpages with CXF on the producer endpoint side

2013-01-04 Thread Martin Stiborský
Maybe, it's really a CXF problem? Because, it seems to me that the Camel HTTP component just does its job as expected... I wrote a simple test and voila - google is there :) It's failing of course, I was maily curious about the body content, that's why the asserting with "". public class FetchWebT

Re: how to obtain camel-smpp submit message id

2013-01-04 Thread Christian Müller
I created a ticket [1] and fixed the issue. The test [2] shows it works now. It's also back ported to camel 2.10.x and 2.9.x... [1] https://issues.apache.org/jira/browse/CAMEL-5926 [2] https://svn.apache.org/repos/asf/camel/trunk/components/camel-spring-integration/src/test/java/org/apache/camel/c

Fetching webpages with CXF on the producer endpoint side

2013-01-04 Thread Martin Stiborský
Hi, I have a simple case - CXF as producer and based on the HTTP request parameters, I need fetch some web page - with help of Camel HTTP component, I guess. For start, simple code: from("cxfrs:bean:jenkinsServer") .choice() .when(header(CxfConstants.OPERATION_NAME).isEqualTo("test")) .to("http:/

Sclaing camel

2013-01-04 Thread kiranreddykasa
Hi With spring and camel integration we have developed a webapp from which we can add or remove routes at runtime. Suppose if there is an tcp endpoint which is receiving some ten thousand requests is it advisable to run camel instance separately ?? or is it okay to run it in the web container it

Re: WebSpherePackageScanClassResolver.isWebSphereClassLoader(WebSpherePackageScanClassResolver.java:46)

2013-01-04 Thread Claus Ibsen
On Thu, Jan 3, 2013 at 5:31 PM, superduperguy wrote: > I am a newbie to Camel and facing the same issue. Did you find the resolution > to this issue? I am using Camel 2.10.2 version in Jboss-5.1.1 > > > [31-12 00:53:35:471] ERROR > [org.jboss.kernel.plugins.dependency.AbstractKernelController] (ma