Camel Security Framework - ActiveMQ Store error

2014-01-07 Thread contactreji
Hi

I was trying to do some encryption exercises. Once the message is decrypted,
I am unable to store the result into a ActiveMQ Queue. 

Would be really helpful if someone can suggest a fix. The encryption and
decryption are successfully working.

My Camel Routes are as follows:

*


http://www.springframework.org/schema/beans";
xmlns:camel="http://camel.apache.org/schema/spring";
xmlns:crypt="http://springcryptoutils.com/schema/crypt";
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://springcryptoutils.com/schema/crypt
http://springcryptoutils.com/schema/crypt.xsd";>















http://camel.apache.org/schema/spring";>

























*



The Exception which is thrown with stack trace is as follows
*
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
details.
[INFO] Scanning for projects...
[INFO] 
[INFO]

[INFO] Building ActiveMQ embedded with Camel 1.0.0-SNAPSHOT
[INFO]

[INFO] 
[INFO] >>> camel-maven-plugin:2.10.0.redhat-60024:run (default-cli) @
camel-activemq >>>
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @
camel-activemq ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @
camel-activemq ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources
(default-testResources) @ camel-activemq ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @
camel-activemq ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] <<< camel-maven-plugin:2.10.0.redhat-60024:run (default-cli) @
camel-activemq <<<
[INFO] 
[INFO] --- camel-maven-plugin:2.10.0.redhat-60024:run (default-cli) @
camel-activemq ---
[INFO] Using org.apache.camel.spring.Main to initiate a CamelContext
[pache.camel.spring.Main.main()] MainSupportINFO  Apache
Camel 2.12.2 starting
[pache.camel.spring.Main.main()] ClassPathXmlApplicationContext INFO 
Refreshing
org.springframework.context.support.ClassPathXmlApplicationContext@de643a:
startup date [Wed Jan 08 12:11:20 IST 2014]; root of context hierarchy
[pache.camel.spring.Main.main()] XmlBeanDefinitionReaderINFO 
Loading XML bean definitions from file
[C:\Users\re267981\workspace\camel-security-exchangeEncryption\target\classes\META-INF\spring\camel-context.xml]
[pache.camel.spring.Main.main()] DefaultListableBeanFactory INFO 
Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@1007e44:
defining beans
[activemq,keyStore,secretKey,template,consumerTemplate,camel-1:beanPostProcessor,camel-1];
root of factory hierarchy
[pache.camel.spring.Main.main()] SpringCamelContext INFO  Apache
Camel 2.12.2 (CamelContext: camel-1) is starting
[pache.camel.spring.Main.main()] ManagedManagementStrategy  INFO  JMX is
enabled
[pache.camel.spring.Main.main()] DefaultTypeConverter   INFO  Loaded
179 type converters
[pache.camel.spring.Main.main()] SedaEndpoint   INFO 
Endpoint Endpoint[seda://decrypt] is using shared queue: seda://decrypt with
size: 2147483647
[pache.camel.spring.Main.main()] DefaultStreamCachingStrategy   INFO 
StreamCaching in use with spool directory:
C:\Users\re267981\AppData\Local\Temp\camel\camel-tmp-5b530a9c-5f14-4b36-bcd6-c5379d2fdc93
and rules: [Spool > 128K body size]
[   ActiveMQ Task-1] FailoverTransport  INFO 
Successfully connected to tcp://localhost:61620
[pache.camel.spring.Main.main()] SpringCamelContext INFO  Route:
route1 started

Re: Add date to logs

2014-01-07 Thread Satyam Maloo
Hi, Found out the solution

In org.ops4j.pax.logging.cfg (located at \jboss-fuse-6.0.0.redhat-024\etc\)

wherever you find 
*.ConversionPattern = %d{ABSOLUTE} 
use
*.ConversionPattern = %d{DATE}

You can also define your own custom pattern for date as %d{HH:mm:ss,SSS} or
%d{dd MMM  HH:mm:ss,SSS}



-
Satyam Maloo
--
View this message in context: 
http://camel.465427.n5.nabble.com/Add-date-to-logs-tp5745662p5745718.html
Sent from the Camel - Users mailing list archive at Nabble.com.


AW: What organizations are using Camel?

2014-01-07 Thread jhm
In my project we are using Camel to integrate several systems.
Here we have round about 10k users acting synchronously during work time
with 150k requests per day.
Also we have asynchronously work with round about 2.5M requests per month
(2M coming from batch jobs during 5 days).


Jan

> -Ursprüngliche Nachricht-
> Von: kraythe . [mailto:kray...@gmail.com]
> Gesendet: Dienstag, 7. Januar 2014 18:39
> An: Camel Users List
> Betreff: Re: What organizations are using Camel?
> 
> EA uses Camel for a number of things I am not at liberty to discuss.
> Some things I can talk about in general terms though. We process
> several thousand customer support cases using Camel routes. Also
> Comcast cable uses it to process Streaming Video On Demand (SVOD)
> content and is working to replace Tibco with camel. There are a number
> of other big organizations that use it. Anyone that is a customer of
> Talend or wants to switch off Tibco will be drawn towards camel. Camel
> and EIP is rapidly becommng the next big thing.
> 
> *Robert Simmons Jr. MSc. - Lead Java Architect @ EA* *Author of:
> Hardcore Java (2003) and Maintainable Java (2012)*
> *LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39
> *
> 
> 
> On Tue, Jan 7, 2014 at 6:08 AM, Claus Ibsen 
> wrote:
> 
> > Hi
> >
> > You can also find some organization names from presentations at the
> > CamelOne conferences, where some present their usage of Camel,
> > ActiveMQ, etc.
> > http://camelone.com/
> >
> >
> >
> > On Tue, Jan 7, 2014 at 12:31 PM, char_76 
> wrote:
> > > Hi all,
> > >
> > > Does anyone have a list of organizations that are using Camel in
> > Production?
> > > We are looking to recommend Camel to our Technical Design Authority
> > > and would be great if we were able to refer to a few other
> > > organizations (preferably large, well known) that are using Camel
> to
> > > support our recommendation.
> > >
> > > Appreciate there are lots of products built on top of Camel e.g.
> > > Fuse, Talend, http://camel.apache.org/user-stories.html
> > >
> > > Have also noted Red Hat have published some of their Fuse customers
> here:
> > > http://fusesource.com/community/fuse-customers/
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > http://camel.465427.n5.nabble.com/What-organizations-are-using-Camel-
> t
> > p5745667.html
> > > Sent from the Camel - Users mailing list archive at Nabble.com.
> >
> >
> >
> > --
> > Claus Ibsen
> > -
> > Red Hat, Inc.
> > Email: cib...@redhat.com
> > Twitter: davsclaus
> > Blog: http://davsclaus.com
> > Author of Camel in Action: http://www.manning.com/ibsen Make your
> > Camel applications look hawt, try: http://hawt.io
> >



Re: Camel cxf with basic authentication

2014-01-07 Thread Willem Jiang
It could be difficult to access the wsdl if you don’t setup the http conduit 
for it.

You can setup the by setting the CxfEndpoint property like this

CxfEndpoint cxfEndpoint = camelContext.getEndpoint(“cxf:xxx”);
// set the authentication information
Map properties = new HashMap();
  
org.apache.cxf.configuration.security.AuthorizationPolicy authPolicy = new 
AuthorizationPolicy();
authPolicy.setUserName(username);
authPolicy.setPassword(password);
properties.put(AuthorizationPolicy.class.getName(), authPolicy);

cxfEndpoint.setProperties(properties);    

from(“xxx”).to(cxfEndpoint);


--  
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: willemjiang  
Weibo: 姜宁willem



On January 7, 2014 at 7:10:44 PM, akshattandon (akshat@gmail.com) wrote:
>  
> Thanks Jiang for the response
>  
> can you please provide the java dsl code to achieve the same as  
> we don't use
> spring .
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-cxf-with-basic-authentication-tp5745620p5745666.html
>   
> Sent from the Camel - Users mailing list archive at Nabble.com.  
>  



Re: CXF : Camel 2.12.2 : Karaf 3.0.0 : Soap-Timeout

2014-01-07 Thread Willem Jiang
Hi Thomas,

If the route can work in Karaf 2.3.3 instead of Karaf 3.0.0.
I think it’s bug of PaxWeb which provide the Servlet OSGi service.


--  
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: willemjiang  
Weibo: 姜宁willem



On January 8, 2014 at 3:36:38 AM, Freihalter Thomas 
(thomas.freihal...@my-box.de) wrote:
>  
> Hello guys,
>  
> I am using Karaf 3.0.0 and Camel 2.12.2
>  
> If I send a Soap-Envelope to Jetty, the response
> contains a '8000' before the Soap-Envelope.
>  
> What does this mean and how can I avoid this?
> SoapUi (and my jQuery-Client) is running into timeout.
>  
> With Karaf 2.3.3 everything is okay (no '8000').
>  
> That's my route:
>  
>  
>  
>  
>  
> I guess this is related to the response-size, because a mirroring  
> response works (no '8000'):
>  
>  
>  
>  
>  
>  
> best regards
> Thomas
>  
>  
> SoapUi Http-Log:
>  
> >> "POST /cxf/XmlTransfer HTTP/1.1[\r][\n]"
> >> "Accept-Encoding: gzip,deflate[\r][\n]"
> >> "Content-Type: text/xml;charset=UTF-8[\r][\n]"
> >> "SOAPAction: ""[\r][\n]"
> >> "Content-Length: 846[\r][\n]"
> >> "Host: localhost:8181[\r][\n]"
> >> "Connection: Keep-Alive[\r][\n]"
> >> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"  
> >> "[\r][\n]"
> >> "> >> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";  
> >> xmlns:ns="http://xmltransfer.util.com";>[\n]" "
> >> [\n]" " [\n]" "
> >> [\n]" " ...[\n]"  
> >> " ?[\n]"
> >> " [\n]"
> >> " [\n]"
> >> " "
> << "HTTP/1.1 200 OK[\r][\n]"
> << "Content-Type: text/xml;charset=UTF-8[\r][\n]"
> << "Transfer-Encoding: chunked[\r][\n]"
> << "Server: Jetty(8.1.14.v20131031)[\r][\n]"
> << "[\r][\n]"
> << "8000[\r][\n]"
> << "> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>...  
> << ""  
> << "[\r][\n]"
>  
>  
>  



Camel - Salesforce example

2014-01-07 Thread kcs129
I'm looking for a good example of a Salesforce query using Camel in Java. 
I've been through the documentation and Camel source unit tests but have not
been successful pulling data from Salesforce.  The same query works fine
from Postman.  I'm able to submit records to Salesforce without an issues
using Camel.

This is the test case I've been trying.  I get an empty response from the
server.  Any tips or a good example of functional code is appreciated. 
Thanks.

@Test
public void testQuery() {
try {
salesforceComponent.start();
SalesforceEndpoint endpoint = (SalesforceEndpoint)
salesforceComponent.createEndpoint("query");
endpoint.getConfiguration().setSObjectQuery("select 
email from Contact");
Producer producer = endpoint.createProducer();
producer.start();
Exchange exchange = producer.createExchange();
producer.process(exchange);
SalesforceResponse response = 
SalesforceUtils.parseResponse(exchange);
System.out.println("Success: " + response.isSuccess());
System.out.println("Errors: " + response.getErrors());
System.out.println("ID: " + response.getId());
producer.stop();
} catch (Exception e) {
fail(e.getMessage());
}
}



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Salesforce-example-tp5745712.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Aggregation on Hazelcast SEDA component

2014-01-07 Thread btekab
have tried a couple of thing but it is still not working. Since the usage
looks very basic I am sure I must be missing something obvious. Is this the
right list to ask or is the hazelcast list the better option? Thanks 



--
View this message in context: 
http://camel.465427.n5.nabble.com/Aggregation-on-Hazelcast-SEDA-component-tp5745303p5745711.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Holding a value in camel blueprint

2014-01-07 Thread Claus Ibsen
Hi

You can always store values as properties on the exchange which will
be available there for the lifecycle of the exchange.

Then you can later get access to that property and store it somewhere
in the message body or as a header of the message, or what you want.

On Sun, Jan 5, 2014 at 3:21 AM, camel user  wrote:
> Greetings! I have a problem holding a value in camel blueprint. Please help 
> me resolve it
>
>
> For e.g., I have 2 to 3 routes,
> In my first route, I will hit a service URI and save the response xml from 
> the service in a property,say 'outputXML'.
>
> I want the outputXML to be available in all the other routes irrespective of 
> whether I hit another service URI or use XSLT in the succeeding routes.
>
> Thanks!



-- 
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io


Re: hwo to embed image in email

2014-01-07 Thread Claus Ibsen
Hi

I wonder if you need to use html content in your mail to attach images
inside the mail.

Search the web and places like SO you can find some details such as
http://stackoverflow.com/questions/6706891/embedding-image-in-html-email

On Tue, Jan 7, 2014 at 4:58 PM, nono  wrote:
> Below is example of my code , i want to embed logo.gif into email body.it
> does not work, it only attached logo as a file in emailCould anyone give me
> some hints? Thanks!class EmailProcessor implements Processor {@Override
> public void process(Exchange exchange) throws Exception {
> //exchange.getIn().setHeader("contentType", "image/gif");
> exchange.getIn().addAttachment("test_logic name.pdf", new DataHandler(new
> FileDataSource("target/test-classes/test .pdf")));
> exchange.getIn().addAttachment("logo.gif", new DataHandler(new
> FileDataSource("target/test-classes/logo.gif")));}}
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/hwo-to-embed-image-in-email-tp5745681.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io


Re: Camel Jetty Rest endpoints

2014-01-07 Thread Claus Ibsen
Hi

You can use matchOnUriPrefix=true. See more details at
http://camel.apache.org/jetty
http://camel.apache.org/how-do-i-let-jetty-match-wildcards.html

Though jetty wont auto map the context path to headers or something.
But you have access to the context-path in the camel message, so you
can figure out the order id etc.

On Tue, Jan 7, 2014 at 7:44 PM, cgsk  wrote:
> Hi There,
>
> Is it possible to expose a Jetty endpoint like a rest endpoint below with
> dynamic http path.
>
> http://localhost:8001/rest/oderservice/${orderId}/{en}
>
> Regards,
> cgsk
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-Jetty-Rest-endpoints-tp5745690.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io


CXF : Camel 2.12.2 : Karaf 3.0.0 : Soap-Timeout

2014-01-07 Thread Freihalter Thomas
Hello guys,

I am using Karaf 3.0.0 and Camel 2.12.2

If I send a Soap-Envelope to Jetty, the response
contains a '8000' before the Soap-Envelope.

What does this mean and how can I avoid this?
SoapUi (and my jQuery-Client) is running into timeout.

With Karaf 2.3.3 everything is okay (no '8000').

That's my route:

 
 


I guess this is related to the response-size, because a mirroring
response works (no '8000'):

 
 



best regards
Thomas


SoapUi Http-Log:

>> "POST /cxf/XmlTransfer HTTP/1.1[\r][\n]"
>> "Accept-Encoding: gzip,deflate[\r][\n]"
>> "Content-Type: text/xml;charset=UTF-8[\r][\n]"
>> "SOAPAction: ""[\r][\n]"
>> "Content-Length: 846[\r][\n]"
>> "Host: localhost:8181[\r][\n]"
>> "Connection: Keep-Alive[\r][\n]"
>> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
>> "[\r][\n]"
>> "> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
>> xmlns:ns="http://xmltransfer.util.com";>[\n]" "
>> [\n]" "   [\n]" "
>> [\n]" " ...[\n]"
>> " ?[\n]"
>> "  [\n]"
>> "   [\n]"
>> " "
<< "HTTP/1.1 200 OK[\r][\n]"
<< "Content-Type: text/xml;charset=UTF-8[\r][\n]"
<< "Transfer-Encoding: chunked[\r][\n]"
<< "Server: Jetty(8.1.14.v20131031)[\r][\n]"
<< "[\r][\n]"
<< "8000[\r][\n]"
<< "http://schemas.xmlsoap.org/soap/envelope/";>...
<< "" 
<< "[\r][\n]"




Camel Jetty Rest endpoints

2014-01-07 Thread cgsk
Hi There,

Is it possible to expose a Jetty endpoint like a rest endpoint below with
dynamic http path.

http://localhost:8001/rest/oderservice/${orderId}/{en}

Regards,
cgsk



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Jetty-Rest-endpoints-tp5745690.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Can I write a route that reads an arbitrary database table and stores it in a file?

2014-01-07 Thread Lothar Werzinger
Sorry for my late reply. I was quite busy.


On Mon, Jan 6, 2014 at 2:06 PM, Henryk Konsek  wrote:

> Hi Lothar,
>
> > I was hoping for some kind of dynamic route building that would allow me
> to
> > use the jdbc or sql component.
>
> In general dynamic endpoint specification can be achieved via
> Recipient List [1] EIP. You can use singleton list to create "dynamic"
> endpoint.
>
> The problem is that both SQL [2] and JDBC [3] components require you
> to specify the DataSource instance in the registry, so you need to
> specify them upfront and put into registry.
>

That is exactly why  asked the question ;-)


> BTW Why do you pass DB coordinates and credentials as the message?
> This is pretty unusual, to be honest. :)
>

I agree it is.

The use case is regression testing.

I want to write a generic route that dumps a table to a file, so that it
can be automatically compared to an already stored file.
The user of the route (a regression test route) would simply pass in the
database connection information, the table name and the name of the stored
file to compare against.

The "test framework" needs to be generic and can not know beforehand what
db connections the actual test will need to use.

Cheers.
>
> [1] http://camel.apache.org/recipient-list.html
> [2] http://camel.apache.org/sql-component.html
> [3] http://camel.apache.org/jdbc
>
> --
> Henryk Konsek
> http://henryk-konsek.blogspot.com
>



-- 

Lothar Werzinger

Principal Architect

Tradescape, Inc. - Enabling Efficient Digital Marketplaces

+1-650-931-6719 (direct)

+1-800-697-6068 (main) Ext. 116

lot...@tradescape.biz

http://www.tradescape.biz

-- 


This message and any attachment (the "message") is intended solely for the 
addressees and is confidential. If you receive this message by mistake, 
please delete it and notify the sender immediately. Any use not 
in accordance with its purpose, any out-spread or disclosure, either as a 
whole or partially, is prohibited except with formal approval. Internet 
cannot guarantee the integrity of this message, therefore Tradescape will 
not be liable for the message if modified.

-


Re: Holding a value in camel blueprint

2014-01-07 Thread cameluser2014
Any help? 



--
View this message in context: 
http://camel.465427.n5.nabble.com/Holding-a-value-in-camel-blueprint-tp5745558p5745688.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Multicast EIP - Camel Blueprint

2014-01-07 Thread cameluser2014
Please help! 



--
View this message in context: 
http://camel.465427.n5.nabble.com/Multicast-EIP-Camel-Blueprint-tp5745559p5745687.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Appending value to XML - Camel Blueprint

2014-01-07 Thread cameluser2014
Any help?  Thanks! 



--
View this message in context: 
http://camel.465427.n5.nabble.com/Appending-value-to-XML-Camel-Blueprint-tp5745560p5745686.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: ActiveMQ processing

2014-01-07 Thread kraythe .
Write two routes: one that writes to a JMS queue and one that picks up data
off the queue and processes it:

from("direct:input").to("activemq:queue:inbox");
from("activemq:queue:inbox").  .
to("activemq:queue:results");

This manner you can shove data in as fast as you want and even have
concurrent consumers of the inbox queue that will parallel process the
input data. At the same time you can have your results queue. You can then,
if you wish, process that queue for reporting and so on.

*Robert Simmons Jr. MSc. - Lead Java Architect @ EA*
*Author of: Hardcore Java (2003) and Maintainable Java (2012)*
*LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39
*


On Tue, Jan 7, 2014 at 7:18 AM, jamalissimo  wrote:

> Hi hekonsek,
>
> I know that I will get the result when the request is solved in queue, but
> for example, when I am processing big amount of data, I don't want to wait
> 20 seconds. I can use "to("direct:foo")" for this purpose. I just want add
> the requests to the queue and return result right away(like processing data
> in progress), and all work would be done in background. Hope you know what
> I
> mean :-)
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/ActiveMQ-processing-tp5745652p5745676.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>


Re: Stream consuming in Camel

2014-01-07 Thread kraythe .
You could write your own consumer to do this if you wanted and nothing else
fit. Camel is very extensible so it allows you to do custom things and
transparently marry those things with EIP and camel routes.

*Robert Simmons Jr. MSc. - Lead Java Architect @ EA*
*Author of: Hardcore Java (2003) and Maintainable Java (2012)*
*LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39
*


On Tue, Jan 7, 2014 at 6:10 AM, Chirag Dewan wrote:

> Hi All,
>
> I am using Apache Camel 2.12.1. I have a use case where one of my thread
> is outputting data to a stream. I need a camel consumer which consumes this
> stream from that thread and produces a file using camel-file or camel-ftp.
>
> Looking at the components,I wonder what I can effectively use here? One
> way I can think of is using a producer template,which might be sending the
> stream of data to a queue consumer like SEDA or Disruptor and in turn use a
> file or ftp producer.
>
> I am not sure I got that right. Any other way I can consume Streams here?
>
> Any help will be appreciated.
>
> Thanks.
>
> CD


Re: What organizations are using Camel?

2014-01-07 Thread kraythe .
EA uses Camel for a number of things I am not at liberty to discuss. Some
things I can talk about in general terms though. We process several
thousand customer support cases using Camel routes. Also Comcast cable uses
it to process Streaming Video On Demand (SVOD) content and is working to
replace Tibco with camel. There are a number of other big organizations
that use it. Anyone that is a customer of Talend or wants to switch off
Tibco will be drawn towards camel. Camel and EIP is rapidly becommng the
next big thing.

*Robert Simmons Jr. MSc. - Lead Java Architect @ EA*
*Author of: Hardcore Java (2003) and Maintainable Java (2012)*
*LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39
*


On Tue, Jan 7, 2014 at 6:08 AM, Claus Ibsen  wrote:

> Hi
>
> You can also find some organization names from presentations at the
> CamelOne conferences, where some present their usage of Camel,
> ActiveMQ, etc.
> http://camelone.com/
>
>
>
> On Tue, Jan 7, 2014 at 12:31 PM, char_76  wrote:
> > Hi all,
> >
> > Does anyone have a list of organizations that are using Camel in
> Production?
> > We are looking to recommend Camel to our Technical Design Authority and
> > would be great if we were able to refer to a few other organizations
> > (preferably large, well known) that are using Camel to support our
> > recommendation.
> >
> > Appreciate there are lots of products built on top of Camel e.g. Fuse,
> > Talend, http://camel.apache.org/user-stories.html
> >
> > Have also noted Red Hat have published some of their Fuse customers here:
> > http://fusesource.com/community/fuse-customers/
> >
> >
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/What-organizations-are-using-Camel-tp5745667.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -
> Red Hat, Inc.
> Email: cib...@redhat.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
> Make your Camel applications look hawt, try: http://hawt.io
>


hwo to embed image in email

2014-01-07 Thread nono
Below is example of my code , i want to embed logo.gif into email body.it
does not work, it only attached logo as a file in emailCould anyone give me
some hints? Thanks!class EmailProcessor implements Processor {@Override   
public void process(Exchange exchange) throws Exception {   
//exchange.getIn().setHeader("contentType", "image/gif");   
exchange.getIn().addAttachment("test_logic name.pdf", new DataHandler(new
FileDataSource("target/test-classes/test .pdf")));   
exchange.getIn().addAttachment("logo.gif", new DataHandler(new
FileDataSource("target/test-classes/logo.gif")));}}



--
View this message in context: 
http://camel.465427.n5.nabble.com/hwo-to-embed-image-in-email-tp5745681.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Message Attachment order

2014-01-07 Thread rdehuyss
Wauw, you guys are fast with accepting patches!

And thx for an awesome framework!


On Mon, Jan 6, 2014 at 10:33 PM, Ronald Dehuysser <
ronald.dehuys...@gmail.com> wrote:

> Hi Claus,
>
> Jira CAMEL-7109 with patch attached was created.
>
> Kind regards,
> R
>
>
> On Sun, Jan 5, 2014 at 1:16 PM, Claus Ibsen-2 [via Camel] <
> ml-node+s465427n5745564...@n5.nabble.com> wrote:
>
>> Hi
>>
>> Yeah well spotted, a good idea to use a linked so the order is preserved.
>>
>> Not sure if the attachments api has any hint to indicate ordering.
>> Maybe some unique id of the attachment, many be used as workaround in
>> current Camel version.
>>
>> Though fell free to log a JIRA, and as we love contributions you are
>> welcome to work on a patch also.
>> http://camel.apache.org/contributing.html
>>
>> On Sun, Jan 5, 2014 at 1:04 PM, rdehuyss <[hidden 
>> email]>
>> wrote:
>>
>> > Hi all,
>> >
>> > for a project I'm working on where mail attachments are retrieved from
>> a
>> > gmail account, the order of the attachments is very important.
>> >
>> > In Camel, I use a SplitAttachmentsExpression to split all the
>> attachments
>> > and process them sequentially.
>> >
>> > However, I saw that the method createAttachments in DefaultMessage is
>> using
>> > a plain old HashMap, thus resulting in a random order of the
>> attachments. If
>> > this would be a LinkedHashMap, the order of the messages would be
>> assured
>> > when processing in Camel.
>> >
>> > Am I the first one bumping into this? Should I create a Jira ticket?
>> >
>> > Thx a lot,
>> > Ronald
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://camel.465427.n5.nabble.com/Camel-Message-Attachment-order-tp5745563.html
>> > Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
>>
>> --
>> Claus Ibsen
>> -
>> Red Hat, Inc.
>> Email: [hidden email]
>> Twitter: davsclaus
>> Blog: http://davsclaus.com
>> Author of Camel in Action: http://www.manning.com/ibsen
>> Make your Camel applications look hawt, try: http://hawt.io
>>
>>
>> --
>>  If you reply to this email, your message will be added to the
>> discussion below:
>>
>> http://camel.465427.n5.nabble.com/Camel-Message-Attachment-order-tp5745563p5745564.html
>>  To unsubscribe from Camel Message Attachment order, click 
>> here
>> .
>> NAML
>>
>
>




--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Message-Attachment-order-tp5745563p5745680.html
Sent from the Camel - Users mailing list archive at Nabble.com.

BUG: Stack Overflow with long recipient list using default delimiter.

2014-01-07 Thread pmcb55
Hi,

The JUnit test below illustrates a Stack Overflow bug when using a long
recipient list with the default delimiter (a comma).

The overflow is caused by a regex (",(?!(?:[^\\(,]|[^\\)],[^\\)])+\\))") in
the 'createIterator()' method in the class
'org.apache.camel.util.ObjectHelper', which is used to iterate a recipient
list while handling bean expressions with OGNL.

The problem is that this complex regex is used *by default* with recipient
lists, and if that list is long, it will stack overflow.

Thankfully the work-around we use is trivial - we simply use ", " as the
delimiter (note the space), and this bypasses using the regex and so
everything works fine (illustrated in the Junit test too) - but ultimately I
think the regex needs to be re-worked to not overflow on long lists.

Here's the simple failing JUnit test:


import junit.framework.Assert;

import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.impl.DefaultCamelContext;
import org.apache.camel.impl.DefaultExchange;
import org.junit.Test;

public class LongRecipientListTest {
static int recipientCount = 0;


/**
 * 
 */
@Test
public void stackOverflowWithLongRecipientListAndDefaultDelimiter()
throws Exception {
DefaultCamelContext camelContext = new DefaultCamelContext();

StringBuilder buffer = new StringBuilder("direct://long-uri/");
for (int i=0; i < 100; i++) {
buffer.append("123456789/");
}
final String longUri = buffer.toString();


camelContext.addRoutes(new RouteBuilder() {
@Override
public void configure() throws Exception {
from("direct://defaultDelimiter")
.recipientList(header("X-Test")).parallelProcessing();

from("direct://customDelimiter")
.recipientList(header("X-Test")).parallelProcessing()
.delimiter(", ");

from(longUri).process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception
{
recipientCount++;
}
});
}
});

camelContext.start();

int sendCount = 100;
StringBuilder buffer2 = new StringBuilder(longUri);
for (int i=0; i < (sendCount - 1); i++) {
buffer2.append(", ").append(longUri);
}

final DefaultExchange exchange = new DefaultExchange(camelContext);
exchange.getIn().setHeader("X-Test", buffer2.toString());

recipientCount = 0;
   
camelContext.createProducerTemplate().send("direct://customDelimiter",
exchange);
*Assert.assertEquals(sendCount, recipientCount);  // PASSES*

recipientCount = 0;
   
camelContext.createProducerTemplate().send("direct://defaultDelimiter",
exchange);
*Assert.assertEquals(sendCount, recipientCount);  // FAILS!*
}
}




--
View this message in context: 
http://camel.465427.n5.nabble.com/BUG-Stack-Overflow-with-long-recipient-list-using-default-delimiter-tp5745679.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Add SOAP header into spring-ws route

2014-01-07 Thread horyna
And me answer:

messageFilter for SpringWebserviceComponent was sets to custom
implementation, with does not support storing values into Soap header



--
View this message in context: 
http://camel.465427.n5.nabble.com/Add-SOAP-header-into-spring-ws-route-tp5745673p5745678.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: ActiveMQ processing

2014-01-07 Thread jamalissimo
Hi hekonsek,

I know that I will get the result when the request is solved in queue, but
for example, when I am processing big amount of data, I don't want to wait
20 seconds. I can use "to("direct:foo")" for this purpose. I just want add
the requests to the queue and return result right away(like processing data
in progress), and all work would be done in background. Hope you know what I
mean :-)



--
View this message in context: 
http://camel.465427.n5.nabble.com/ActiveMQ-processing-tp5745652p5745676.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: ActiveMQ processing

2014-01-07 Thread Henryk Konsek
> If you are not using InOnly pattern

If you *are* using InOnly pattern


Re: ActiveMQ processing

2014-01-07 Thread Henryk Konsek
Hi Roman,

> I simply need to send request to add user and immediately
> receive response that it was added in the queue and is being processed

Your route seems to do it :) . If you are not using InOnly pattern
(just as you do), Camel will proceed to bean:response as soon as the
JMS message will be sent to the queue.

Why do you think it is not working as you expected?

Cheers.

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com


Add SOAP header into spring-ws route

2014-01-07 Thread horyna
Hi,

i have route below and no idea how to add SOAP Header into response. Any
help pls.?

from("spring-ws:rootqname:" +new QName(MM7_VF_NS, "DeliverReq") +
"?endpointMapping=#endpointMapping")
   .unmarshal(jaxb(DeliverReqType.class, new QName(MM7_VF_NS,
"DeliverReq")))
   .beanRef(ROUTE_BEAN, "createResponseForDeliverReq")
   .marshal(jaxb(DeliverRspType.class, new QName(MM7_VF_NS,
"DeliverRsp")));



--
View this message in context: 
http://camel.465427.n5.nabble.com/Add-SOAP-header-into-spring-ws-route-tp5745673.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Need for XA?

2014-01-07 Thread Henryk Konsek
> I meant XA processing

Switching from local transactions to XA in Camel is not really
complicated. All you have to do is switching your connection factories
and transaction manager to XA-aware ones. And of course making sure
that you don't have certain options enabled on Camel endpoints (like
JMS consumer caching or transaction timeout).

Here [1] is the documentation from Fuse team related to XA. Here [2]
is the example from Torsten Mielke (fellow of mine from Red Hat). I
think that Christian Mueller also covers XA in his examples [3] from
the Apache Conf. At last but not least, there is a section related to
XA in Camel Bible [4].

I'm also working on the Pax Exam based XA demo making use of Aries JTA
[5] support. I'll publish it on the GitHub when it is done.

Cheers.

[1] 
https://access.redhat.com/site/documentation/en-US/Fuse_ESB_Enterprise/7.1/html/EIP_Transaction_Guide/files/XaJms-Overview.html
[2] https://github.com/tmielke/fuse-demos/tree/master/Camel/Camel-JMS-JDBC-XA-TX
[3] https://github.com/muellerc/camel-in-transaction
[4] 
http://www.amazon.co.uk/Camel-Action-Claus-Ibsen/dp/1935182366/ref=sr_1_1?ie=UTF8&qid=1389097895&sr=8-1&keywords=camel+in+action
[5] http://aries.apache.org/modules/transactionsproject.html

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com


Re: Asynchronous processing of routes

2014-01-07 Thread Henryk Konsek
> Correct me if I am wrong. Camel will correlate the response if the other
> service sends back the response with the same correlation ID as was sent to
> it in the Request.
> In our case, the other services are third-party C++ services which work
> directly with MQ and do not use Camel.

Reply correlation Id is not a Camel-specific feature. This is standard
JMS goodie, so if your C++ broker is JMS-compilant it should set the
proper correlation ID.

If for some reason your C++ broker doesn't set JMS correlation ID
properly, you can use exclusive reply queue with JMS producer (just as
demonstrated on the snippet below) - in such case no selectors on the
correlation ID will be used.

from("direct:Q").to("jms:foo?replyTo=Qresponse&replyToType=Exclusive);

I highly recommend reading Camel JMS component documentation page [1]
as it covers RequestReplay communication with Camel in a details.

Cheers.

[1] http://camel.apache.org/jms

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com


Stream consuming in Camel

2014-01-07 Thread Chirag Dewan
Hi All,

I am using Apache Camel 2.12.1. I have a use case where one of my thread is 
outputting data to a stream. I need a camel consumer which consumes this stream 
from that thread and produces a file using camel-file or camel-ftp.

Looking at the components,I wonder what I can effectively use here? One way I 
can think of is using a producer template,which might be sending the stream of 
data to a queue consumer like SEDA or Disruptor and in turn use a file or ftp 
producer. 

I am not sure I got that right. Any other way I can consume Streams here?

Any help will be appreciated.

Thanks.

CD

AW: Add date to logs

2014-01-07 Thread jhm
Because the log-component delegates to an underlying logging framework using
sl4j, it should be possible to change the log format of that underlying
logger.


Jan


/log4j.properties


log4j.appender.camel=org.apache.log4j.ConsoleAppender
log4j.appender.camel.layout=org.apache.log4j.PatternLayout
log4j.appender.camel.layout.ConversionPattern=%d %-5p %-30.30c{1} - %m%n
log4j.logger.de.materne.camel.log=DEBUG

-

public class LogTest extends CamelTestSupport {

@Test
public void log() {
template.sendBody("direct:in", "Test message");
}

@Override
protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
from("direct:in")
.to("log:de.materne.camel.log")
.to("mock:end");
}
};
}

}

> -Ursprüngliche Nachricht-
> Von: Reji Mathews [mailto:contactr...@gmail.com]
> Gesendet: Dienstag, 7. Januar 2014 11:54
> An: users@camel.apache.org
> Betreff: Re: Add date to logs
> 
> Hi Satyam. Probably you can use Camel Simple (Refer on
> http://camel.apache.org/simple.html) . You can embed the date function
> into the camel log string
> 
> 
> On Tue, Jan 7, 2014 at 3:03 PM, Satyam Maloo 
> wrote:
> 
> > Hi,
> >
> > Currently I am logging the operations as :
> >
> >  > />
> >
> > Now, I want to add date to log. How do I do that?
> >
> >
> >
> > -
> > Satyam A Maloo
> > --
> > View this message in context:
> > http://camel.465427.n5.nabble.com/Add-date-to-logs-tp5745662.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
> >



Re: What organizations are using Camel?

2014-01-07 Thread Claus Ibsen
Hi

You can also find some organization names from presentations at the
CamelOne conferences, where some present their usage of Camel,
ActiveMQ, etc.
http://camelone.com/



On Tue, Jan 7, 2014 at 12:31 PM, char_76  wrote:
> Hi all,
>
> Does anyone have a list of organizations that are using Camel in Production?
> We are looking to recommend Camel to our Technical Design Authority and
> would be great if we were able to refer to a few other organizations
> (preferably large, well known) that are using Camel to support our
> recommendation.
>
> Appreciate there are lots of products built on top of Camel e.g. Fuse,
> Talend, http://camel.apache.org/user-stories.html
>
> Have also noted Red Hat have published some of their Fuse customers here:
> http://fusesource.com/community/fuse-customers/
>
>
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/What-organizations-are-using-Camel-tp5745667.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io


What organizations are using Camel?

2014-01-07 Thread char_76
Hi all,

Does anyone have a list of organizations that are using Camel in Production?
We are looking to recommend Camel to our Technical Design Authority and
would be great if we were able to refer to a few other organizations
(preferably large, well known) that are using Camel to support our
recommendation. 

Appreciate there are lots of products built on top of Camel e.g. Fuse,
Talend, http://camel.apache.org/user-stories.html

Have also noted Red Hat have published some of their Fuse customers here:
http://fusesource.com/community/fuse-customers/







--
View this message in context: 
http://camel.465427.n5.nabble.com/What-organizations-are-using-Camel-tp5745667.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel cxf with basic authentication

2014-01-07 Thread akshattandon
Thanks Jiang for the response 

can you please provide the java dsl code to achieve the same as we don't use
spring . 



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-cxf-with-basic-authentication-tp5745620p5745666.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel RemoteFilePollingConsumerPollStrategy and retry

2014-01-07 Thread geppo
Thank you!



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-RemoteFilePollingConsumerPollStrategy-and-retry-tp5745503p5745665.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Add date to logs

2014-01-07 Thread Reji Mathews
Hi Satyam. Probably you can use Camel Simple (Refer on
http://camel.apache.org/simple.html) . You can embed the date function into
the camel log string


On Tue, Jan 7, 2014 at 3:03 PM, Satyam Maloo  wrote:

> Hi,
>
> Currently I am logging the operations as :
>
>  />
>
> Now, I want to add date to log. How do I do that?
>
>
>
> -
> Satyam A Maloo
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Add-date-to-logs-tp5745662.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>


Re: StackTraceElement using heap.

2014-01-07 Thread tkvarenes
Hi.

doing a heap dump with 20 minutes time between shows me that instances of
these classes are increasing:
org.apache.cxf.common.i18n.Message
org.apache.cxf.interceptor.Fault
org.apache.cxf.jaxws.context.WrappedMessageContext


The other classes that are increasing are mainly standard java classes.

Is it possible in the heap dump to see what is referencing an instance?


/Trond



--
View this message in context: 
http://camel.465427.n5.nabble.com/StackTraceElement-using-heap-tp5745623p5745663.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Add date to logs

2014-01-07 Thread Satyam Maloo
Hi,

Currently I am logging the operations as :



Now, I want to add date to log. How do I do that?



-
Satyam A Maloo
--
View this message in context: 
http://camel.465427.n5.nabble.com/Add-date-to-logs-tp5745662.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: multicast aggregation

2014-01-07 Thread Claus Ibsen
Hi

Yeah its a little bug. I have reproduced the problem and working on a fix.
https://issues.apache.org/jira/browse/CAMEL-7111

On Mon, Jan 6, 2014 at 12:13 PM, Minh Tran  wrote:
> I am using 2.12.2.
>
> On 06/01/2014, at 6:42 PM, Claus Ibsen  wrote:
>
>> What version of Camel do you use?
>>
>> On Mon, Jan 6, 2014 at 12:03 AM, Minh Tran  wrote:
>>> Hi all
>>>
>>> I'm currently using multicast in my route with an aggregation strategy and 
>>> I'm finding that if my multicast only has one route defined in it, then my 
>>> aggregation strategy is never called. Is this expected behaviour? I would 
>>> have expected the first call to the aggregation strategy to occur with the 
>>> newExchange being null.
>>>
>>> eg
>>> … multicast(myStrategy).to("direct:foo", "direct:bar").end()
>>> myStrategy is called, however
>>>
>>> … multicast(myStrategy).to("direct:foo").end()
>>> myStrategy is never called
>>>
>>> Admittedly there's no point having a multicast if it only goes to one route 
>>> but I am putting this in place because I am expecting to add extra routes 
>>> in the future to the multicast.
>>>
>>> Thanks
>>>
>>
>>
>>
>> --
>> Claus Ibsen
>> -
>> Red Hat, Inc.
>> Email: cib...@redhat.com
>> Twitter: davsclaus
>> Blog: http://davsclaus.com
>> Author of Camel in Action: http://www.manning.com/ibsen
>> Make your Camel applications look hawt, try: http://hawt.io
>



-- 
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io


Re: Camel RemoteFilePollingConsumerPollStrategy and retry

2014-01-07 Thread Claus Ibsen
Then you can stop the consumer in the rollback method when you want to "give up"

On Mon, Jan 6, 2014 at 6:23 PM, geppo  wrote:
> yes
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-RemoteFilePollingConsumerPollStrategy-and-retry-tp5745503p5745634.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io


Re: StackTraceElement using heap.

2014-01-07 Thread Claus Ibsen
On Mon, Jan 6, 2014 at 4:11 PM, tkvarenes  wrote:
> Hi,
>
> I use camel 2.11.1
>
> It's not that the stack traces elements are any longer than usual, but I
> would expect them not to be referenced any more so the GC could remove them,
> but to me it seems like something is still holding a refence to them since
> they show up on the heap dump.
>

Yeah must be something else holding a reference to something that
likely could have been applicable for GC.
Can you dive into a heap dump to see "what is being held in memory" ?



> I get a lot of these stack traces because I have a reconnection every
> second, so there is a new stack trace shown in the log every other second.
>
>
> Don't know if it helps, but here is the stack trace:
> 2013-12-18 00:00:00,525 WARN  {Camel (smsGatewayCamelContext) thread #130 -
> JmsConsumer[CRM.DN]} [org.apache.cxf.phase.PhaseInterceptorChain]:
> Interceptor for
> {http://localhost/services/crm/receive}Service#{http://localhost/services/crm/receive}ReceiveDeliveryNotification
> has thrown exception, unwinding now
> org.apache.cxf.interceptor.Fault: Could not send Message.
> at
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
> ~[cxf-api-2.7.5.jar:2.7.5]
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
> ~[cxf-api-2.7.5.jar:2.7.5]
> at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:530)
> ~[cxf-api-2.7.5.jar:2.7.5]
> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:456)
> ~[cxf-api-2.7.5.jar:2.7.5]
> at
> org.apache.camel.component.cxf.CxfProducer.process(CxfProducer.java:112)
> ~[camel-cxf-2.11.1.jar:2.11.1]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)
> ~[camel-core-2.11.1.jar:2.11.1]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:56)
> ~[camel-core-2.11.1.jar:2.11.1]
> at
> org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:122)
> ~[camel-core-2.11.1.jar:2.11.1]
> at
> org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:298)
> ~[camel-core-2.11.1.jar:2.11.1]
> at
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:117)
> ~[camel-core-2.11.1.jar:2.11.1]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)
> ~[camel-core-2.11.1.jar:2.11.1]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:56)
> ~[camel-core-2.11.1.jar:2.11.1]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
> ~[camel-core-2.11.1.jar:2.11.1]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
> ~[camel-core-2.11.1.jar:2.11.1]
> at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
> ~[camel-core-2.11.1.jar:2.11.1]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)
> ~[camel-core-2.11.1.jar:2.11.1]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:56)
> ~[camel-core-2.11.1.jar:2.11.1]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
> ~[camel-core-2.11.1.jar:2.11.1]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
> ~[camel-core-2.11.1.jar:2.11.1]
> at
> org.apache.camel.processor.interceptor.BacklogTracerInterceptor.process(BacklogTracerInterceptor.java:84)
> ~[camel-core-2.11.1.jar:2.11.1]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)
> ~[camel-core-2.11.1.jar:2.11.1]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:56)
> ~[camel-core-2.11.1.jar:2.11.1]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
> ~[camel-core-2.11.1.jar:2.11.1]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
> ~[camel-core-2.11.1.jar:2.11.1]
> at
> org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:91)
> ~[camel-core-2.11.1.jar:2.11.1]
> at
> org.apache.camel.processor.interceptor.HandleFaultInterceptor.process(HandleFaultInterceptor.java:41)
> ~[camel-core-2.11.1.jar:2.11.1]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)
> ~[camel-core-2.11.1.jar:2.11.1]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:56)
> ~[camel-core-2.11.1.jar:2.11.1]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
> ~[camel-core-2.