Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.8.2. A service unit project
Overview Copy linkLink copied to clipboard!
Seeding a project using a Maven artifact Copy linkLink copied to clipboard!
groupId
value and the artifactId
values correspond to the project's group ID and artifact ID.
Example 8.3. Maven archetype command for service units
smx-arch
su suArchetypeName
[
"-DgroupId=my.group.id"
] [
"-DartifactId=my.artifact.id"
]
"
) are required when using the -DgroupId
argument and the -DartifactId
argument.
Name | Description |
---|---|
camel | Creates a project for using the Apache Camel service engine |
cxf-se | Creates a project for developing a Java-first service using the Apache CXF service engine |
cxf-se-wsdl-first | Creates a project for developing a WSDL-first service using the Apache CXF service engine |
cxf-bc | Creates an endpoint project targeted at the Apache CXF binding component |
http-consumer | Creates a consumer endpoint project targeted at the HTTP binding component |
http-provider | Creates a provider endpoint project targeted at the HTTP binding component |
jms-consumer | Creates a consumer endpoint project targeted at the JMS binding component (see "Using the JMS Binding Component") |
jms-provider | Creates a provider endpoint project targeted at the JMS binding component (see "Using the JMS Binding Component") |
file-poller | Creates a polling (consumer) endpoint project targeted at the file binding component (see chapter "Using Poller Endpoints" in "Using the File Binding Component") |
file-sender | Creates a sender (provider) endpoint project targeted at the file binding component (see chapter "Using Sender Endpoints" in "Using the File Binding Component") |
ftp-poller | Creates a polling (consumer) endpoint project targeted at the FTP binding component |
ftp-sender | Creates a sender (provider) endpoint project targeted at the FTP binding component |
jsr181-annotated | Creates a project for developing an annotated Java service to be run by the JSR181 service engine [a] |
jsr181-wsdl-first | Creates a project for developing a WSDL generated Java service to be run by the JSR181 service engine [a] |
saxon-xquery | Creates a project for executing xquery statements using the Saxon service engine |
saxon-xslt | Creates a project for executing XSLT scripts using the Saxon service engine |
eip | Creates a project for using the EIP service engine. [b] |
lwcontainer | Creates a project for deploying functionality into the lightweight container [c] |
bean | Creates a project for deploying a POJO to be executed by the bean service engine |
ode | Create a project for deploying a BPEL process into the ODE service engine |
[a]
The JSR181 has been deprecated. The Apache CXF service engine has superseded it.
[b]
The EIP service engine has been deprecated. The Apache Camel service engine has superseded it.
[c]
The lightweight container has been deprecated.
|
Contents of a project Copy linkLink copied to clipboard!
- a POM file that configures the JBI plug-in to create a service unit
- an XML configuration file stored in
src/main/resources
For many of the components, the XML configuration file is calledxbean.xml
. The Apache Camel component uses a file calledcamel-context.xml
.
Configuring the Maven plug-in Copy linkLink copied to clipboard!
packaging
element to jbi-service-unit
as shown in Example 8.4.
Example 8.4. Configuring the maven plug-in to build a service unit
Specifying the target components Copy linkLink copied to clipboard!
- List the targeted component as a dependency
- Add a
componentName
property specifying the targeted component
- Add a
componentName
property specifying the targeted component. - Add the remaining components to the list dependencies.
Example 8.5. Specifying the target components for a service unit
componentName
element. This element is added to the standard Maven properties block and it specifies the name of a targeted component, as specified in Example 8.6.
Example 8.6. Specifying a target component for a service unit
... <properties> <componentName>servicemix-bean</componentName> </properties> ...
...
<properties>
<componentName>servicemix-bean</componentName>
</properties>
...
componentName
element, Maven does not check to see if the component is installed, nor does it download the required component.
Example Copy linkLink copied to clipboard!
Example 8.7. POM file for a service unit project
- 1
- Specifies that it is a part of the top-level project shown in Example 8.2, “Top-level POM for a Red Hat JBoss Fuse JBI project”
- 2
- Specifies that this project builds a service unit
- 3
- Specifies that the service unit targets the Apache CXF binding component
- 4
- Specifies to use the Red Hat JBoss Fuse Maven plug-in