JBoss AS 7 maven dependency for standalone client

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

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

For JBoss 7.1.1, this dependency does not exist. What is the correct maven dependency that should be used when developing a standalone desktop client?

+4
source share
2 answers

If you connect directly to EJB, you need EJB client libraries. Earlier versions of JBoss AS7 required many separate dependencies. Launch (AFAIK) of 7.1.1-Final specification available (material specification):

 <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 about JNDI searches and calling methods.

+9
source

I am not very familiar with the JBoss AS 6 client, but for JBoss AS 7 you will need the following.

 <dependencies> <dependency> <groupId>org.jboss.as</groupId> <artifactId>jboss-as-controller-client</artifactId> <version>${as.version}</version> </dependency> </dependencies> 

You will use org.jboss.as.controller.client.ModelControllerClient for stand-alone or org.jboss.as.controller.client.helpers.domain.DomainClient for domain mode.

0
source

Source: https://habr.com/ru/post/1415584/


All Articles