camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raul Kripalani <r...@evosent.com>
Subject Re: How to Give any java application as a end point in from (....)
Date Sun, 01 Sep 2013 20:20:50 GMT
In a SOA-based solution, the middleware implemented by Camel would expose a
service over a standard transport/protocol like HTTP (SOAP or REST), JMS,
TCP, etc. This interface would ideally be driven by a contract.

Your producer application would then send messages via this transport to
the Camel-based integration middleware.

This is what I recommend, rather than binding the original application to
the Camel APIs. We offer 120+ adapters in the form of Camel Components to
build external interfaces, so you have huge variety to build the least
costly, most optimal communication channel in all cases.

Regards,

*Raúl Kripalani*
Apache Camel PMC Member & Committer | Enterprise Architect, Open Source
Integration specialist
http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani
http://blog.raulkr.net | twitter: @raulvk

On Fri, Aug 30, 2013 at 6:22 PM, jhonny <writedeshmukh@live.com> wrote:

> 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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message