Rest DSL Multipart OSGI multi bundles

2015-12-03 Thread sekaijin
Hi,

I have several bundles that implement a subset of Rest Services.

I have a bundle that sets the HttpTransport



I try to make a service that receives via a method POST a
multipart/form-data.
I read that he had to use camel-jetty instead of camel-servlet.
But I can not make it work.
My httpTransport bundle saves a single servlet for all my services
so are all my url http://localhost:8181/services/aRestService.

in the documentation I found how to set up a single rest service in each.

I've deployed camel-jetty in ServiceMix 5.5.1
I deployed camel-jetty in ServiceMix 5.5.1
on deployment of my bundles the package resolution goes well
but at the start of the road jetty component is not found.

I do not understand how I can configure servlet-camel for it to work for
multipart/form-data.
I do not understand how I can configure camel-jetty that all my bundles uses
the same context http://localhost:8181/service, knowing that each service is
in a separate bundle.
For httpTransport with camel-servlet, few mail exchanges talking about
filter in web.xml. but I am on osgi and I have no war. I have not found how
to enable support multipart in servlet component on java or blueprint.

thank
A+JYT




--
View this message in context: 
http://camel.465427.n5.nabble.com/Rest-DSL-Multipart-OSGI-multi-bundles-tp5774639.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Delete a file from route XML

2015-12-03 Thread yogu13
if the file is the source of input for your route then you could use the
delete option of  File    to get it
done.

Regards,
-Yogesh



--
View this message in context: 
http://camel.465427.n5.nabble.com/Delete-a-file-from-route-XML-tp5774626p5774649.html
Sent from the Camel - Users mailing list archive at Nabble.com.


camel-elasticsearch: use of client.transport.sniff

2015-12-03 Thread Randy Bowen

As of version 2.16.0, the camel-elasticsearch component appears to hard-code 
the configuration of the client.transport.sniff parameter for the 
TransportClient to “true”.  This causes transport connections to fail in our 
network configuration where the ElasticSearch cluster has separately dedicated 
client, data, and master nodes, and only the client nodes are accessible to 
clients.  I have confirmed that setting this value to “false” makes the 
component behave properly.

Would it be possible to make this setting configurable?




Re: Producer-consumer problem in Camel

2015-12-03 Thread hasikada
Hello,

When setting option 'waitForTaskToComplete=Never' the 'handleUserRequest'
route puts an exchange to seda queue and immediately responds to user 'Your
request .'. I would expect the setting 'concurrentConsumers=1' makes
that the exchanges from seda queue are processed one by one in
'direct:processRequest' route. But it doesn't happen. Currently when I
invoke the 'handleUserRequest' two times (or more times). I see two
processing by 'direct:processRequest' route. 

Adam



--
View this message in context: 
http://camel.465427.n5.nabble.com/Producer-consumer-problem-in-Camel-tp5774608p5774617.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Using camel-jetty options in recipient List

2015-12-03 Thread pratham
Hi Claus ,

According to what you said , there are 2 tables :

"options"  - this can be configured in the uri 
"component options" - for jetty endpoint

i did not get what you meant by "enableJmx is on the component only" .
Infact enableJmx option appears in both the tables.

Now , 'chunked' appears in the options table . That means this can be
configured in the endpoint uri. It works when specified in  tag as
shown below:

/
http://0.0.0.0:8299/test2?matchOnUriPrefix=truechunked=false;
/>
http://0.gravatar.com/avatar?bridgeEndpoint=true; />
/

My understanding is jetty will start a process to listening on port 8299
(this being a consumer(server) endpoint). So when we set 'chunked' to false
and access http://0.0.0.0:8299 in browser , the response headers contain
'content length' header. and on setting chunked to true the response header
will content 'transfer encoding' header instead of content length. This
behavior is clear to me.

However if i have a snippet like below:
/

jetty:http://localhost:10001/callback?chunked=false
/

or :
http://localhost:10001/callback?chunked=false"/>

Is the use of 'chunked' or 'enableJmx' in the uri's above incorrect ?. Both
are listed under options table which can be configured in the endpoint uri.

Thanks




--
View this message in context: 
http://camel.465427.n5.nabble.com/Using-camel-jetty-options-in-recipient-List-tp5773399p5774627.html
Sent from the Camel - Users mailing list archive at Nabble.com.


WildFly-Camel-3.2.0 released

2015-12-03 Thread Thomas Diesler
Dear Friends,

I’m happy to announce the release of wildfly-camel-3.2.0 



WildFly-Camel 3.2.0 provides Camel-2.16.1 integration with WildFly-9.0.2.Final.

We now provide compatibility with Karaf based deployments and added two more 
components to the supported set 
.

• camel-infinispan 

• camel-metrics 


In addition to that, we also resolved a number of other minor features, tasks 
and bugfixes 
.

Component upgrades include

• WildFly-9.0.2.Final
• Camel-2.16.1

For details please see the 3.2.0 Milestone 
.

Enjoy
—thomas

Re: Camel and Activemq setup with Spring Boot

2015-12-03 Thread zpyoung
Any help on this?



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-and-Activemq-setup-with-Spring-Boot-tp5774544p5774651.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Camel Aggregator - Completion based on CamelSplitComplete

2015-12-03 Thread contactreji
Hello!!

I just noticed the the header called CamelSplitComplete in camel splitter
EIP.

My requirement is to create a single file at the end of aggregation. I have
configured my aggergator as follows

* 

true


${in.header.CamelSplitComplete} 
== true


${exchangeId}



*

But unfortunately, the control is not entering this block at all. Am I
missing out on something? I my completionPredicate configured properly?

Cheers
Reji



-
Reji Mathews
Sr. Developer - Middleware Integration / SOA ( Open Source - Apache Camel & 
Jboss Fuse ESB | Mule ESB )
LinkedIn - http://in.linkedin.com/pub/reji-mathews/31/9a2/40a
Twitter - reji_mathews
--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Aggregator-Completion-based-on-CamelSplitComplete-tp5774653.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Soap Body is Empty or Partial XML

2015-12-03 Thread Aki Yoshida
i think something is consuming the payload stream somewhere before
your other processing step is trying to consume/convert the data.
when using streaming, either you can consume the data once or must
convert it to something else if it needs to be consumed again.

CAMEL-8663 is not related to this behavior.

2015-12-02 21:55 GMT+01:00 ychawla :
> Hello All,
> I added the parameter: allowStreaming=false to the CXF endpoints that were
> causing an issue and then they started to work normally.  It definitely
> seems like a bug because I would send consecutive schema valid messages and
> one would fail with the WoodStox exception and the other would not.
>
> Disabling streaming works but I believe there is a bug with the stream being
> sent from CXF to Camel.  Maybe it could be related to this JIRA issue:
>
> https://issues.apache.org/jira/browse/CAMEL-8663
>
> In my use case, I need to modify the payload and extract elements from it so
> it needs to be converted to a DOM anyway.
>
> Hopefully this helps the next person who sees this issue.
>
> However, does anyone know how to set the allowStreaming property globally
> for all CXF endpoints?
>
> Thanks,
> Yogesh
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Soap-Body-is-Empty-or-Partial-XML-tp5774364p5774624.html
> Sent from the Camel - Users mailing list archive at Nabble.com.


Camel Avro : Dependency added but still class not found error

2015-12-03 Thread Vanshul . Chawla
I am doing a basic POC to convert xml to avro format.

Below is the code




http://www.springframework.org/schema/beans;
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
xmlns:amq="http://activemq.apache.org/schema/core;
   xsi:schemaLocation="
   http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans.xsd
   http://camel.apache.org/schema/spring 
http://camel.apache.org/schema/spring/camel-spring.xsd
   http://activemq.apache.org/schema/core 
http://activemq.apache.org/schema/core/activemq-core.xsd;>
   http://camel.apache.org/schema/spring;>
   




 






So its just taking an xml from file, transforming to avro and sends to other 
file.


Dependency I added is


 org.apache.camel
 camel-avro
 2.12.0.redhat-610379
 
  

When I run the camel context, it says class not found.

When I checked maven jars added in dependencies, I can see this jar is fetched 
but I don't see Message class in the schema.

Please let me know what I am missing here.




camel zipfile memory based?

2015-12-03 Thread Wilson MacGyver
according to http://camel.apache.org/zip-dataformat.html

zip data format is memory based, ie, the entire file content is loaded into
the memory.


is this also true for

http://camel.apache.org/zip-file-dataformat.html

I don't see the same warning here.

Thanks,
Mac

-- 
Omnem crede diem tibi diluxisse supremum.


Re: Delete a file from route XML

2015-12-03 Thread anish.somadevan
Thanks for your reply Yogesh.

I would be creating a file in one of my route, and then want to delete it in
an another route. Would that be possible using the File component
delete=true?

Thanks,
Anish



--
View this message in context: 
http://camel.465427.n5.nabble.com/Delete-a-file-from-route-XML-tp5774626p5774650.html
Sent from the Camel - Users mailing list archive at Nabble.com.