[英]Eclipse - EJB Project - Extracting Jar which contains interfaces
During EJB project creation in eclipse, it created following projects 在eclipse中创建EJB项目期间,它创建了以下项目
The interfaces and implementations are created in 'MyEjbProj'. 接口和实现在'MyEjbProj'中创建。 The MyEjbProjClient suppose to have interfaces which can be shared to the clients. MyEjbProjClient假设具有可以与客户端共享的接口。 How to generate/retrieve the jar which can be given to the Clients to use the interfaces. 如何生成/检索可以提供给客户端以使用接口的jar。
It should be creating interface in client project only. 它应该只在客户端项目中创建接口。 I have same setup and Eclipse does create interfaces in client project for me. 我有相同的设置,Eclipse确实在我的客户端项目中创建接口。 Problem should be either with your facets settings or with module settings. 问题应该是您的构面设置或模块设置。 Check following things: 检查以下事项:
Check if ejb-jar.xml file contains an entry specific to client project. 检查ejb-jar.xml文件是否包含特定于客户端项目的条目。 See in following example I have tag with name of client project: 请参阅以下示例,我的标签包含客户端项目的名称:
<?xml version="1.0" encoding="UTF-8"?> <ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:ejb="http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd" version="3.1"> <display-name>TestEJB </display-name> <ejb-client-jar>TestEJBClient.jar</ejb-client-jar>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.