Re: Camel distributed transactions/XA without full J2EE container?

2014-12-09 Thread Daniel Pocock
On 08/12/14 21:51, GuyPardon wrote: Hi, I am from Atomikos. I can confirm that our software is open source and apache-licensed (and as far as I am concerned always will be - we never regretted moving towards open source so far). You can use it any way you like, as long as you like, rebrand

Re: placeholder support in the camel-http4 component..

2014-12-09 Thread yogu13
Thanks Claus! The link helped! A quick question around this ... Any particular reason that the placeholder support has been left out from endpoints ? The only advantage i see is early binding advantages to endpoints in this case. Regards, -Yogesh -- View this message in context:

Re: Seeking understanding of Parameter Binding in Bean invocation

2014-12-09 Thread edhansen42
Thanks Taariq - I'll give 2.14.0 a try! -- View this message in context: http://camel.465427.n5.nabble.com/Seeking-understanding-of-Parameter-Binding-in-Bean-invocation-tp5759896p5760336.html Sent from the Camel - Users mailing list archive at Nabble.com.

Spring Camel Parent Context

2014-12-09 Thread Justin Rosenberg
I have many (over 100) projects that all include a core Spring project where ActiveMQ is configured. Currently each project defines its own camel context as such: camel:camelContext id=CamelContext-${project.artifactId}_${project.version} camel:contextScan/

Re: FW: Spring Camel Parent Context

2014-12-09 Thread Willem Jiang
I think the magic is happened in side of camel spring post processor which inject the camel context to CamelContextAware interface. If you use CamelContextFactoryBean directly, it won’t setup the post processor for you out of box. Please feel free to fill a JIRA for adding support of parent

Re: Camel distributed transactions/XA without full J2EE container?

2014-12-09 Thread Christian Schneider
Hi Guy, I do not fully understand what your issue with github (or similar) is. It should not be the cost part. I am not sure if github would cost anything for organizational use if your repositories are open. I work for Talend and we host all our development on github. It has some advantages

Camel REstlet -Response

2014-12-09 Thread contactreji
Hi I am trying to use RESTLET component to create a rest service. My requirement is to 1) pass the 2 parameters called id and firstName 2) create a Object of Customer class and set its class variables id and Name with above parameters 3) Return the customer object so that my SOAP UI shows up

Apache Camel Mina2 not receiving data using Socket

2014-12-09 Thread Saurabh Singhal
I have been trying to send data through socket programming to Apache Camel and I am trying to use *Apache Mina2*. The idea is to send the data over TCP to Camel. For TCP, I am using socket programing. This is what my code is for *Mina2*: public void configure() throws Exception {

Re: Moving data between sources - NULL values

2014-12-09 Thread Claus Ibsen
Hi So you want the value to be null, eg VALUE (100, null) And does the database understand null ? On Mon, Dec 8, 2014 at 6:50 PM, Schulze, Jan jan.schu...@verwaltung.uni-tuebingen.de wrote: Hi all, in Camel 2.13.2, I'm transferring data from one database to another like so:

camel - xsd

2014-12-09 Thread smilevasu6
Hi, How can we read the below xsd in java and camel ?xml version=1.0 encoding=utf-8? xs:schema elementFormDefault=qualified xmlns:xs=http://www.w3.org/2001/XMLSchema; xs:element name=TABLES xs:complexType xs:sequence xs:element name=BD_COMPANIES_T:BD_COMPANIES type=xs:string

Need leading/trailing spaces support in camel:simple

2014-12-09 Thread Goyal, Arpit
Hi Colleagues, We have the following XML DSL (part of the whole xml), where we set the body using camel:simple tag. Somehow in the processing, we see that the spaces are trimmed at the end. camel:setBody camel:simpleNameIDPlace#13; A 1 X#13; B 2 D#13; B 3 Bangalore#13; E 4 A

Re: Camel distributed transactions/XA without full J2EE container?

2014-12-09 Thread alexey-s
You are not faced with the problem of access to GitHUB. Recently, in Russia, this resource was not available for several days. This multi-million developers have lost access to their projects. Well, that someone wrote for GitHUB system blocking parts of sections for whole regions (countries). God

Re: camel - xsd

2014-12-09 Thread smilevasu6
Any one there to help me out with below one -- View this message in context: http://camel.465427.n5.nabble.com/camel-xsd-tp5760376p5760380.html Sent from the Camel - Users mailing list archive at Nabble.com.

AW: camel - xsd

2014-12-09 Thread jhm
How to read a xsd - this was discussed just a few days ago ... 1. Read the data, doesn't matter if xml or not, from your datasource (file, db, http, ...). 2. Optionally validate against xsd: http://camel.apache.org/validation.html 3. Optionally bind the data to JAXB classes (classes generated

Re: Camel distributed transactions/XA without full J2EE container?

2014-12-09 Thread Daniel Pocock
On 09/12/14 11:58, alexey-s wrote: You are not faced with the problem of access to GitHUB. Recently, in Russia, this resource was not available for several days. snip It is better to have a few mirrors. How to git on apache.org and GitHub. Technically, that is exactly the type of problem Git

Re: camel - xsd

2014-12-09 Thread smilevasu6
Yes but this time it has multiple elements jan, I am not getting idea how to start On Tuesday, December 9, 2014, Jan Matèrne (jhm) [via Camel] ml-node+s465427n5760381...@n5.nabble.com wrote: How to read a xsd - this was discussed just a few days ago ... 1. Read the data, doesn't matter if

Re: camel - xsd

2014-12-09 Thread smilevasu6
Because, i need to fetch the element name for dynamic insert. Reason why i need to read the xsd file and fetch the elements(for single element you have advised me how to fetch). And this time it has multiple elements. -- View this message in context:

AW: camel - xsd

2014-12-09 Thread jhm
If you can use a splitter then you could reuse your insert-code. Just reading the xml should not differ. Jan -Ursprüngliche Nachricht- Von: smilevasu6 [mailto:srinivas.thu...@gmail.com] Gesendet: Dienstag, 9. Dezember 2014 13:18 An: users@camel.apache.org Betreff: Re: camel - xsd

Re: Camel REstlet -Response

2014-12-09 Thread contactreji
Can someone help in this? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-REstlet-Response-tp5760370p5760392.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: [REST DSL] Camel 2.14.1-SNAPSHOT : How to configure SSL on jetty component ?

2014-12-09 Thread Willem.Jiang
Hi, Did you try to setup the JettyComponent first just like this? JettyEndpoint doesn't support to set the sslSocketConnectors. If you want to set the sslContextParameters you need to set it just like this -- View this message in context:

Re: AW: camel - xsd

2014-12-09 Thread smilevasu6
Don't mind can you give me sample code instead of link -- View this message in context: http://camel.465427.n5.nabble.com/camel-xsd-tp5760376p5760396.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: TypeConversionException RabbitMQ

2014-12-09 Thread Alan Camillo
Sure! Here it is: ... @Override public void *process*(Exchange exchange) throws Exception { A a = exchange.getIn() .getHeader(BODY, *A.class*); exchange.getIn().*setBody*( a.getBs().get(

Re: HttpProducer endpoint with unlimited/limited redelivery - memory leak

2014-12-09 Thread Claus Ibsen
Hi Thanks for reporting. Willem logged and fixed this https://issues.apache.org/jira/browse/CAMEL-8134 On Mon, Dec 8, 2014 at 11:53 AM, Radek Kraus radek_kr...@centrum.cz wrote: Hello, I have a suspicion on (or better I faced to) memory leak in the following situation. I use HttpProducer

cfx web service client error

2014-12-09 Thread dharshan
Hi When i sent the request i have getting below error . Caused by: org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint: Endpoint[cxf://bean:galileo]. Reason: org.apache.cxf.service.factory.ServiceConstructionException: Could not find definition for service

Rest DSL IN/OUT types

2014-12-09 Thread Alan Camillo
Hello! I've had some problems trying the new rest dsl from camel and I'd like to know if there is a way to do this: restConfiguration() .component(netty-http) .host(0.0.0.0) .bindingMode(*RestBindingMode.auto*) .port({{server.port}}); rest(/mail) .post(/send)

Using JAXB Marshaller Together with @Produce Annotation

2014-12-09 Thread Igor Egorov
Hello, I want to marshal my message body with jaxb, so I've prepared the following camel context: camelContext xmlns=http://camel.apache.org/schema/spring; depends-on=externalAuthEventsConsumer route from uri=direct:events/ marshal jaxb prettyPrint=false

Re: Rest DSL IN/OUT types

2014-12-09 Thread Claus Ibsen
Hi Ah yeah as it marshalled using JAXB for IN it defaults to do the reverse on out. But as you have auto mode, we could likely detect that if the message body does not have @Jaxb annotations it should use it as-is. Also we could detect if the body is a String and use that as-is, as its assume xml

Re: Rest DSL IN/OUT types

2014-12-09 Thread Claus Ibsen
Hi I logged a ticket to track this https://issues.apache.org/jira/browse/CAMEL-8136 On Tue, Dec 9, 2014 at 5:01 PM, Claus Ibsen claus.ib...@gmail.com wrote: Hi Ah yeah as it marshalled using JAXB for IN it defaults to do the reverse on out. But as you have auto mode, we could likely detect

Re: Rest DSL IN/OUT types

2014-12-09 Thread Alan Camillo
It'll be nice. Imagine could use a template engine to create some returns and mix this with some bindings. I will look the src and if I could help I can try. Thanks! Alan Em 09/12/2014, às 14:01, Claus Ibsen claus.ib...@gmail.com escreveu: Hi Ah yeah as it marshalled using JAXB for IN

Re: Rest DSL IN/OUT types

2014-12-09 Thread Claus Ibsen
Hi Yeah sounds good. Its this guy org.apache.camel.processor.binding.RestBindingProcessor which we need to enhance to allow the RestBindingMarshalOnCompletion part not to do a jaxb in those situations On Tue, Dec 9, 2014 at 5:13 PM, Alan Camillo alancami...@gmail.com wrote: It'll be nice.

Re: HttpProducer endpoint with unlimited/limited redelivery - memory leak

2014-12-09 Thread Willem Jiang
Hi Radek, I revisit the code twice and found out we should not add the synchronisation if the closedOnCompletion option is false. As it’s the user responsibility to clean up the stream once it close the stream. In you case the exchange synchronisation is keeping adding even the under layer

Re: TypeConversionException RabbitMQ

2014-12-09 Thread Alan Camillo
Someone knows if this behavior is it normal? Thanks again! Alan Camillo On Tue, Dec 9, 2014 at 12:31 PM, Alan Camillo alancami...@gmail.com wrote: Sure! Here it is: ... @Override public void *process*(Exchange exchange) throws Exception { A a = exchange.getIn()

Re: Rest DSL IN/OUT types

2014-12-09 Thread Alan Camillo
I see you are working on this. I'll follow your fix. Alan Camillo On Tue, Dec 9, 2014 at 2:17 PM, Claus Ibsen claus.ib...@gmail.com wrote: Hi Yeah sounds good. Its this guy org.apache.camel.processor.binding.RestBindingProcessor which we need to enhance to allow the

Re: Rest DSL IN/OUT types

2014-12-09 Thread Claus Ibsen
Hi Yeah found it outs really camel-jaxb that should support this. So to support your use case in 2.14.1, you set the mustBeJAXBElement=false which you can configure on the rest data format property. For example

Re: HttpProducer endpoint with unlimited/limited redelivery - memory leak

2014-12-09 Thread Radek Kraus
Hi Willem and Claus, many thank you for fix and JIRA issue too. I felt that one possibility, was to don't register synchronization at all (like was in version 2.12.2), but I wasn't sure with this option (mainly in context of CAMEL-7055). -- View this message in context:

Re: Rest DSL IN/OUT types

2014-12-09 Thread Alan Camillo
Fantastic! Thank you again! On Tue, Dec 9, 2014 at 5:21 PM, Claus Ibsen claus.ib...@gmail.com wrote: Hi Yeah found it outs really camel-jaxb that should support this. So to support your use case in 2.14.1, you set the mustBeJAXBElement=false which you can configure on the rest data format

Apache crashing leading to all requsts being sent to /var/apache2/htdocs

2014-12-09 Thread bonne
installing Apache2 on OpenBSD5.6 as Nginx is now default htttd on OpenBSD and I am more familiar with Apache. Allthough... I am facing this weird issue: A multi site setup. Several virtual hosts on one IP. If I am doing a apachectl2 stop and apachectl2 start

Re: Apache crashing leading to all requsts being sent to /var/apache2/htdocs

2014-12-09 Thread JustinCRL
Wrong mailing list? -- View this message in context: http://camel.465427.n5.nabble.com/Apache-crashing-leading-to-all-requsts-being-sent-to-var-apache2-htdocs-tp5760427p5760429.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: HttpProducer endpoint with unlimited/limited redelivery - memory leak

2014-12-09 Thread Willem Jiang
Hi Radek, It’s more complex than you thought. We need to clean up the cached the file in some place. I just added some unit tests to make sure we don’t introduce regress issue again. You can check out the patch if you are interesting about the whole context :) -- Willem Jiang Red Hat, Inc.

Re: cfx web service client error

2014-12-09 Thread Willem Jiang
You just defined a wrong service name, it could be “s:Service1Soap”, or “s:Service1Soap12”. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On December 9, 2014 at

Exchange[Message: [Body is null]] even though Server is sending Response

2014-12-09 Thread NewLearner
Hi , I need somehelp to use the MINA2 component in asynch mode. I am trying to use the following flow: M2P--MINA2PRODUCER 1. sending request from M2P to socket server(Mina Server but not used Camel). 2. Socket Server received the packet and sent back response to M2P. 3. But M2P is saying

Re: [REST DSL] Camel 2.14.1-SNAPSHOT : How to configure SSL on jetty component ?

2014-12-09 Thread Vaïsse-Lesteven Arthur
Hi Willem, I thought that the creation of the jetty server was delegated to the rest component and that I can't create one myself. I so tried to pass it option through endpointProperty/componentProperty. I'll try to create a jetty bean out of the rest configuration ! More tests yesterday night