このコンテンツは選択した言語では利用できません。

Chapter 6. Creating a New Camel XML file


Overview

Apache Camel stores routes in an XML file that contains a camelContext element. The tooling includes a wizard that simplifies adding an Apache Camel context file to your project. It creates a new XML file that has all of the required namespaces preconfigured and a template camelContext element.

Procedure

To add an Apache Camel context file to your project:
  1. Select File New Other... Fuse Tooling Camel XML File from the main menu to open the Camel XML File wizard, as shown in Figure 6.1, “Camel XML File wizard”.

    Figure 6.1. Camel XML File wizard

    Camel XML file wizard
  2. In RouteContainer, enter the location for the new file, or accept the default.
    You can click Browse... button to search for an appropriate location.
    Important
    The Spring framework and the OSGi Blueprint framework require that all Apache Camel files be placed in specific locations under the project's META-INF or OSGI-INF folder:
    • Spring—projectName /src/main/resources/META-INF/spring/
    • OSGi Blueprint—projectName /src/main/resources/OSGI-INF/blueprint/
  3. In File Name, enter a name for the new context file, or accept the default.
    The file's name cannot contain spaces or special characters, and it must be unique within the JVM.
  4. In Framework, accept the default, or select which framework the routes will use:
    • Spring—for routes that will be deployed in Spring containers, non-OSGi containers, or as standalone applications
    • OSGi Blueprint—for routes that will be deployed in OSGi containers
    • Routes—for routes that you can load and add into existing camelContexts
  5. Click Finish.
    The new context file is added to the project and opened in the route editor.

Related topics

New Camel XML File
Red Hat logoGithubRedditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

© 2024 Red Hat, Inc.