我在哪里可以找到JavaEE软件包的来源? [英] Where can I find JavaEE packages' sources?

查看:362
本文介绍了我在哪里可以找到JavaEE软件包的来源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发JavaEE系统(分布在Weblogic App Server上),但是我没有JavaEE软件包的源代码(例如javax.ejb。*)。



我在哪里可以找到这些包的源(而不是javadoc)?

解决方案

Java EE是一个抽象API。它只存在合约(就像你在javadoc中看到的那样),而不是具体的代码。应用服务器是具体的实现。因此,如果您正在寻找源代码,那么您应该查看应用服务器供应商的主页以获取源代码下载链接。但是,您对Weblogic不爽。它不是开源的。我从来没有使用Weblogic(我是一个开源的粉丝),所以我不知道源代码是否提供了Weblogic许可证,您可能需要联系Weblogic支持团队。



其他服务器,如 Tomcat Glassfish JBoss AS 等都是开源的。 WebSphere AS 还有一个社区版是开源的。您可以从其中任何一个获取 javax。* API源代码,但不能保证它们与Weblogic使用完全相同。然而,他们还没有提供具体的Weblogic实现代码(如 org.apache。* com.sun。* org.jboss。* 上述开源服务器中的包)。


I'm developing a JavaEE system (distributed on Weblogic App Server), but I don't have the sources for the JavaEE packages (javax.ejb.*, for instance).

Where can I find the sources (not javadoc) for these packages?

解决方案

Java EE is an abstract API. It exist of just contracts (as you see in javadocs), not concrete code. The application servers are the concrete implementations. So, if you're looking for the source, you should look at the application server vendor's homepage for a source code download link. However, you're unlucky with Weblogic. It is not open source. I've never used Weblogic (I am an open source fan), so I'm not sure if the source is provided along the Weblogic license, you might want to contact Weblogic support team.

Other servers, like Tomcat, Glassfish, JBoss AS, etc are open source. WebSphere AS has also a "Community Edition" which is open source. You could grab the javax.* API source code from any of them, but there is no guarantee that they are exactly the same as Weblogic uses. And still then, they do not provide the concrete Weblogic implementation code (like as the code in org.apache.*, com.sun.* and org.jboss.* packages in aforementioned open source servers).

这篇关于我在哪里可以找到JavaEE软件包的来源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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