Re: HTTPS authentication setup using camel-http

2009-12-14 Thread ychawla
Is it possible to do this same 'hookup' using the Spring DSL. I am not sure if it is possible to specify this in Spring: HttpComponent httpComponent = (HttpComponent) getContext().getComponent("http"); httpComponent.setHttpClientConfigurer(new MyHttpClientConfigurer()); bwhite wrote: > > Tha

Re: HTTPS authentication setup using camel-http

2009-12-14 Thread ychawla
example: https://myhostname.com:443/myURL?httpClientConfigurerRef=myHttpClientConfigurer"/> As long as you implement the HttpClientConfigurer and configure your keystore and truststore as described above, it will work fine. ychawla wrote: > > Is it possible to do this same 

Recipient List / Multiple Exceptions

2009-12-15 Thread ychawla
Hello All, I am trying to use Camel to write a simple monitoring application. I want to check to try to connect to multiple URLs and then if any of them fail, send an email altering an admin. My strategy was to use timer to run the application at a given interval and then create a dynamic Recipi

Re: Saxon for XSLT 2.0?

2010-01-29 Thread ychawla
Hello, I need to use saxon as well as the XSLT transformer. I just threw the saxon jars in the classpath and the camel XSLT component used saxon. I am using Camel 2.1.0. Cheers, Yogesh raulvk.soa wrote: > > Hi, > > Is there a possibility to use Saxon instead of Xalan when using the xslt: >

Re: Using HTTPS in camel-http when remote side has self-signed cert

2010-02-18 Thread ychawla
Hello, I would like to monitor an HTTPS endpoint and connect to it in two different ways. I would like to connect to it in one route using HTTPS w/ client certificates and in another route using HTTPS using server certificate only. The reason for doing this is because all the endpoints I am moni

Re: Using HTTPS in camel-http when remote side has self-signed cert

2010-02-22 Thread ychawla
One way to solve this issue is to run two seperate instances of Camel and have the two different connection methods isolated in their own JVMs or webapps. Any other ideas? ychawla wrote: > > Hello, > I would like to monitor an HTTPS endpoint and connect to it in two > differ

Environment Variables using Simple language

2010-02-24 Thread ychawla
Hello All, I was unable to get the simple language to read from my environment variables in Windows. I did find a workaround for this that might be helpful. I use the Spring property place holder configurer which I believe has more functionality in Camel 2.3. Here is my workaround. I wanted to

Adding Mail Attachments Using Spring

2010-02-24 Thread ychawla
Hello All, I see on the mail page that it is possible to add mail attachments by attaching to the exchange prior to sending: http://camel.apache.org/mail.html in.addAttachment("logo.jpeg", new DataHandler(new FileDataSource("src/test/data/logo.jpeg"))); Is is possible to do this in Spring? If

Re: camel-http: basic authentication and query parameter "username"

2010-02-24 Thread ychawla
Hi Matteo, Did you check out this link: http://camel.apache.org/http.html It has info on connecting using basic auth. This example show a poll from google that you can adapt to meet your needs. Below is polls your URL and then write the result to a file: from("timer://foo?fixedRate=true&delay

Re: Not able to invoke webservice using http component

2010-03-23 Thread ychawla
Hi Habeer, Do you need to do the DOM conversions that you are doing: Document input = xmlConverter.toDOMDocument(soapMessage); exchange.getIn().setBody(input); Can't you just set the body to be a string? Same with the return message. That might be tripping something up. Also, are you able to

Wildcard Namespaces in XPath Injection

2010-03-26 Thread ychawla
Hello, I have been doing XPath injection and it is pretty cool. Using the instructions here, I created my own copy of the XPath annotation: http://camel.apache.org/xpath.html My question, how can I use wildcard namespaces? If you do something like this it fails due to the asterick: @Path("//*

Update Camel Content Filter Page?

2010-04-02 Thread ychawla
Hi Gang, Currently the WIKI has a content filter example like this: For the work we are doing, we want to select an xpath and set that as the body. We are doing something like this: //foo:bar I think this example would be helpful to include. End users don't have to bother

Re: Problem with Dynamic Recipient list and XPath

2009-01-16 Thread ychawla
>> hard. So I am working on improving this. >>> >>> At the same time the wiki needs a little update as well. Thanks. >>> >>> >>> On Mon, Jan 12, 2009 at 11:37 PM, ychawla >>> wrote: >>>> >>>> Hel

CXF Guidance

2009-03-26 Thread ychawla
Hello Fellow Camel Riders, I have an application that is using camel for routing and it working quite nicely. There are two allowed input paths for a message, one is a web service and the other is direct file system access. When a user drops a file onto the file system, it is processed by the

Re: CXF Guidance

2009-03-26 Thread ychawla
rg/CAMEL/loan-broker-example.html > > > Willem > > ychawla wrote: >> Hello Fellow Camel Riders, >> I have an application that is using camel for routing and it working >> quite >> nicely. There are two allowed input paths for a message, one is a web >> service

Camel CXF Component with ActiveMQ

2009-04-03 Thread ychawla
Hello All, I have a question. I have a Camel route configured to work with the CXF component using Camel 1.6.0. I am trying to invoke a service, send the message to a queue and send a response. However, the message seem to hang in the JMS queue. Here is the route: http://wijiscommons.

Re: Camel CXF Component with ActiveMQ

2009-04-04 Thread ychawla
will do a little experimenting. However, for now the pipeline going from the JMS queue and then to the response should work out. Thanks for the help! -Yogesh Claus Ibsen-2 wrote: > > On Sat, Apr 4, 2009 at 5:27 AM, ychawla > wrote: >> >> Hello All, >> I have a ques

Camel Content Filter

2009-04-22 Thread ychawla
Hello All, I have a question about the usage of the content filter. I have a route where I want to validate the message, but I only want to validate a certain part of the message. I looked at the content filter pattern and it didn't seem like Camel had much built in functionality there: http://

Camel JUEL expression weirdness in 1.6.0

2009-04-22 Thread ychawla
Hello All, I am trying to evaluate a header in Camel 1.6.0 using EL expressions. Here is my expression: ${in.headers['MyHeader'].startsWith('fooBar')} false When I run this, I get an exception: javax.el.MethodNotFoundException: Cannot resolve method 'startsWith' in '

Re: Camel JUEL expression weirdness in 1.6.0

2009-04-22 Thread ychawla
Uh, nevermind. Looks like Camel 1.6.0 uses JUEL 2.1.0. I was using JUEL 2.1.1. This might be an issue if Camel upgrades to the next minor version release of JUEL. Cheers, Yogesh ychawla wrote: > > Hello All, > I am trying to evaluate a header in Camel 1.6.0 using EL expressions.

Re: Camel JUEL expression weirdness in 1.6.0

2009-04-23 Thread ychawla
. I will send him an email to report the issue and see if they have a bug report I can file. Thanks, yogesh Claus Ibsen-2 wrote: > > On Wed, Apr 22, 2009 at 11:58 PM, ychawla > wrote: >> >> Uh, nevermind. Looks like Camel 1.6.0 uses JUEL 2.1.0. I was using JUEL >&g

Re: Camel JUEL expression weirdness in 1.6.0

2009-04-23 Thread ychawla
Here is the link to the bug tracker on source forge for JUEL: https://sourceforge.net/tracker/?func=detail&aid=2779833&group_id=165179&atid=834616 Cheers, Yc ychawla wrote: > > Hello All, > I am trying to evaluate a header in Camel 1.6.0 using EL expressions. &g

Re: Camel JUEL expression weirdness in 1.6.0

2009-04-24 Thread ychawla
but use property.toString() as a candidate method name: the MethodInvocation's toString() will answer the method name. ychawla wrote: > > Here is the link to the bug tracker on source forge for JUEL: > > https://sourceforge.net/tracker/?func=detail&aid=2779833&group_id=1

No operation found in the CXF client

2009-06-11 Thread ychawla
Hello All, I am trying to consume a web service as the origin of a camel route and later on down the line invoke a web service. I have this working by just consuming an xml message from a folder and invoking a web service, but when I try to connect the two web services I get an error: org.apache

Re: No operation found in the CXF client

2009-06-12 Thread ychawla
is is okay with Camel folks out there. Cheers, Yogesh ychawla wrote: > > Hello All, > I am trying to consume a web service as the origin of a camel route and > later on down the line invoke a web service. I have this working by just > consuming an xml message from a folder and in

Re: CXF consumer endpoint + XSLT + Tracer = EmptyStackException

2013-11-12 Thread ychawla
Hi, You can also try to convert your body to a string prior to calling your XSLT. This worked for me when I had this issue: Thanks, Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/CXF-consumer-endpoint-XSLT-Tracer-EmptyStackException-tp5741942p5743127.html Sent fro

Camel Validation Relative Paths

2014-03-07 Thread ychawla
Hello All, I see that an issue was reported validating XML documents with relative paths: https://issues.apache.org/jira/browse/CAMEL-6572 Judging by the schema that was attempting to be imported, it looks like a NIEM document. I am seeing the same issue using SMX 4.5.2 / Camel 2.10.6. I was wo

Camel Filter Bean when return value is false

2014-06-17 Thread ychawla
Hello All, I have a bean that will return a boolean of true or false. When the value is false, I want to go in a camel filter. Filter looks for 'true', like below: However, when t

Re: Camel Filter Bean when return value is false

2014-06-17 Thread ychawla
I can do this:

Intercept - Log Message EIP for testing

2014-06-18 Thread ychawla
Hello All, I am writing a Camel Context test and I want to intercept a logging endpoint to verify that a message is being logged. Here is a snippet from my route:

Getting entire Soap Message with header and body in Payload mode

2014-07-01 Thread ychawla
Hello All, We use payload mode to process our CXF messages. It is very convenient and will properly process the Soap Headers, SAML assertions, WS-Security headers etc. I have a requirements to get the entire raw Soap message in my camel route and call a processor with it. There are other ways to

Re: Concurrent problem with message Body using WireTap

2014-07-07 Thread ychawla
Hi Guys, Any hints on writing a processor that will do a deep clone? I am running into the same issue. I have a CXF Payload on my Exchange. Thanks, Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Concurrent-problem-with-message-Body-using-WireTap-tp5502505p5753471.

Re: Concurrent problem with message Body using WireTap

2014-07-07 Thread ychawla
Hi Guys, Any hints on writing a processor that will do a deep clone? I am running into the same issue. Thanks, Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Concurrent-problem-with-message-Body-using-WireTap-tp5502505p5753470.html Sent from the Camel - Users mailin

Re: Concurrent problem with message Body using WireTap

2014-07-10 Thread ychawla
Thanks Guys, The detailed solution that Stanislaw outlined worked perfectly. In ServiceMix, you will need to install the following libraries: install -s mvn:uk.com.robust-it/cloning install -s mvn:org.objenesis/objenesis/1.4 Thanks for the assistance! -- View this message in context: http:/

Re: ws-security

2014-07-10 Thread ychawla
Can you try to create a new exchange or use the out exchange when calling the proxied service? In my code, I have a special processor which copies a few headers to the out exchange and then calls it. This will remove all the exchange headers from the original exchange and remove a lot of the Came

Re: Getting entire Soap Message with header and body in Payload mode

2014-07-11 Thread ychawla
Hi Guys, Thanks for the help. I found a CXF interceptor online based off of the logging interceptor that gets the message: public SoapMessageInterceptor () { super(Phase.RECEIVE); } @Override public void handleMessage ( SoapMessage message ) throws Fault {

Camel Mail CC and BCC headers

2014-10-23 Thread ychawla
Hello All, I recently had a production issue where there was an exception thrown when the CC or the BCC headers were set to "": com.sun.mail.smtp.SMTPAddressFailedException: 554 5.1.1 Invalid recipient address Is this the expected behavior in Camel or would it be possible for camel to check for a

Re: Camel Mail CC and BCC headers

2014-10-23 Thread ychawla
Hello All, The MailBinding class contains this method setRecipientFromEndpointConfiguration. Perhaps it is just as easy as checking the recipients map to see if the CC or BCC are blank or empty string prior to setting them in the method. If so, I wouldn't mind submitting a patch for this. Thanks

Change property in unit test

2014-10-24 Thread ychawla
Hello All, I have a unit test and I want to change a camel property. I am only a single version of the configuration file to test against so I would like to change the property in code. For example, I thought I could do something like this: context.getProperties().put("myProperty", "false"); Ho

Re: Camel Mail CC and BCC headers

2014-10-27 Thread ychawla
Thanks Willem, Looks great. -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Mail-CC-and-BCC-headers-tp5757943p5758097.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Change property in unit test

2014-10-27 Thread ychawla
Hi Claus, I am using plain spring testing and annotating my custom class like this: @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration public class MyCamelTest { I don't think I am able to use useOverridePropertiesWithPropertiesComponent in this scenario. Is there a similar technique I

Re: Change property in unit test

2014-10-28 Thread ychawla
t;greeting", "Bye"); > return extra; > } > > Regards, > > On Mon, Oct 27, 2014 at 3:40 PM, ychawla <[hidden email] > <http://user/SendEmail.jtp?type=node&node=5758199&i=0>> > wrote: > > > Hi Claus, > > I am using plain

Re: Problem with multiple CXF services using the same https port

2015-01-30 Thread ychawla
Hello all, I got a little further with my configuration and think I got it working. I looked at the camel-example-cxf-osgi and it looks like all you really have to do is remove the standalone jetty HTTP(s) listener and then provide your address as a relative path in your Camel CXF bean. Just remo

Re: Problem with multiple CXF services using the same https port

2015-01-30 Thread ychawla
Hi Christian, Can you provide an example of how to set this up? The situation I have is this, which I think is the exact same as you describe. I have a central broker server on it with many different bundles: bundle A bundle B bundle C Each bundle hosts a web service with a distinct WSDL and sc

Re: CamelDestinationOverrideUrl documentation

2015-02-03 Thread ychawla
Hi Willem, Sorry to revive this old thread but it looks like this is supported in Camel CXF in addition to camel-cxfrs component. Would it be worthwhile to update the Camel CXF wiki page with this info? Thanks, Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/CamelDes

Re: Exposing request/response Web Service that would interact with legacy system

2015-02-04 Thread ychawla
Have you look into the Camel Aggregator pattern? http://camel.apache.org/aggregator.html If you have any mechanism in the request/response message to correlate a request to a response, you can set up the aggregator to collect your response from a separate route and match the request/response usin

Multicast Position and Exchange Properties

2015-03-06 Thread ychawla
Hello All, I am multicasting and need to alter the document before I send it to different endpoints. To do this, I use onPrepareRef="myProcessor". The issue that I am running into is that the copy of the Exchange that I get does not have much info other than a copy of the exchange. It would be h

Re: Multicast Position and Exchange Properties

2015-03-12 Thread ychawla
Thanks Claus, This is exactly what I am looking for. I will try to update the Multicast WIKI so it shows these Exchange properties like it does on the Splitter WIKI page. -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Multicast-Position-and-Exchange-Properties-tp57

Camel Route autostartup with Spring Profiles

2015-03-12 Thread ychawla
Hello All, I am looking to dynamically start up routes based on Spring profiles properties. I am aware that you can control this via a boolean on the route and you can define a property to make it dynamic. I have a scenario where I would like to allow the implementer to choose which beans to dy

Re: Camel Route autostartup with Spring Profiles

2015-03-12 Thread ychawla
Hello All, I decided to set all routes autostart to false and then implement an ApplicationListener: @Component public class MyListener implements ApplicationListener { @Autowired(required=false) private CamelContext camelContext; @Override public voi

Camel route - autostartup - no endpoint found

2015-03-16 Thread ychawla
Hello All, I have a route with autoStartup set to 'false'. However, Camel will still try to resolve the endpoint in the 'from' URI on the route. For example: However, I don't have 'myCXFServiceEndpoint' defined because the Spring profile that I am using does not defin

Re: Camel route - autostartup - no endpoint found

2015-03-16 Thread ychawla
I tried injecting a Camel Context into the Route Policy, but it looks like the route isn't yet created so it can't be deleted: @Override protected void doStart() throws Exception { LOG.info("In custom do start"); boolean removed = camelContext.removeRoute("myServic

Xpath parameter binding NodeList vs. Node

2013-08-27 Thread ychawla
Hello All, I am using Camel Xpath parameter binding. I have a method that has an expression like this for example: public void process(Exchange exchange, @OJBCamelXPath("/foo:Container") NodeList containerNodeList) throws Exception I know that the Xpath will only

Re: Xpath parameter binding NodeList vs. Node

2013-08-27 Thread ychawla
Hi Raul, Thanks for you reply. The query returns exactly one node. To retrieve the node, I do something like this: Node containerNode = containerNodeList.item(0); The OJBCamelXpath annotation is a class like this: @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.FIELD, ElementType.METHO

Re: How to invoke CXF webservice from processor bean

2012-07-27 Thread ychawla
I have something like this working in a unit test. Maybe you can try something similar: public static final String CXF_OPERATION_NAME = "operation"; public static final String CXF_OPERATION_NAMESPACE = "http://opNamespace";; @Test @DirtiesContext public void

Re: routing mail with camel on fuse esb

2012-08-03 Thread ychawla
Hi Mathieu, Not sure why you are getting an unknownhostexception. Can you telnet to the URL: telnet smtp.gmail.com 587 Also, I think port 587 on gmail is running on TLS. Maybe you need to use smtps? Thanks, Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/routing-m

Re: way to convert multiple csv files to single xml file

2012-08-09 Thread ychawla
Hi Matheen, Can you explain your problem a little more? Are all the files going to be available at the same time? Do you know how many files you need to aggregate? For example, in pseudo code: do all your bindy processing here but send to aggregator rather than 'fi

Re: way to convert multiple csv files to single xml file

2012-08-09 Thread ychawla
Here is an example method to aggregate: @SuppressWarnings("unchecked") public void aggregateGroupMessages(Exchange groupedExchange) { List grouped = groupedExchange.getProperty(Exchange.GROUPED_EXCHANGE, List.class); for (Exchange ex

JSON - Jackson return list rather than POJO

2012-08-14 Thread ychawla
Hello All, I am unmarshalling data using Jackson. My dataFormats bean is set up as such: However, my return value isn't a simple POJO, it is a list of POJO's. For example this is a sample stripped down JSON response: [{"last_name":"xxx",,"first_name":"Heather

Re: Using Simple header notation to define where to send a message

2012-08-14 Thread ychawla
Hello, You can also try using a recipient list and only have a single recipient on it. It can function as a dynamic router when you dynamically set a header. Thanks, Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Using-Simple-header-notation-to-define-where-to-send-

Re: exposing different operations under same service in camel + cxf routing.

2012-08-14 Thread ychawla
Hi, Have you tried turning on the tracer to see what headers are on your exchange? A simple filter such as this should work: ${in.headers.operationName} == 'SearchRequest' Try looki

Re: JSON - Jackson return list rather than POJO

2012-08-14 Thread ychawla
A simple workaround for this is a custom bean processor like so: public void processPersonSearchResponseJSON(Exchange exchange) throws JsonParseException, JsonMappingException, IOException { ObjectMapper mapper = new ObjectMapper();

Re: problem in aggregation

2012-08-14 Thread ychawla
Hi, Can you add some debug statements to your aggregator: newIn.setBody(oldBody + newBody); For example, what is oldBody and what is newBody? Based on the error you are receiving, you might be concatenating two XML documents like this: This will not create a valid XML document bec

Re: JsonEndpoint and Router

2012-08-23 Thread ychawla
Hi Marco, I have had a similar situation. I grab the JSON input, unmarshall to a POJO, inspect the payload for a parameter, and then set a camel header for routing. I have also had cases where I could route directly based of information in the HTTP Headers. Handling this by setting a header ba

RE: Debugging Live Camel Routes

2012-08-28 Thread ychawla
Hi Guys, The ServiceMix wiki also has a page on this. It says basically what Graham said : http://servicemix.apache.org/remote-debugging-servicemix-in-eclipse.html Thanks, Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Debugging-Live-Camel-Routes-tp5718181p5718216.

Re: XMLSecurity key recovery fails when keystore and key use different passwords

2012-08-28 Thread ychawla
Hi Dominik, I think this is the default behavior in Java. Whenever I work with keystores, the keystore password must match the key password. This could be due to the KeyManagerFactory implementation: http://docs.oracle.com/javase/6/docs/api/javax/net/ssl/KeyManagerFactory.html#init%28java.secu

Inject camel resources into Spring bean

2012-12-21 Thread ychawla
Hello All, I am working on a WS-Policy implementation that requires a SAML token to be passed in the security header. CXF provides a SAML callback handler to support adding the token. I am using an STS so I call a web service to obtain the token. I obtain the token and set it in a header:

Re: Inject camel resources into Spring bean

2012-12-23 Thread ychawla
Hello, To solve this issue, you can access the CXF message like this: Message message = PhaseInterceptorChain.getCurrentMessage(); Camel will copy Camel headers to CXF headers. You can set your 'key' to your map as a Camel Header and then grab it off the CXF message. Thanks, Yogesh -- View

Aggregator Pattern - GroupExchanges

2011-05-02 Thread ychawla
Hello All, Does the GroupExchanges attribute look at the correlation expression and completion size? Or does it only look at the batch options. I have a route like this: header.requestGUID numberOfEndpointsRequested

CXF component with WS-Addressing and one way messages

2011-05-04 Thread ychawla
Hello All, I added WS Addressing to a CXF endpoint. I did it up by updating the CXF endpoint like this: Initially I was fooling around with the CXF bus and referencing that on an endpoint but the above method worked well. Can I update the WIK

Re: CXF component with WS-Addressing and one way messages

2011-05-04 Thread ychawla
An upgrade to version 2.2.12 corrected the exception, but brought up another one... I am calling a one-way service but a response is being sent back. For example: http://www.w3.org/2003/05/soap-envelope";> http://www.w3.org/2005/08/addressing";>urn:uuid:b8d0a8ca-ada1-4840-8722-a4859144

Re: CXF component with WS-Addressing and one way messages

2011-05-05 Thread ychawla
Well, this might not be an issues for the Camel mailing list. I downloaded cxf 2.4.0 and 2.2.12 and ran the WS Addressing samples distributed with them and saw the same behavior. I bumped this message over to the CXF mailing list. Thanks, yogesh -- View this message in context: http://camel.4

Re: Camel, Spring, routeContextRef and namespaces?

2011-05-09 Thread ychawla
Hello All, This definetly seems like a bug. Does anyone know if a JIRA has been filed? I am running across the same issue and working around it by setting up a bean and doing xpath injection. Thanks, yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Spring-routeCon

Read file from within bundle?

2011-05-15 Thread ychawla
Hello All, I have some data file that reside inside a camel 2.6.0 bundle deployed inside of ServiceMix 4.3. I included some resources in my bundle: {maven-resources}, src/test/resources/xml/test=src/test/resources/xml/test However, I am not sure how I can read t

Re: Camel, Spring, routeContextRef and namespaces?

2011-05-15 Thread ychawla
Hi Guys, This works fine if you are referencing the XPath from your main context file, but if you are importing routes, it causes issues. Let me try to put together a test case that illustrates this bug. For now, I am doing XPath parameter injection on a bean and resolving my XPath that way. Che

Camel 2.7.2 in ServiceMix 4.3.0

2011-06-09 Thread ychawla
Hello All, I am trying to get Camel 2.7.2 running in ServiceMix 4.3.0. I ran a series of OSGi installs: osgi:install -s mvn:org.slf4j/log4j-over-slf4j/1.6.1 osgi:install -s mvn:org.slf4j/slf4j-api/1.6.1 osgi:install -s mvn:org.apache.camel/camel-core/2.7.2 osgi:install -s mvn:org.apache.camel/cam

Re: Camel 2.7.2 in ServiceMix 4.3.0

2011-06-10 Thread ychawla
Hi Jean Baptiste, Thanks for the advise. I made some progress. I updated org.apache.karaf.features.cfg with: mvn:org.apache.karaf/apache-karaf/2.1.5/xml/features mvn:org.apache.camel.karaf/apache-camel/2.7.2/xml/features Then I tried this: features:install camel-core 2.7.2 and got this error:

Re: Read file from within bundle?

2011-06-21 Thread ychawla
Hello All, This thread on the ServiceMix list shows you how to solve this problem: http://servicemix.396122.n5.nabble.com/Classpath-protocol-in-servicemix-td4490171.html#a4492467 Cheers, Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Read-file-from-within-bundle-tp439

Re: Disable CertificateValidation when Routing to HTTPS endpoint

2011-06-21 Thread ychawla
Does the server require a client certificate? If so, you need to get the Certificate Authority to provide you one. If the server just has an SSL Server certificate that is not in your truststore, you can use HTTP conduit to configure your truststore to accept the certificate or add the certificat

Re: Is there any way to 'park' values for later use

2011-06-28 Thread ychawla
Can you store the values in message Headers? -- View this message in context: http://camel.465427.n5.nabble.com/Is-there-any-way-to-park-values-for-later-use-tp4534068p4534096.html Sent from the Camel - Users mailing list archive at Nabble.com.

Synchronous route for an asynchronous web service pair

2011-07-07 Thread ychawla
Hello All, I have two one-way asynchronous web services. The first receives a request asynchronously. It processes it and then turns around sends a response to the second service. Both of these services will respond to any successful invocation with an HTTP 200 or 202 status and I am using a WS

Re: Synchronous route for an asynchronous web service pair

2011-07-08 Thread ychawla
Hi Freeman, I found this article written a while back that addresses this architecture: http://www.catify.com/2010/11/02/handling-http-requests-with-an-asynchronous-system-in-the-back/ It seems a little complicated though and I was hoping there was an EIP that would address this out of the box.

Exception when configuring data source in imported file

2011-07-28 Thread ychawla
Hello All, I am using Camel 2.6.0 and have my routes set up using the Spring DSL in a camel-context.xml file. I am looking to connect to a database using Hibernate with a pretty standard configuration: com.mysql.jdbc.Driver jdbc:mysql://xxx.x

Re: Exception when configuring data source in imported file

2011-07-29 Thread ychawla
Hi Claus, I tried with Spring 2.5.x and 3.0.x. I did read the Spring documentation here: http://static.springsource.org/spring/docs/2.5.x/reference/beans.html and they had some alternate syntax as well: ... (more properties below, omitted for brevity) This di

Re: CXF component with WS-Addressing and one way messages

2011-10-20 Thread ychawla
Hi Anton, Here is how you set the message ID: String requestID = "MY_MESSAGE_ID" if (StringUtils.isNotEmpty(requestID)) { // get Message Addressing Properties instance AddressingBuilder

Persisting a variable over different exchanges

2011-10-28 Thread ychawla
Hello All, I frequently set headers on an exchange so I can access them at different points on a route. Is there a way to persist a variable between different exchanges? I have a timer that will query a database every minute. I want to store the last record I queried so I only get new records.

TypeConverter GenericFile to InputStream

2011-12-02 Thread ychawla
Hello All, It looks like in Camel 2.6.0 there is no TypeConverter from GenericFile to InputStream. It is easy enough to get an InputStream from a GenericFile: Object body = exchange.getIn().getBody(); InputStream inputStream = null; if (body instanceof GenericFile) { GenericFile file = (GenericFi

Propogate CXF Exception to Camel

2012-02-16 Thread ychawla
Hello All, Consider a simple camel route like this that invokes a one way service: opName opNamespace If the endpoint you are invoking is down, CXF will throw an exception: Caused by: java.net.ConnectException: Conn

Re: Using Camel to as WS Broker

2012-02-16 Thread ychawla
Hi Guys, It looks like you want to use a single service as a facade to the multiple services behind the scenes. Camel can do that. Does the service that you want to use as the facade have a WSDL/Service Spec? If yes, you can set up a CXF endpoint in either Payload or POJO mode for that service.

Re: Propogate CXF Exception to Camel

2012-02-16 Thread ychawla
Hello All, I got Camel to see the exception by throwing a fault in my interceptor. This is probably not the preferred way to do this, but it seemed to work: public class CamelExceptionInterceptor extends AbstractPhaseInterceptor { public CamelExceptionInterceptor() { supe

Re: Propogate CXF Exception to Camel

2012-02-16 Thread ychawla
Hi Willem, Thanks for posting the unit test. I am wondering if I am getting the error because I am using a one-way exchange. For example, I also tried this with a producer template: senderExchange = new DefaultExchange(context, ExchangePattern.InOnly); enderExchange.getIn().setBo

Re: Propogate CXF Exception to Camel

2012-02-16 Thread ychawla
Well Willem, You have solved the problem... It is a bug with Camel 2.6.0 that is corrected in Camel 2.8.4. I am on ServiceMix 4.3.0 and that ships with Camel 2.6.0. I changed my POM to use the newer version of Camel and CXF and ran it in Eclipse just fine. Thanks for helping with this. -Yogesh

Camel log - part of body

2012-02-21 Thread ychawla
Hello All, In my camel routes, I use the log component quite a bit. For example: Is there a way with the simple language to only print out the first 100 characters or so of the body? I have some large XML file coming through that are really clogging up my logs. Thanks, Yogesh -- View this me

Re: Propogate CXF Exception to Camel

2012-03-02 Thread ychawla
Hi Willem, I upgraded to Camel 2.8.4 and CXF 2.4.6 and I still see this behavior. Here is my route. It basically reads from a folder and calls a web service:

Re: Does Camel supports dynamic routing by getting the routing info from database

2012-03-05 Thread ychawla
The other way you can do this is by using the Recipient List pattern: http://camel.apache.org/recipient-list.html You can query your database, have a bean where you setup a recipient list Header, and then call the recipient list. -- View this message in context: http://camel.465427.n5.nabble.co

RE: CXF endpoint's address dynamically modified?

2012-03-05 Thread ychawla
Hello All, I think this would be a great feature to have available with a cxf bean URI configuration. Consider the use case where Camel is acting as an intermediary broker/facade for other services. The broker and the services it fronts all share the same WSDL and service definition. The only di

Camel Properties Component Cache

2012-03-05 Thread ychawla
Hello All, The Camel Properties component is very cool, however there are a few enhancements which would make it even better. First off the 'Cache' property is very nice. If Cache is set to false, then you can change your properties file and Camel will pick up the changes. The default on this i

Re: Need help in Camel to send emails

2012-03-06 Thread ychawla
Hi, The body of the email will be whatever you have as the current body of the Camel exchange. You can explicitly set the body as well: This is my email body To control when the email is sent, you can split up your route: Then you can use quartz to set up a timer to poll your folde

Re: Need help in Camel to send emails

2012-03-06 Thread ychawla
Hi, Are you trying to set the 'to' field in your email. You can either set that on the smtp URI or in a header. For example: recipi...@domain.com The body of your email is whatever is on your message body. If you want to set it as part of your route, try using a bean: public String createEm

Re: http client cert verification

2012-03-06 Thread ychawla
On your client, you can add a HTTP conduit:

  1   2   >