Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JBoss AS 7 maven dependency for standalone client

Tags:

maven

jboss7.x

We have a standalone desktop client that connects to a JBoss server. For version 6 of JBoss the maven dependency used by the desktop client project was

<dependency>
  <groupId>org.jboss.jbossas</groupId>
  <artifactId>jboss-as-client</artifactId>
</dependency>

For JBoss 7.1.1 no such dependency exists. What is the correct maven dependency that should be used when developing a standalone desktop client?

like image 785
woelfle Avatar asked Jan 17 '23 12:01

woelfle


1 Answers

If you directly connect to EJB you need the EJB client libs.In earlier versions of JBoss AS7 there were a bunch of individual dependencies required. Starting (AFAIK) from 7.1.1-Final a BOM (bill of materials) is available:

<dependencies>
  <dependency>
    <groupId>org.jboss.as</groupId>
    <artifactId>jboss-as-ejb-client-bom</artifactId>
    <version>7.1.1.Final</version>
    <type>pom</type>
  </dependency>
</dependencies>

You will find here detailed information on JNDI lookups and invoking methods.

like image 110
Thor Avatar answered Jan 21 '23 23:01

Thor