Hi,
Am Novice to Camel.
I had a java application which continuously produces the messages, i can get
this messages by implementing the one of the method [getMEssages()] in my
main class , my code looks like below
public class StandAloneCameClass implements MessageProducer {
public static void main(String args[]) throws Exception {
CamelContext context = new DefaultCamelContext();
context.addRoutes(new RouteBuilder() {
@Override
public void configure() throws Exception {
from(?????????????).process(MyProcessorInstance);
}
});
context.start();
Thread.sleep(10000);
context.stop();
}
@Override
public void getMessages(String s) throws Exception {
// here am getting/received messages , which need to pass
// to processor
}
}
I want to make this getMessages() as endpoint and need to pass this in from
(??????????) .
can some one guide me on this , how should i proceed ?
--
View this message in context:
http://camel.465427.n5.nabble.com/How-to-Give-any-java-application-as-a-end-point-in-from-tp5738327.html
Sent from the Camel - Users mailing list archive at Nabble.com.