Re: Corba component

2011-08-21 Thread M.Ismail
Hi, Although, it is not documented, you can still use the CXF bean component to call CORBA servers. CXF tools transform the IDL to a WSDL and the WSDL to java code. However, there are some limitations: 1- Inheritance model is not fully supported in both CXF and Camel. You can attempt workarounds i

Re: Choice always return turn in first test

2011-08-21 Thread Claus Ibsen
On Sat, Aug 20, 2011 at 11:39 PM, garrydias wrote: > In my code, setters n getterns are ommited... I already have getProperty > method =/ > > > i havn´t tried this: > ${in.body.property.get[key]} > > can it works?? > Yeah did you try that. What version of Camel are you using? > > > -- > View thi

Re: Corba component

2011-08-21 Thread Claus Ibsen
Hi Apache CXF has corba support. There are some corba samples http://cxf.apache.org/docs/sample-projects.html On Mon, Aug 22, 2011 at 7:45 AM, diwakar wrote: > Hi, > >             Servicemix had JBI4CORBA component for CORBA communication. Is > there a plan for CORBA component in Camel? Please

Re: Thread pool for components in Camel

2011-08-21 Thread Claus Ibsen
Hi See more details here http://camel.apache.org/threading-model.html On Mon, Aug 22, 2011 at 7:14 AM, diwakar wrote: > Hi, > >         In Servicemix we can configure thread pools for components: > servicemix.corePoolSize    = 32 > servicemix.maximumPoolSize = 128 >         In camel, how can I

Re: JMS Websphere MQ Error - MQJE001: Completion Code 2, Reason 2027

2011-08-21 Thread Claus Ibsen
Hi I suggest to google a bit on the MQ error codes. There may be some links out there with some details how to resolve this. On Thu, Aug 18, 2011 at 11:38 PM, devram wrote: > Hi, I'm new to camel and trying to replace an existing non-camel simply > message router which reads from one mq and the

Re: Serving static pages with JettyComponent

2011-08-21 Thread Claus Ibsen
On Fri, Aug 19, 2011 at 1:57 PM, Joshua Watkins wrote: > Thanks Craig. That solution worked. > > I will take a look at the deeper cause. It seems odd that you can specify > handlers but they don't really work. I am however only using 2.6, but I > can't see any jira tickets for something like this

Re: Setting options on http-request in spring-ws component

2011-08-21 Thread Claus Ibsen
Hi Do you mind creating a JIRA ticket for this? Maybe we can improve the spring-ws component to accept the parameter in the endpoint uri directly. http://camel.apache.org/support On Fri, Aug 19, 2011 at 11:12 AM, akamp wrote: > Hi all, > > I'm using the Camel spring-ws component to send a soap

Re: Using String(json) instead of object as body type:

2011-08-21 Thread Claus Ibsen
On Sat, Aug 20, 2011 at 6:01 PM, Robert Dare wrote: > How does one go about using character/text  body types instead of > object in Camel routes?  Is it as simple as just setting a string in > the producer template? > > The ActiveMQ docs indicate that object body types are lowest performance. > C

Re: camel-testng: Start debugger with CamelSpringTestSupport

2011-08-21 Thread Claus Ibsen
On Sat, Aug 20, 2011 at 8:50 AM, Kuhtz, Andreas wrote: > Hi Claus, > > I'm using 2.9-SNAPSHOT, but I can try with 2.8. > However I'm not sure if the unittest is configured correct, but I > haven't found a sample in the Camel sources. > Can you try with the camel-test to see if it works with JUnit

Corba component

2011-08-21 Thread diwakar
Hi, Servicemix had JBI4CORBA component for CORBA communication. Is there a plan for CORBA component in Camel? Please let me know your comment. With Best Regards, Diwakar -- View this message in context: http://camel.465427.n5.nabble.com/Corba-component-tp4722230p4722230.html Sent

Re: Choice always return turn in first test

2011-08-21 Thread garrydias
I already tried that =( -- View this message in context: http://camel.465427.n5.nabble.com/Choice-always-return-true-in-first-test-tp4717029p4719253.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Choice always return turn in first test

2011-08-21 Thread garrydias
In my code, setters n getterns are ommited... I already have getProperty method =/ i havn´t tried this: ${in.body.property.get[key]} can it works?? -- View this message in context: http://camel.465427.n5.nabble.com/Choice-always-return-true-in-first-test-tp4717029p4719256.html Sent from the

Thread pool for components in Camel

2011-08-21 Thread diwakar
Hi, In Servicemix we can configure thread pools for components: servicemix.corePoolSize= 32 servicemix.maximumPoolSize = 128 In camel, how can I configure thread pool for components? From documentation parallelProcessing, executorServiceRef options can be set to configure t

Re: how to invoke webservice with wsdl or not in camel?

2011-08-21 Thread Willem Jiang
There are lots of examples in the camel-cxf wiki page[1] Please take some time to read about it. [1]http://camel.apache.org/cxf.html On Sun Aug 21 10:18:33 2011, xiangqiuzhao wrote: how to send webservice request use wsdl and operation name? -- View this message in context: http://camel.46542

Re: i use wsdl file and payload dataFormat, but IllegalArgumentException

2011-08-21 Thread Willem Jiang
You should put the message body with the elements of the parameter, camel-cxf just point it out the issue. You can find the example in the camel-cxf wiki page[1]. Please take good look at the camel-cxf example and document before you ask this kind of question. [1]http://camel.apache.org/cxf.h

Re: Help using cxfbean to return class as json

2011-08-21 Thread Willem Jiang
Hi Edward, You can consider to send this issue to cxf users mailing list. On 8/21/11 10:44 AM, Edward wrote: Figured it out... Just needed to annotate the class... the provide has issues with Groovy classes but that is a separate problem. -- View this message in context: http://camel.465427

Re: send cxf message by MESSAGE format but can't get response

2011-08-21 Thread Willem Jiang
Hi, When you read the stream, you can not be sure that you read all the bytes of message once. You need to use a while to check if you can still read the bytes from stream. Or you can leverage the Camel type convertor to turn the input stream into a String just like this String result = ex

Re: Camel Transaction performance - use of batches?

2011-08-21 Thread David Karlsen
The old thread http://camel.465427.n5.nabble.com/Transactional-batching-td474002.html#a4721633 touches the same problem but w/o an solution. 2011/8/21 Viju > Im using a camel route which is transacted. I have set the transacted > property to be true in the JMSComponent via JMSConfig. In the rout

Re: Transactional batching

2011-08-21 Thread David J. M. Karlsen
Looking at this thread I wonder the same. During a resource local jmstransaction you are able to fetch several messages - but there is no way in camel to control the commit size. You can do the same during a XA tx. I see no support for batching here: http://camel.apache.org/batch-consumer.html.

Camel Runtime Management : Exchange Load

2011-08-21 Thread christian.ohr
Hi, I consider runtime monitoring and manageability as one of the key features for any real-world usage of "headless" integration solutions. Camel has good JMX support (and improving), but the exposed attributes may not always be as usable as possible. Often it's only about details, e.g. min/max/a

Re: send cxf message by MESSAGE format but can't get response

2011-08-21 Thread Christian Müller
Did you already looked into our unit tests [1]? It's a good source to get answers... Another good source are our examples [2]. We developed 5 examples relatet to CXF. Hope you get the answers you are looking for... [1] https://svn.apache.org/repos/asf/camel/trunk/components/camel-cxf/src/test/jav

Re: Camel Transaction performance - use of batches?

2011-08-21 Thread Viju
Dear Claus, I enabled caching by adding the property as described above and the performance is still the same, around 13 messages/ second compared to 60/second. As described in my previous post, the locks are happening at a different point. Thanks Viju -- View this message in context: http:

Re: Camel Transaction performance - use of batches?

2011-08-21 Thread Viju
I will enable the cache setting and test it. Just want to add an update that the 80 consumer threads seems to be waiting on these two below points most of the time. Stack trace: sun.misc.Unsafe.park(Native Method) java.util.concurrent.locks.LockSupport.park(LockSupport.java:118) java.util.concurre

send cxf message by MESSAGE format but can't get response

2011-08-21 Thread xiangqiuzhao
i had send the request message to web services, and the services can execute successful. but the camel message's out body is HttpInputStream, and i read from the stream by byte[] b = new byte[4096]; int len = ((InputStream)exchange.getOut().getBody()).read(b); output string is "

Re: Camel Transaction performance - use of batches?

2011-08-21 Thread Claus Ibsen
You can enable caching the consumer and the TX should go faster.                                 On Sun, Aug 21, 2011 at 2:47 PM, Viju wrote: > Im using a camel route which is transacted. I have set the transacted > property to be true in the JMSComponent via JMSConfig. In the route wh

Camel Transaction performance - use of batches?

2011-08-21 Thread Viju
Im using a camel route which is transacted. I have set the transacted property to be true in the JMSComponent via JMSConfig. In the route which listens to a message on a queue (Consumer) , I have provided tag which makes the route transacted. The DSL snippet is -

i use wsdl file and payload dataFormat, but IllegalArgumentException

2011-08-21 Thread xiangqiuzhao
CamelContext context = new DefaultCamelContext(); context.addRoutes(new RouteBuilder() { public void configure() throws Exception { from("direct:test") .process(new MyProcessor()) .to("cxf://http://localhost:8000/wstest/services/IWSTestSer