问题描述
我正在开发 JavaEE 系统(分布在 Weblogic App Server 上),但我没有 JavaEE 包的源代码(例如 javax.ejb.*).
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).
在哪里可以找到这些包的源代码(不是 javadoc)?
Where can I find the sources (not javadoc) for these packages?
推荐答案
Java EE 是一个抽象的 API.它仅存在于合同中(如您在 javadocs 中看到的),而不是具体的代码.应用服务器是具体的实现.因此,如果您正在寻找源代码,您应该查看应用程序服务器供应商的主页以获取源代码下载链接.但是,您对 Weblogic 并不走运.它不是开源的.我从未使用过 Weblogic(我是一个开源爱好者),所以我不确定源是否是按照 Weblogic 许可证提供的,您可能需要联系 Weblogic 支持团队.
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.
其他服务器,例如 Tomcat、Payara、WildFly 等都是开源的.WebSphere 还有一个 社区版",它是开源的.您可以从其中任何一个获取 javax.*
API 源代码,但不能保证它们与 Weblogic 使用的完全相同.然后,他们没有提供具体的 Weblogic 实现代码(如 org.apache.*
、com.sun.*
和 org.wildfly.*
包在上述开源服务器中).
Other servers, like Tomcat, Payara, WildFly, etc are open source. WebSphere 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.wildfly.*
packages in aforementioned open source servers).
这篇关于我在哪里可以找到 JavaEE 包的来源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!