Re: Camel JMS monitoring

2014-01-02 Thread Claus Ibsen
On Fri, Jan 3, 2014 at 6:57 AM, Richa wrote: > I would also like to know if we can use hawtio project for commercial use. > Yeah hawtio is ASL2 licensed, so you can basically do (almost) whatever you want to do with it - also commercial. http://hawt.io/faq/index.html And if you have any code cha

unable to see all the palettes in Fuse

2014-01-02 Thread maheshpvd
Hi, while creating camel-context.xml in fuse-ide i'm unable to see all the palettes that are present. it shows only few palettes. how to get all the palettes to be displayed...? Thanks in advance. Thank you. -- View this message in context: http://camel.465427.n5.nabble.com/unable-to-see-al

Need for XA?

2014-01-02 Thread Tom Fornoville
Hi camel-riders, Happy New Year! In our application we have a lot of routes that follow the same pattern: read a message, do some processing, update/insert in the database and then send a message to the next route. You can see an example here: ${header.lineValidationResponse} == 'VALID'

Re: Camel JMS monitoring

2014-01-02 Thread Richa
I would also like to know if we can use hawtio project for commercial use. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-JMS-monitoring-tp5745429p5745467.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Request for a project to upload for Rest Webservices

2014-01-02 Thread Reji Mathews
Check.the jboss fuse examples. Check out a example called REST. its a good illustration of REST maheshpvd wrote: >Hi, > >Can any one upload complete Rest webservice project It would be very >helpful for me. as i'm starting to this. > >Thanks in advancve. > > > >-- >View this message in con

Request for a project to upload for Rest Webservices

2014-01-02 Thread maheshpvd
Hi, Can any one upload complete Rest webservice project It would be very helpful for me. as i'm starting to this. Thanks in advancve. -- View this message in context: http://camel.465427.n5.nabble.com/Request-for-a-project-to-upload-for-Rest-Webservices-tp5745463.html Sent from the Camel

Re: Camel JMS monitoring

2014-01-02 Thread Richa
Thanks claus. The hawtio project is really nice and easy to use. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-JMS-monitoring-tp5745429p5745464.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Master Slave Camel-ActiveMQ

2014-01-02 Thread Willem Jiang
There is one shortcoming of the Zookeeper policy, the route is started before the route policy get a chance to stop the consumer. If you are using JBoss Fuse, you can try to camel master component[1], it just starts the master component at the first place. [1]https://access.redhat.com/site/docu

Re: Master Slave Camel-ActiveMQ

2014-01-02 Thread Preethi
I have been trying to use zookeeper but it looks like the camel route on the slave, which is subscribing to the IBM MQ,still runs. I could see the exception below when I start the slave. Cause: JMSWMQ0026: Failed to subscribe to topic '#/#/ITEM/MAINT' using MQSUB.; nested exception is com.ibm.mq.M

Re: suspend and resume routes

2014-01-02 Thread frida
Hi Claus, to get the route status I'm just checking route.getStatus() this.getCamelContext().suspendRoute(route.getId(), 5, TimeUnit.SECONDS); //here I've also tried a brutal thread.sleep (7000); log.info("route {} (status: {})", new Object[]{id, route.getStatus()}); that turns in INFO com.ste.

Re: suspend and resume routes

2014-01-02 Thread Claus Ibsen
On Thu, Jan 2, 2014 at 6:02 PM, frida wrote: > Hi All, > I'm on my very first approach with Camel, and probably I'm missing (more > than) something :) > > I would like to suspend and resume routes from a web interface. > > I have a route: > DefaultRoute route = (DefaultRoute) this.getCamelContext(

Re: suspend and resume routes

2014-01-02 Thread kraythe .
You can connect to JMX port of camel to accomplish this. There are a couple of user interfaces that use web technology such as Hawtio. Writing one would also not be that big of a deal. See the following link: http://camel.apache.org/camel-jmx.html *Robert Simmons Jr. MSc. - Lead Java Architect @

suspend and resume routes

2014-01-02 Thread frida
Hi All, I'm on my very first approach with Camel, and probably I'm missing (more than) something :) I would like to suspend and resume routes from a web interface. I have a route: DefaultRoute route = (DefaultRoute) this.getCamelContext().getRoute(id); and a camelContext (instance of SpringCamel

Re: Asynchronous processing of routes

2014-01-02 Thread kraythe .
Try splitting up routes more and using ActiveMQ or another broker in between the routes. So instead of "waiting for the message to arrive" consume the message with a route and resume programming perhaps enriching with other messages from other sources. You can also create an aggregation strategy th

Re: Failed to create route

2014-01-02 Thread kraythe .
You have to register a transaction policy in the registry and with the transaction manager. In straight java it looks like this. final JmsTransactionManager txMgr = new JmsTransactionManager(amqcf); registry.bind(KEY_AMQ_TXMANAGER, txMgr); final SpringTransactionPolicy txPolicyRequired

Re: Failed to create route

2014-01-02 Thread Claus Ibsen
Hi required is implied. So try changing transacted("required"). to ... transacted(). On Thu, Jan 2, 2014 at 1:45 PM, fkfausa wrote: > Hi! > > I get the following error: > Caused by: org.apache.camel.RuntimeCamelException: > org.apache.camel.FailedToCreateRouteException: Failed to create rou

Re: Message properties missing after Camel - rabbitmq routing

2014-01-02 Thread kraythe .
I would guess that RabbitMQ is using their own headers for this and you are removing those headers in your route when you call . Try removing that line and debugging and see if you find them. Then use exclude patterns to make sure you dont remove the ones you need. *Robert Simmons Jr. MSc. - Lead

Re: Camel JMS monitoring

2014-01-02 Thread Claus Ibsen
On Thu, Jan 2, 2014 at 12:35 PM, Richa wrote: > Hi, > I have a camel route for which I want to enable monitoring. I have added the > following code to enable monitoring: > System.setProperty("org.apache.camel.jmx", "true"); > > context.getManagementStrategy().getManagementAgent().setServiceUrlPath

Failed to create route

2014-01-02 Thread fkfausa
Hi! I get the following error: Caused by: org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route BAS.G8.workorders.processJMSMessageRoute at: >>> Policy[ref:required] <<< in route: Route[[From[activemq:queue:bas-integration.workorders.incomi..

Re: Asynchronous processing of routes

2014-01-02 Thread Richard Kettelerij
>> Step 2 implies that the message coming on Q2 needs to be inspected and only if it turns out to be M2. I think the Content-Based Router EIP is a good fit here, http://camel.apache.org/content-based-router.html. For example: from("jms:q2") .choice().when(body().isInstanceOf(M2.class))

Re: Using the x509HostnameVerifier option in http4

2014-01-02 Thread Mohan
Hi Xavier, I am kind of facing similar issue that you had faced earlier. I have added in my camel context and in the url, I have .to("https4://dummy?httpClient.soTimeout=6&x509HostnameVerifier=x509HostnameVerifier"); But even after that it kept on giving me exception for host name verif

Re: How can I call a web service with no parameters via a producerTemplate?

2014-01-02 Thread viral.patel69
Dear William, Actually Web method contains single argument, so I have passed "Hello"(*exchange.getIn().setBody("Hello"); *). Can u tell me what is the problem of bellow code. *Web Service Method:* public String getApplication(String data) { System.out.println("getApplica

Re: Getting ClassCastException in Camel route while handling response containing java.util.List

2014-01-02 Thread Sanjay Bhattacharya
Willem, That worked like a charm. Your help is much appreciated. Thank you so much. On Thu, Jan 2, 2014 at 6:21 PM, Willem Jiang wrote: > No, you don’t need to change the signature. > When you set the response result into the message body, you need to wrap > the result into a List just like

Re: Getting ClassCastException in Camel route while handling response containing java.util.List

2014-01-02 Thread Willem Jiang
No, you don’t need to change the signature. When you set the response result into the message body, you need to wrap the result into a List just like this List books ... List resultList = new ArrayList(); resultList.add(books); exchange.getOut().setBody(resultList); -- Willem Jiang Red Hat, I

Re: Getting ClassCastException in Camel route while handling response containing java.util.List

2014-01-02 Thread sanjbh
Willem, I tried changing the signature to List> getBooks(); but that didn't work. So I tried creating a wrapper class that wraps the List and named it Books and changed the method to Books getBooks(). But still I am getting the ClassCastException as follows: org.apache.cxf.interceptor.Fault: org

Re: How can I call a web service with no parameters via a producerTemplate?

2014-01-02 Thread Willem Jiang
As you set the invocation parameter as POJO list, you need to set the dataFormate to be POJO. Because camel-cxf default data format is POJO, removing the endpointUri option of dataFormat should work for you. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.b

Re: Getting ClassCastException in Camel route while handling response containing java.util.List

2014-01-02 Thread sanjbh
Hi, Here goes the full stack trace. [ qtp1924936723-17] BooksQueryResult INFO Exchange[ExchangePattern: InOut, BodyType: java.util.ArrayList, Body: [org.test.cxfws.domain.Book@743479ce, org.test.cxfws.domain.Book@2128fefc, org.test.cxfws.domain.Book@a7c6366, org.test.

Re: Getting ClassCastException in Camel route while handling response containing java.util.List

2014-01-02 Thread Willem Jiang
You need to put the Book List into another List, as camel-cxf use list to hold the response for handling the InOut parameters. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com(http:

Camel JMS monitoring

2014-01-02 Thread Richa
Hi, I have a camel route for which I want to enable monitoring. I have added the following code to enable monitoring: System.setProperty("org.apache.camel.jmx", "true"); context.getManagementStrategy().getManagementAgent().setServiceUrlPath("/route/monitoring"); context.getManageme

Re: How can I call a web service with no parameters via a producerTemplate?

2014-01-02 Thread viral.patel69
Done Required changes still have some issue. String endpointUri= "cxf://http://localhost:8081/buzzor-service/services/ApplicationService?"; + "wsdlURL=http://localhost:8081/buzzor-service/services/ApplicationService?wsdl&"; + "serviceN

Re: Trying to consume SOAP WS with UTF-8 content, getting "Invalid UTF-8 middle byte 0x3c"

2014-01-02 Thread jannecamel
Thanks. My route is a little bit different and I don't want to write the request "by hand" like that. What I'm doing is: process(populateBeanProcessor). // 1 marshal(soapJaxbDataFormat). // 2 to(fooService). // 3 etc() 1 = processor creates a JAXB bean which represents my request 2 = JAXB

Re: Getting ClassCastException in Camel route while handling response containing java.util.List

2014-01-02 Thread Henryk Konsek
Hi, > Can someone help me to understand why the ClassCastException. Please send us the full stack trace you get. Cheers. -- Henryk Konsek http://henryk-konsek.blogspot.com

Re: @MockEndpointsAndSkip appears to not mock all endpoints when testing with Spring

2014-01-02 Thread Claus Ibsen
On Wed, Jan 1, 2014 at 3:11 PM, sebh wrote: > Turns out that indeed all endpoints were mocked and skipped including the one > that is used as a producer, resulting in no message being sent around. > > When using @MockEndpointsAndSkip(pattern) the producer should not be > included by the pattern. >

Re: How can I call a web service with no parameters via a producerTemplate?

2014-01-02 Thread Willem Jiang
Please use exchange.getIn() instead of exchange.getOut() in the process method. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com(http://jnn.javaeye.com/) (Chinese) Twitter: willemjia

Re: How can I call a web service with no parameters via a producerTemplate?

2014-01-02 Thread viral.patel69
Dear, I also want to call third party web service using camel but i am unable to call. I have tried two things First is:Creating SOAP String manually. Exchange exchange = template.request(endpointUri, new Processor() { public void process(final Exchange exchange) throws