Rechercher

Ce contenu n'est pas disponible dans la langue sélectionnée.

Chapter 5. Switchyard Project

download PDF
A SwitchYard project is a Maven based project with the following characteristics:
  • a switchyard.xml file in the project's META-INF folder
  • one or more SwitchYard runtime dependencies declared in the pom.xml file
  • org.switchyard:switchyard-plugin Maven Old Java Object (MOJO) configured in the pom.xml file
A SwitchYard project may also contain a variety of other resources used to implement the application, for example: Java, BPMN2, DRL, BPEL, WSDL, XSD, and XML files.
The JBoss Developer Studio tooling supports the creation of new SwitchYard projects. The tooling also allows users to add SwitchYard capabilities to existing Maven projects.

5.1. Creating a New SwitchYard Project

Use the New SwitchYard Project wizard to create new SwitchYard project in your workspace.
The wizard creates a new project with the following structure:
  • a switchyard.xml file in src/main/resources/META-INF/ directory
  • a pom.xml file declaring SwitchYard runtime dependencies and configuration for the switchyard-plugin MOJO
  • a beans.xml file in src/main/resources/META-INF/ directory
  • a beans.xml file in src/test/resources/META-INF/ directory
  • a folder hierarchy for the specified Java package

Procedure 5.1. Create a New SwitchYard Project

  1. Click File New Project to start the New Project wizard. Click SwitchYard SwitchYard Project and then click Next.
  2. Enter the name and location for the new project and then click Next.
  3. Provide other details for the project.
    The library version can be specified directly using the Library Version field or indirectly by selecting a Target Runtime. Selecting a target runtime sets the library version to match the version provided by the target runtime.
    Note
    It is not necessary to select any components when creating the project. The tooling automatically configures components on the project as necessary.
  4. Click Finish to create the new project.
The SwitchYard editor displays the switchyard.xml file for the newly created SwitchYard project after the wizard finishes.
Red Hat logoGithubRedditYoutubeTwitter

Apprendre

Essayez, achetez et vendez

Communautés

À propos de la documentation Red Hat

Nous aidons les utilisateurs de Red Hat à innover et à atteindre leurs objectifs grâce à nos produits et services avec un contenu auquel ils peuvent faire confiance.

Rendre l’open source plus inclusif

Red Hat s'engage à remplacer le langage problématique dans notre code, notre documentation et nos propriétés Web. Pour plus de détails, consultez leBlog Red Hat.

À propos de Red Hat

Nous proposons des solutions renforcées qui facilitent le travail des entreprises sur plusieurs plates-formes et environnements, du centre de données central à la périphérie du réseau.

© 2024 Red Hat, Inc.