[英]Is it possible to add network WebSphere server to eclipse?
如果可能,我想将网络服务器添加到本地Eclipse。这样,热部署将可以正常工作。
Personally, I've always used Rational Application Developer which comes with this support built-in. 就个人而言,我一直使用内置此支持的Rational Application Developer。 From playing around some, I've found this is not the case for Eclipse.
通过反复试验,我发现Eclipse并非如此。 I found that you need to do two things before you can deploy applications to a remote WebSphere Application Server with Eclipse:
我发现您需要做两件事,然后才能使用Eclipse将应用程序部署到远程WebSphere Application Server:
Here is information on how to add WDT to Eclipse: https://www.ibm.com/support/knowledgecenter/en/was_beta_devtools/com.ibm.websphere.wdt.doc/topics/t_install_wdt_sdk.htm 以下是有关如何将WDT添加到Eclipse的信息: https : //www.ibm.com/support/knowledgecenter/en/was_beta_devtools/com.ibm.websphere.wdt.doc/topics/t_install_wdt_sdk.htm
In summary: 综上所述:
After you've installed WDT that matches your partner application server, you have to go one step farther and also install WebSphere on the local machine. 在安装了与伙伴应用程序服务器匹配的WDT之后,您必须进一步走一步,并且还要在本地计算机上安装WebSphere。 Why, I don't know.
为什么,我不知道。 It won't create the remote server if you don't do that.
如果不这样做,它将不会创建远程服务器。 When installing WebSphere, be sure that the Java version that you install matches the Java version that you have installed on your partner.
在安装WebSphere时,请确保您安装的Java版本与您在合作伙伴上安装的Java版本匹配。
After you have installed WDT into Eclipse and WebSphere onto your workstation, to add the remote application server, do the following in your eclipse workspace: 在将WDT安装到Eclipse中并将WebSphere安装到工作站上之后,要添加远程应用程序服务器,请在Eclipse工作区中执行以下操作:
I was able to do this using Eclipse Oxygen. 我能够使用Eclipse Oxygen做到这一点。 I have Indigo, Juno, Kepler, Luna, and Neon.
我有Indigo,Juno,Kepler,Luna和Neon。 I started with one of those (I can't remember which; probably an old one) and I was unable to get the WDT installed.
我从其中一个开始(我不记得是哪个;可能是一个旧的),但无法安装WDT。 I got the WDT installed on another one, but I wasn't having success, but that was before I figured out that you absolutely had to have a local WAS image.
我在另一个WDT上安装了WDT,但没有成功,但是那是在我确定您绝对必须拥有本地WAS映像之前。
Besides my move to Oxygen, I ran into the following problems: 除了迁移氧气以外,我还遇到以下问题:
If you mess up, you can create new WebSphere runtime environments in Eclipse: 如果搞砸了,可以在Eclipse中创建新的WebSphere运行时环境:
If you have more than one WebSphere runtime environment, make sure that you choose the correct matching one when creating your remote server. 如果您有多个WebSphere运行时环境,请确保在创建远程服务器时选择正确的匹配环境。
I've used remote application servers in an assembly tool for a long time; 我已经在组装工具中使用了远程应用程序服务器很长时间了。 I understand the appeal of it.
我了解它的吸引力。 I like to do it because it keeps the memory-intensive application server off of the Eclipse machine.
我喜欢这样做,因为它使内存密集型应用程序服务器脱离了Eclipse计算机。 Deploying apps is way faster this way.
这样部署应用程序的速度更快。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.