独立客户端的JBoss AS 7 Maven依赖项 [英] JBoss AS 7 maven dependency for standalone client

查看:110
本文介绍了独立客户端的JBoss AS 7 Maven依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个独立的桌面客户端,该客户端连接到JBoss服务器.对于JBoss的版本6,桌面客户端项目使用的maven依赖项是

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>

对于JBoss 7.1.1,不存在这样的依赖关系.开发独立的桌面客户端时应使用什么正确的Maven依赖项?

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?

推荐答案

如果直接连接到EJB,则需要EJB客户端库.在JBoss AS7的早期版本中,需要一堆单独的依赖项.可从7.1.1-Final BOM(物料清单)开始(AFAIK):

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>

您将在此处找到有关JNDI查找和调用方法的详细信息.

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

这篇关于独立客户端的JBoss AS 7 Maven依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆