JavaEE API for WebLogic

荒凉一梦 提交于 2019-12-04 04:32:46

问题


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?


回答1:


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>

More info here: http://www.xinotes.org/notes/note/591/

UPDATE: I would suggest reading this information about client JAR files: http://download.oracle.com/docs/cd/E12840_01/wls/docs103/client/basics.html

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

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



来源:https://stackoverflow.com/questions/6899315/javaee-api-for-weblogic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!