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

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

问题描述

有不同的服务器特定 JavaEE API 实现,例如:glassfish-javaee 或 jboss-javaee.
它们作为单独的 .jar 文件分发,并且可以使用 Maven 依赖项附加到某些项目.
有没有专门为 WebLogic AS 设计的类似功能?
我希望 weblogic.jar 文件包含所需的工件,但它看起来不像这样.
有什么想法吗?

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:

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

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

UPDATE: I would suggest reading this information about client JAR files: 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天全站免登陆