本文介绍了如何将eclipse连接到远程服务器上托管的WebSphere Application Server?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用eclipse调试本地代码(我的笔记本电脑),我正在尝试连接到远程托管的WAS(WebSphere Application Server)和远程托管数据库。
I am trying to debug a local code ( which is on my laptop) using eclipse, which I am trying to connect to the remotely hosted WAS( WebSphere Application server) and remotely hosted database.
推荐答案
首先从WebSphere Integration Solutions Console远程连接到WAS:
To remotely connect to WAS, first, from the WebSphere Integrated Solutions Console:
- 导航到应用服务器的调试服务:
- 服务器>服务器类型> WebSphere应用服务器> [serverName]>调试服务
-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7777
然后,从Eclipse IDE:
Then, from the Eclipse IDE:
- 打开调试对话框(例如
- 右键单击远程Java应用程序,然后选择新建
- 配置远程Java应用程序:
- Open the "Debug" dialog (e.g. Run > Debug Configurations...)
- Right-click "Remote Java Application" and select "New"
- Configure the Remote Java Application:
- 命名调试配置
- 浏览以选择要调试的项目(可选)
- 使用Standard(Socket Attach)连接类型
- 指定WAS服务器的主机名
- 指定端口号在WAS调试选项中设置
- Name the debug configuration
- Browse to select the project to debug (optional)
- Use the "Standard (Socket Attach)" Connection Type
- Specify the hostname of your WAS server
- Specify the port number that was set in the WAS debug options
(这些说明适用于WAS 7.0,但应与其他版本相似。)
(These instructions are for WAS 7.0, but should be similar for other versions.)
这篇关于如何将eclipse连接到远程服务器上托管的WebSphere Application Server?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!