依赖类型 ejb 和 ejb-client 有什么区别

问题描述 投票:0回答:1

如果在 pom.xml 中包含依赖项,有什么区别

<dependency>
    <groupId>group.Id</groupId>
    <artifactId>artifact.Id</artifactId>
    <type>ejb-client</type>
    <scope>runtime</scope>
</dependency>

<dependency>
    <groupId>group.Id</groupId>
    <artifactId>artifact.Id</artifactId>
    <type>ejb</type>
    <scope>runtime</scope>
</dependency>
maven dependencies pom.xml
1个回答
6
投票

ejb类型是指包含ejb接口和实现、配置文件等的jar文件

ejb-client 类型是指仅包含 ejb 接口类的 jar 文件。 IE。仅是 ejb 客户端调用它所需的内容。

maven-ejb-plugin 在其配置中具有默认或自定义配置,允许从客户端中排除 EJB 实现类。

© www.soinside.com 2019 - 2024. All rights reserved.