Re: RESTful route with Apache CXF

2012-09-30 Thread Ralf Steppacher
Willam, thanks for the hint. I shall look into camel-cxfrs. Could you give me a usage example of the cxfbean component? What would be a scenario where immediate marshalling to the client-requested format is desired? Is the idea that all work necessary to produce a meaningful response is done in t

Re: Help with nmr, cxf endpoints and fault handling

2012-09-30 Thread tnk
Willem, here is the code for addSoapFault(exchange, new CantTalkFault_Exception("Ups", cantTalkFault)); I am using it with cxf PAYLOAD data format. public static void addSoapFault(Exchange exchange, Exception faultException) throws Exception { if (!faultException.getClass().isAnnota

Re: Camel netty - Netty ChannelBuffer classloading issue in Karaf 2.2.9

2012-09-30 Thread declancox
Hi Claus, Thanks for the reply. Yes I checked the import/export package lists and they seem to be in order - (generated using the maven bundle plugin 2.3.7). I should mention that this seems to happen intermittently. This morning I tested and I was able to run without exception. I will test some mo

Storing Camel Tracer Messages to Database

2012-09-30 Thread Gnanaguru S
Hi Can I get a suggestion for storing the trace messages to a database. I went through the camel tracer example. It stores the trace elements into the HSQL database. It uses org.apache.camel.processor.interceptor.JpaTraceEventMessage, where the number of elements to be stored is predefined. Th

Best Practise for (Dynamic Topic in Ear Project)

2012-09-30 Thread zuff
Hi All, I would like to seek advise on what is the suggested guideline for handling temporary jms topic in a EAR backing bean. The scenario is as such. Server 1: One ear project deployed on Weblogic, one of the backing beans allow user to publish a request that submit a jms topic. Se

Re: Help with nmr, cxf endpoints and fault handling

2012-09-30 Thread James Carman
I have attached a patch to the JIRA issue which implements a fix for this issue, I believe. Although, there is another DefaultHttpBinding class in the htttp4 component's code. This is virtually duplicate code. We should probably add the logic there, also. In fact, we should combine the common c

Re: Help with nmr, cxf endpoints and fault handling

2012-09-30 Thread James Carman
I started working on it if nobody else has time. Sent from my iPhone On Sep 30, 2012, at 5:56 AM, Claus Ibsen wrote: > On Mon, Sep 24, 2012 at 4:28 PM, tnk wrote: >> Hi, >> >> sorry, maybe the situation wasn't clear enough. I have a simple jetty http >> endpoint, which accepts requests and sim

Re: How to indent output of an qxuery transformation

2012-09-30 Thread rhuiser
Hi all, Thanks for your help! This is what I've been searching for! One little question: How can i put this camel context property using the XML DSL? Thanks again, Robin -- View this message in context: http://camel.465427.n5.nabble.com/How-to-indent-output-of-an-qxuery-transformation-tp57

Re: How to indent output of an qxuery transformation

2012-09-30 Thread Babak Vahdat
http://camel.apache.org/schema/spring";> ... ... Babak rhuiser wrote > Hi all, > > Thanks for your help! This is what I've been searching for! > One little question: > > How can i put this camel context property using the XML DSL? > > Thanks again, >

Re: How to indent output of an qxuery transformation

2012-09-30 Thread Raul Kripalani
Hi Claus, I would say no. Automatic pretty print interferes with log files, forcing log statements to become multiline. And it also interferes with systems that parse XML via plaintext string functions. Instead, I propose that we document this feature better in a FAQ and link to it from the XML-

Re: Adding custom soap header in camel spring-ws

2012-09-30 Thread Claus Ibsen
On Mon, Sep 24, 2012 at 9:50 AM, Claus Ibsen wrote: > On Wed, Sep 19, 2012 at 6:04 PM, cgsk wrote: >> Hi there, >> >> Is there a way to add custom header to Soap message as below. I am using >> Camel-SpringWS. >> >> >> >> >> >> >> >> where CustomerObject being a java object

Re: Camel JMS Request Reply

2012-09-30 Thread Christian Müller
I found a typo (the "?exchangePattern" is not necessary): from("activemq:queue:EVENTS") .multicast(new Aggregation()) .inOut("activemq:queue:Test1", "bean:getDummyString"); from("activemq:queue:Test1") .process(new Processor() { public void process(Exchange exchange) throws Ex

Re: Camel netty - Netty ChannelBuffer classloading issue in Karaf 2.2.9

2012-09-30 Thread Claus Ibsen
Hi OSGi is very picky about the package imports|exports for the OGSi bundles. I suggest to look at what packages your bundle import|export. And make sure it imports those Netty packages which is needed for using Netty and as well for that custom codec. On Fri, Sep 28, 2012 at 5:40 PM, declanco

Re: Camel JMS Request Reply

2012-09-30 Thread Christian Müller
Can you try: from("activemq:queue:EVENTS") .multicast(new Aggregation()) .inOut("activemq:queue:Test1", "bean:getDummyString"); from("activemq:queue:Test1?exchangePattern") .process(new Processor() { public void process(Exchange exchange) throws Exception { exc

Re: File and async/ woes

2012-09-30 Thread Claus Ibsen
Hi Thanks for sharing your findings. On Wed, Sep 26, 2012 at 7:47 PM, Ralf Steppacher wrote: > Well, turns out that the only reliable way of preventing the file > consumer thread from being assigned tasks is to set the queue depth of > the executor pool to "unlimited" (maxQueueSize="0") and use

Re: Global exception policy across Route builder configure methods

2012-09-30 Thread Claus Ibsen
On Thu, Sep 13, 2012 at 11:34 AM, Andreas Jacobsen wrote: > That doesn't match my experiences. I've stepped through the > DefaultExceptionPolicyStrategy and global scope is definitely global > in Java DSL routebuilders too. I wish the documentation were more > clear on what the expected behavior s

Re: Help with nmr, cxf endpoints and fault handling

2012-09-30 Thread Claus Ibsen
On Mon, Sep 24, 2012 at 4:28 PM, tnk wrote: > Hi, > > sorry, maybe the situation wasn't clear enough. I have a simple jetty http > endpoint, which accepts requests and simply forwards it to nmr endpoint. > > > > And then, there is a cxfEndpoint (configuration in first post), listening to > nmr:fat

Re: How to indent output of an qxuery transformation

2012-09-30 Thread Claus Ibsen
On Sat, Sep 29, 2012 at 9:54 PM, Babak Vahdat wrote: > Hi > > Welcome to the Camel community! > > The solution to your problem (as Claus has already mentioned it) is to add a > property, that's: > > > myCamelContext.getProperties().put("org.apache.camel.xmlconverter.output.indent", > "yes"); > Ma