검색

이 콘텐츠는 선택한 언어로 제공되지 않습니다.

Chapter 11. Creating a New Camel XML file

download PDF

Overview

Apache Camel stores routes in an XML file that contains a camelContext element. When you create a new Fuse Integration project, the tooling provides an Apache Camel context (XML) file as part of the project by default.

You can also add a new Camel XML file that includes all of the required namespaces preconfigured and a template camelContext element.

Procedure

To add a new Apache Camel context file to your project:

  1. Select File New Camel XML File from the main menu to open the Camel XML File wizard, as shown in Figure 11.1, “Camel XML File wizard”.

    Figure 11.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 (camelContext.xml).

    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 — [default] 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.

Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

© 2024 Red Hat, Inc.