如何将eclipse连接到远程服务器上托管的WebSphere Application Server? [英] How do you connect an eclipse to a WebSphere Application server hosted on remote server?

查看:371
本文介绍了如何将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:


  1. 导航到应用服务器的调试服务:
    • 服务器>服务器类型> WebSphere应用服务器> [serverName]>调试服务
-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7777

然后,从Eclipse IDE:

Then, from the Eclipse IDE:


  1. 打开调试对话框(例如

  2. 右键单击远程Java应用程序,然后选择新建

  3. 配置远程Java应用程序:
  1. Open the "Debug" dialog (e.g. Run > Debug Configurations...)
  2. Right-click "Remote Java Application" and select "New"
  3. Configure the Remote Java Application:

  1. 命名调试配置

  2. 浏览以选择要调试的项目(可选)

  3. 使用Standard(Socket Attach)连接类型

  4. 指定WAS服务器的主机名

  5. 指定端口号在WAS调试选项中设置

  1. Name the debug configuration
  2. Browse to select the project to debug (optional)
  3. Use the "Standard (Socket Attach)" Connection Type
  4. Specify the hostname of your WAS server
  5. 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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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