Re: marshal() with MarshalProcessor

2013-02-19 Thread Willem jiang
What's your MarshalProcessor looks like ? Did you call the marshal method in the DataFormat? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English

Re: Make xslt component not to validate dtd's (or use local copy)

2013-02-19 Thread Dirk Reske
Hi, no, the uriResolver is used to resolve the xslt file only. I've found a way, using a processor, that creates a XMLReader using the CatalogResolver and puts a SAXSource using this xmlReader into the exchange. @Override public void process(Exchange exchange) throws Exception { InputStream in

marshal() with MarshalProcessor

2013-02-19 Thread khong07
Hi, i have a route from("start").routeId("start"). marshal().json(JsonLibrary.Jackson) .to("seda:next"); producerTemplate.send(foo); It's worked. But i want send foo directly to seda:next, how i can do with MarshalProcessor? I tried: marshalProcessor = new MarshalProc

Fail to undeploy the camel web application in tomcat

2013-02-19 Thread xpd2000 .
Hi, We use the Fuse IDE now which integrates camelĀ 2.10.0.fuse-71-047. We are using cxf, activeMQ and xQuery components now. The Fuse IDE makes the war file for us and we deploy it to tomcat. Everything is ok except that: when we undeploy the web application without shutdown the tomcat, e.g. r

Re: camel shutsdown route even when using failover

2013-02-19 Thread Marco Crivellaro
I manage to get it working, I think I was setting the context in the wrong way. This now works, camel context won't stop and wait for the broker to reconnect using failover provided via config public class MainHulk { private static Logger LOG = LoggerFactory.getLogger(MainHulk.class);

Re: create NettyEndpoint Instance

2013-02-19 Thread Claus Ibsen
Hi I added an test and a improvement for Camel 2.11 http://svn.apache.org/r1447882 There is a bit more work to do as you need to configure the timer on the endpoint as well start components / endpoints etc. On Tue, Feb 19, 2013 at 8:06 PM, Claus Ibsen wrote: > On Thu, Feb 14, 2013 at 9:09 PM,

Error when using Camel write to Websphere MQ

2013-02-19 Thread sguruprasanna
I am new to Camel, as a proof of concept, I am trying to read from a Websphere MQ queue and write to another queue. The queues exist on two different queue managers. Below is my is my route configuration: http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XM

Re: create NettyEndpoint Instance

2013-02-19 Thread Claus Ibsen
On Thu, Feb 14, 2013 at 9:09 PM, Tyler Durvik wrote: > I would like to create a NettyEndpoint with a specified > NettyConfiguration, but cannot find an example on how to do this. > > So I have the following: > > public class MyDataRoute extends RouteBuilder { > > @Override > public void configure(

Re: Make xslt component not to validate dtd's (or use local copy)

2013-02-19 Thread Claus Ibsen
On Tue, Feb 19, 2013 at 1:56 PM, wrote: > Hello, > > We are using the camel xslt component to transform a xhtml file. But for > transforming the file, the used XMLReader tries to download the dtd from thw > w3c website. > > Is it possible, to tell the xslt component, to configure the xml reader t

Re: unmarshal().gzip() question

2013-02-19 Thread Claus Ibsen
On Tue, Feb 19, 2013 at 11:52 AM, briane80 wrote: > Hi, > > I'm dealing with some large xml files (300mb) that are gzipped (to around > 3mb) in a folder. > > I have a file route that reads from this folder then calls > unmarshal().gzip() to get the xml file for processing and the next stage of > t

Re: Simple languange FQN Enum 2.10.3

2013-02-19 Thread Claus Ibsen
On Tue, Feb 19, 2013 at 4:08 PM, Gershaw, Geoffrey wrote: > Hi all, > > > > I am trying to use an enum in a simple expression in the Spring DSL . I > see that it will be possible to do this in 2.11. Is there a workaround > till then? Right now I'm using a String literal. > > > > From the doc > > t

Re: unmarshal().gzip() question

2013-02-19 Thread briane80
Instead of using .unmarshall().gzip() I passed the message to a beanRef that decompresses the payload to a temp file using a buffer. Then created another route to read from the temp file. This gave much better memory usage and I was able to handle 300mb -> 4mb compressed files without OOM excepti

Simple languange FQN Enum 2.10.3

2013-02-19 Thread Gershaw, Geoffrey
Hi all, I am trying to use an enum in a simple expression in the Spring DSL . I see that it will be possible to do this in 2.11. Is there a workaround till then? Right now I'm using a String literal. >From the doc type:name.field Object Camel 2.11: To refer to a type or field by its FQ

Re: Multicast SOAP message using Camel

2013-02-19 Thread Claus Ibsen
Hi Did you find a solution to this? On Wed, Feb 13, 2013 at 12:27 AM, amitb wrote: > All, > > I am new to the forum, using Camel and need some help. > > I am receiving an external SOAP Message over HTTP, and need to multicast the > exact same message to 3 different service endpoints in parallel

Re: camel shutsdown route even when using failover

2013-02-19 Thread Claus Ibsen
On Tue, Feb 19, 2013 at 3:17 PM, Marco Crivellaro wrote: > I've tried what you've suggested but the route will shutdown in in case the > broker connection is lost, in my previous test it looked like System.Runtime > was being called. This is how my main method looks like now: > Maybe its due the

Re: camel shutsdown route even when using failover

2013-02-19 Thread Marco Crivellaro
I've tried what you've suggested but the route will shutdown in in case the broker connection is lost, in my previous test it looked like System.Runtime was being called. This is how my main method looks like now: public class MainHulk { private static Logger LOG = LoggerFactory.getLogge

Re: Issue with Camel annotations not being processed [OSGi, Blueprint, Javaconfig]

2013-02-19 Thread khong07
Hi all, I have same issue as Christopher Love with @Value in my spring route builder. My camel context: @Named("IntegrationRouteBuilder") public class IntegrationRouteBuilder extends SpringRouteBuilder { @Value("${filePolling}") private boolean filePolling; @Override

Make xslt component not to validate dtd's (or use local copy)

2013-02-19 Thread Freak . 2k
Hello, We are using the camel xslt component to transform a xhtml file. But for transforming the file, the used XMLReader tries to download the dtd from thw w3c website. Is it possible, to tell the xslt component, to configure the xml reader to use local version (e.g. by using xml catalogs) or no

Re: Spring DSL - Intercept criteria body

2013-02-19 Thread Claus Ibsen
Hi Try with ${bodyAs(String)} And you may need to enable stream caching http://camel.apache.org/stream-caching.html On Tue, Feb 19, 2013 at 12:48 PM, Alban Joly wrote: > Hi all, > > I am trying to config an interception with criteria on BODY. My problem is > the body is an instance of InputStre

Spring DSL - Intercept criteria body

2013-02-19 Thread Alban Joly
Hi all, I am trying to config an interception with criteria on BODY. My problem is the body is an instance of InputStreamCache and my criteria is never evaluate to true (I would like to evaluate a parameter in the POST request) My context config : http://camel.apache.org/schema/spring"; trace="t

Re: camel shutsdown route even when using failover

2013-02-19 Thread Claus Ibsen
Hi Are you sure your app keep running. The start method on spring app context is non blocking. See these FAQs http://camel.apache.org/running-camel-standalone.html http://camel.apache.org/running-camel-standalone-and-have-it-keep-running.html On Tue, Feb 19, 2013 at 11:45 AM, Marco Crivellaro w

unmarshal().gzip() question

2013-02-19 Thread briane80
Hi, I'm dealing with some large xml files (300mb) that are gzipped (to around 3mb) in a folder. I have a file route that reads from this folder then calls unmarshal().gzip() to get the xml file for processing and the next stage of the route is a beanRef. My question is does the unmarshal().gzip(

camel shutsdown route even when using failover

2013-02-19 Thread Marco Crivellaro
Hi All, I am setting up a camel context with 2 routes consuming 2 ActiveMQ queues. The connectionstring to the broker specifies failover protocol, however if the broker for some reason goes offline the context shutsdown itself automatically. Is there a way to keep the context trying to reconnect to

Re: DestinationResolver for Reply Messages

2013-02-19 Thread prueegg
Update: It works. >From my point of view, it would be nice to extend camel to support provider specific JMS destination properties. I'm not yet sure how to include it. Maybe it could be done just by have the possiblity to add a "DestinationPropertyProvider" or something like this just at the place

Re: DestinationResolver for Reply Messages

2013-02-19 Thread prueegg
I'm quite optimistic that injecting a new JmsConfiguration extends JmsConfiguration with an own JmsTemplate extending the CamelJmsTemplate would work. In the MyJmsConfiguration I've copied the createInOnlyTemplate from JmsConfiguration and just modified the line JmsTemplate template = new Ca