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. Express + Mocha:我如何獲得端口號?
- 2. 如何獲得臨時端口號
- 3. WebSphere 6.1
- 4. Websphere portal 6.1入門6.1
- 5. Websphere 6.1 + Hudson + Ant
- 6. jmeter websphere 6.1 j_security_check
- 7. 如何更改websphere/glassfish的端口?
- 8. Python socketserver,如何獲得我自己的tcp端口號
- 9. Tomcat:如何獲得Java中的安全端口號?
- 10. 如何優化websphere 6.1中的部署
- 11. 如何查找Websphere 6.1中的資源
- 12. 如何更改websphere偵聽器端口
- 13. 如何在Mac OS X中獲得USB端口號?
- 14. 如何從sql查詢獲得oracle端口號
- 15. NoClassDefFoundError RAD 8 WebSphere 6.1
- 16. Websphere 6.1 Ldap Active Directory
- 17. NetBeans 6.9.1與Websphere 6.1
- 18. 什麼是WebSphere 6.1
- 19. Websphere 6.1 JAAS註銷
- 20. 如何從Websphere 6.1上託管的DB2數據庫獲取XADatasource
- 21. WebSphere中的預留端口
- 22. 如何在ASP .NET中獲得客戶端的臨時端口號?
- 23. Spring Boot - 如何獲得運行端口
- 24. 的Websphere 6.1控制檯空
- 25. 的WebSphere 6.1 - com.sun.xml.ws.spi.ProviderImpl問題
- 26. JasperReports的5.5.0和WebSphere 6.1
- 27. Websphere 6.1中的強制Https
- 28. 我如何獲得WebSphere 8.0上的TransactionManager?
- 29. WebSphere 6.1和WebSphere 8是否兼容?
- 30. websphere 7調試端口:0.0.0.0
你是什麼意思與應用端口?你的意思是http端口,就像80,8080端口一樣... – 2008-11-05 10:48:16