aspose file tools*
The moose likes Other Application Frameworks and the fly likes Camel in Action question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Camel in Action question" Watch "Camel in Action question" New topic
Author

Camel in Action question

gaurav awasthi
Greenhorn

Joined: Nov 29, 2008
Posts: 9
Hi,

Congratulations Claus Ibsen and Jonathan Anstey for getting this book on paper. Camel is a framework which is truly a pleasure to work on. And it must be a very enjoyable exercise for you guys to theorize different aspects of it.

My question: While I was implementing an eventing API for an Enterprise Repository using asynchronous messaging as a transport, I faced multitude of issues related in writing Integration Tests using constructs in Camel Asynch API. Does the book cover the testing aspects for asynchronous messaging in depth? Secondly, are there any scenarios discussed in the book that caters to any similar testing reqmt as above?

Thanks very much.
Looking fwd to reading the book asap.

Best Wishes,
Gaurav Awasthi
Claus Ibsen
author
Greenhorn

Joined: Apr 01, 2004
Posts: 18
The source code for the book is 95% unit tests so there are plenty of testing examples.

Chapter 10 covers asynchronous routing and the source code shows some unit tests with that.
Chapter 6 covers testing and also integration testing.

Integration testing is of course more complex than unit testing as it often involves real live system you test against.

Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus
gaurav awasthi
Greenhorn

Joined: Nov 29, 2008
Posts: 9
Thanks Claus.
True, Integration tests, particularly in asynch scenarios many a times, have to resort to thread wait/notify or similar inter-thread communication solutions but with it there is always risk of missing messages in case of multiple routes, messages, predicates. Not sure if the new version of Camel is catering to any specific constructs so required in this area.

Thanks
Gaurav
Claus Ibsen
author
Greenhorn

Joined: Apr 01, 2004
Posts: 18
The Camel book also explains the NotifyBuilder which you can use in testing, in those async integration scenarios.
http://camel.apache.org/notifybuilder.html

Then you can use the notify builder to know when X number of messages has been processed or the likes.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Camel in Action question