如何将 Web 服务绑定到特定 glassfish 端口?
我在我的域的虚拟服务器中安装了 Glassfish 3.1.1(Metro JAX-WS 堆栈)
,并带有多个 http 侦听器。 当我部署 EAR 时,Web 应用程序和肥皂服务都绑定到所有可用的 http 侦听器,而我希望它们由不同的侦听器持有,每个侦听器都有自己的性能和连接池设置。
我相信 sun-web.xml
应该负责这种绑定,但我还没有找到将服务绑定到特定端口或虚拟服务器的任何选项。
有什么想法吗?
I have Glassfish 3.1.1 (Metro JAX-WS stack)
installation with several http listeners in my domain's virtual server.
When I deploy my EAR, web application and soap services are all bound to all available http listeners whereas I want them to be held by different listeners, each having it's own performance and connection pool setup.
I believed that sun-web.xml
should be responsible for that sort of binding but I haven't found any options of binding service to specific port or virtual server.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一种选择是使用
deploy
命令以及相应设置的virtualservers
命令行参数...有关参考,请参阅 http://download.oracle.com/docs/cd/E18930_01/html/821-2433/deploy-1.html 或第 262 页等,位于 http://download.oracle.com/docs/cd/E18930_01/pdf/821-2433.pdf另一种选择:
几个配置文件有新名称(例如
glassfish-web.xml
是sun-web.xml
的新名称)。要将您的 EAR 绑定到特定 URI,请参阅 esp。
web
元素及其子元素,例如web-uri
- 有关详细信息和示例,请参阅One option is to use the
deploy
command with an accordingly setvirtualservers
commandline parameter... for reference see http://download.oracle.com/docs/cd/E18930_01/html/821-2433/deploy-1.html or page 262 etc. at http://download.oracle.com/docs/cd/E18930_01/pdf/821-2433.pdfAnother option:
Several config files have new names (for example
glassfish-web.xml
is the new name forsun-web.xml
).To bind your EAR to specific URI see esp. the
web
element and its sub-element likeweb-uri
- for details and samples see