6.7.3. Project dependencies for Remote EJB Clients
Maven projects that include the invocation of session beans from remote clients require the following dependencies from the JBoss Enterprise Application Platform 6 Maven repository.
Table 6.1. Maven dependencies for Remote EJB Clients
GroupID | ArtifactID | Version |
---|---|---|
org.jboss.spec | jboss-javaee-6.0 | 3.0.0.Final-redhat-1 |
org.jboss.as | jboss-as-ejb-client-bom | 7.1.1.Final-redhat-1 |
org.jboss.spec.javax.transaction | jboss-transaction-api_1.1_spec | - |
org.jboss.spec.javax.ejb | jboss-ejb-api_3.1_spec | - |
org.jboss | jboss-ejb-client | - |
org.jboss.xnio | xnio-api | - |
org.jboss.xnio | xnio-nio | - |
org.jboss.remoting3 | jboss-remoting | - |
org.jboss.sasl | jboss-sasl | - |
org.jboss.marshalling | jboss-marshalling-river | - |
With the exception of
jboss-javaee-6.0
and jboss-as-ejb-client-bom
, these dependencies must be added to the <dependencies>
section of the pom.xml
file.
The
jboss-javaee-6.0
and jboss-as-ejb-client-bom
dependencies should be added to the <dependencyManagement>
section of your pom.xml
with the scope of import
.
<dependencyManagement> <dependencies> <dependency> <groupId>org.jboss.spec</groupId> <artifactId>jboss-javaee-6.0</artifactId> <version>3.0.0.Final-redhat-1</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>org.jboss.as</groupId> <artifactId>jboss-as-ejb-client-bom</artifactId> <version>7.1.1.Final-redhat-1</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement>
Refer to the
remote-ejb/client/pom.xml
for a complete example of dependency configuration for remote session bean invocation.