English 中文(简体)
Eclipse - EJB Project - Extracting Jar which contained crosss
原标题:Eclipse - EJB Project - Extracting Jar which contains interfaces

在EJB项目铺设ec片期间,该项目在项目之后创建。

  • MyEjbProj
  • MyEjbProjClient
  • MyEjbProjEAR

在MyEjbProj建立了接口和执行。 MyEjbProjClient为客户提供接口。 • 如何生成/检索可以交给客户使用的接口。

最佳回答

它只应在客户项目中建立接口。 我有同样的设置,Eclipse确实为我的客户项目建立了接口。 问题要么与你的面貌相,要么放在模块环境中。 检查如下:

  1. Are you selecting EAR and Client project option while creating EJB project.
  2. If answer of above question is yes, then check if client and EJB project are shown in deployment assembly settings of EAR.
  3. Check if client project have correct facets settings. It must have Java and Utility 2.0 facets.
  4. ejb-jar.xml文档载有客户项目的具体条目。 参见以下例子:我与客户项目的名称挂钩:

    <?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>
    

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签