aspose file tools*
The moose likes Spring and the fly likes Invoking a Camel end point deployed in remote Server from JUnit test case 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 » Spring
Bookmark "Invoking a Camel end point deployed in remote Server from JUnit test case" Watch "Invoking a Camel end point deployed in remote Server from JUnit test case" New topic
Author

Invoking a Camel end point deployed in remote Server from JUnit test case

Tatha Roy
Greenhorn

Joined: Oct 28, 2010
Posts: 3
Hi All, I am a newbie in Camel and have to deliver a module in a very short notice. You know how it is .My question may be a very basic question but i would really appreciate if someone could guide me on it. The requirement is to invoke a camel endpoint service deployed in a tomcat server from a junit test case. The Service has been injected with the CamelContext and it has got a set of exposed methods which needs to be called.We are using Spring 2.5 and Camel 2 in our project. The Spring config is below



what i am not able to find is how can we call the end point uri direct:dispatcherChannel deployed in a tomcat server (http://someIP:8080) from a junit which uses spring configuration. Can some one please help me. Thanking all in advance. Thanks tatha
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Invoking a Camel end point deployed in remote Server from JUnit test case