English 中文(简体)
我怎么能通过帕帕帕奇·卡迈勒援引一项教育性服务?
原标题:How can I invoke a RESTful service through Apache Camel?

我目前正在使用吉大港山区办法,以援引某些URL,这将产生一个联合执行认证的问题。

现在我想使用帕帕奇·卡迈勒,我如何利用?

我需要通过Camel援引以下联系:

http://localhost:8080/rest/api/2/project/" + key + /components

由于我对Camel说了新话,请提出一些解决办法和实例。

成就

最佳回答
问题回答

See also this FAQ about using dynamic to endpoints in Camel http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html

基本上,这一计划模式是受援国名单。

因此,在您的情形下,也可将其简化为一项EIP。

<recipientList>
  <simple>http://localhost:8080/rest/api/2/project/${header.myKey}/components</simple>
</recipientList>

在Camel的“http://www.un.org”。 如果你想请求/重复处理吉大港山区问题,避免在等待答复信息时设置警钟,那么你就可以从Camel使用其他吉大港山区部分,例如:

  • camel-ahc
  • camel-http4
  • camel-jetty

我正在使用喷 式喷气机。

CamelContext context = new DefaultCamelContext();
    public void configure(){
           context.addRoutes(new RouteBuilder(){
           from("jetty:localhost:9000/offers")
           .to("direct:getOffers")
           .end();

    }

});

http:// localhost:9000/offers'rel=“nofollow”http:// localhost:9000/offers。 之后,终点直接:目标 申请

因此,现在就界定 get点

context.addRoutes(new RouteBuilder(){
     public void configure(){
          from("direct:getOffers")
          .to("jetty:http://localhost:9008/api/v2.0/offers?  
          bridgeEndpoint=true")
         .end();

     }

});

Here another service is running at 9008 having a rest resource of http://localhost:9008/api/v2.0/offers and this is the resource that i am trying to consume.

因此,当 came开始登记这两个路线时,就如上所述,进行处理。

说明 重要的是,为这项工作增加选择?bridgeEndpoint=true。

您可使用<条码>CXFRS 部分从 came中消费教育、科学和技术服务。 阿帕奇多尔对此有足够的信息。

rel=“nofollow>http://camel.apache.org/cxfrs.html





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签