1
A
回答
3
servlet API爲您提供HttpServletRequest中的本地端口。
protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
PrintWriter writer = response.getWriter();
writer.write("" + request.getLocalPort());
writer.close();
}
這些端口在節點的serverindex.xml定義(例如,[WAS] /profiles/AppSrv01/config/cells/localhostNode01Cell/nodes/localhostNode01/serverindex.xml)。
<specialEndpoints xmi:id="NamedEndPoint_1214751102556" endPointName="WC_defaulthost">
<endPoint xmi:id="EndPoint_1214751102556" host="*" port="9080"/>
我不確定WAS JMX支持是否公開此信息 - 您必須檢查文檔。
0
如果使用RAD你可以從IDE運行管理控制檯,然後發現所使用的所有端口WAS
相關問題
- 1. Websphere portal 6.1入門6.1
- 2. jmeter websphere 6.1 j_security_check
- 3. Tomcat:如何獲得Java中的安全端口號?
- 4. 如何查找Websphere 6.1中的資源
- 5. 如何優化websphere 6.1中的部署
- 6. Websphere 6.1 JAAS註銷
- 7. Websphere 6.1 Ldap Active Directory
- 8. NetBeans 6.9.1與Websphere 6.1
- 9. 什麼是WebSphere 6.1
- 10. 如何在Mac OS X中獲得USB端口號?
- 11. 如何從sql查詢獲得oracle端口號
- 12. 如何從Websphere 6.1上託管的DB2數據庫獲取XADatasource
- 13. WebSphere中的預留端口
- 14. 如何在ASP .NET中獲得客戶端的臨時端口號?
- 15. 的WebSphere 6.1 - com.sun.xml.ws.spi.ProviderImpl問題
- 16. Websphere 6.1中的強制Https
- 17. WebSphere 6.1和WebSphere 8是否兼容?
- 18. 我如何獲得WebSphere 8.0上的TransactionManager?
- 19. websphere 7調試端口:0.0.0.0
- 20. 如何獲取rmi中客戶端的端口號?
- 21. WebSphere 6.1 for Solaris(試用版)?
- 22. Websphere 6.1 - 配置安全性
- 23. 訪問Websphere 6.1變量
- 24. Ruby獲取UDPSocket端口號
- 25. 如何選擇端口號?
- 26. 如何使用端口號
- 27. 如何更改端口號
- 28. 如何管理端口號?
- 29. 如何將默認端口號更改爲Tomcat端口號8080?
- 30. Eclipse/MyEclipse中的Websphere 6.1編輯器窗口
你是什麼意思與應用端口?你的意思是http端口,就像80,8080端口一樣... – 2008-11-05 10:48:16