适用于WebLogic的JavaEE API [英] JavaEE API for WebLogic

查看:168
本文介绍了适用于WebLogic的JavaEE API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有不同的服务器特定的JavaEE API实现,如:glassfish-javaee或jboss-javaee。

它们作为单独的.jar文件分发,可以使用Maven依赖项附加到某个项目。 >
是否有类似于WebLogic AS专门设计的内容?

我希望weblogic.jar文件包含已重新提交的工件,但它看起来不像这样。

Any想法?

There are different server specific JavaEE API implementations like: glassfish-javaee or jboss-javaee.
They are distributed as a separate .jar file and could be attached to some project using Maven dependencies.
Is there something like this desinged specifically for WebLogic AS?
I expected weblogic.jar file contains requered artifacts, but it doesn't look like this.
Any ideas?

推荐答案

理想情况下,您可能希望使用javaee-api依赖项,而不是特定于服务器的依赖项。对于特定于服务器的东西(不是核心EE API),您可以包含weblogic.jar或使用WebLogic的实用程序来创建WLFullClient.jar文件。

Ideally you would want to use the javaee-api dependency, not something that is server specific. For the things that are server-specific (not core EE API) then you could include weblogic.jar or use the utilities with WebLogic to create the WLFullClient.jar file.

Java EE 5:

Java EE 5:

<dependency>
    <groupId>javaee</groupId>
    <artifactId>javaee-api</artifactId>
    <version>5</version>
    <scope>provided</scope>
</dependency>

Java EE 6:

Java EE 6:

<dependency>
  <groupId>javax</groupId>
  <artifactId>javaee-api</artifactId>
  <version>6.0</version>
  <scope>provided</scope>
</dependency>

此处有更多信息: http://www.xinotes.org/notes/note/591/

更新:
我建议阅读有关客户端JAR文件的信息: http://download.oracle.com/docs/cd/E12840_01/wls/docs103/client/basics.html

您可能也有兴趣WebLogic Maven插件。以下是YouTube视频,介绍了如何使用它: http://www.youtube.com/watch? v = GcwcGtz0dyc

You may also be interested in the WebLogic Maven Plugin. Here is a YouTube video describing how to use it: http://www.youtube.com/watch?v=GcwcGtz0dyc

...以及Maven的示例项目: https://www.samplecode.oracle.com/sf/projects/oracle-parcel-svc/

...and the example project with Maven here: https://www.samplecode.oracle.com/sf/projects/oracle-parcel-svc/

这篇关于适用于WebLogic的JavaEE API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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