如何将Web服务绑定到特定的glassfish端口? [英] How do I bind web service to a particular glassfish port?
问题描述
我在我的域的虚拟服务器中安装了几个http侦听器,其中包含 Glassfish 3.1.1(Metro JAX-WS堆栈)
>安装。
当我部署EAR时,Web应用程序和soap服务都绑定到所有可用的http侦听器,而我希望它们由不同的侦听器持有,每个侦听器都有自己的性能和连接池设置。
我相信 sun-web.xml
应该负责这种绑定,但是我还没有发现绑定服务的任何选项特定的端口或虚拟服务器。
任何想法?
One选项是使用 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
另一个选项:
$ b
几个配置文件有新名称(例如 glassfish- web.xml
是 sun-web.xml
的新名称。
要将您的EAR绑定到特定的URI,请参阅esp。 web
元素及其子元素(如 web-uri
) - 详细信息和示例请参阅
- http://download.oracle.com/docs/cd/E18930_01/html/821-2417/beaqk.html#scrolltoc
- http://download.oracle.com/docs/cd/E18930_01/ html / 821-2417 / beaql.html
- http://javahowto.blogspot.com/2010/10/glassfish-webxml-and-sun-webxml.html
- http://download.oracle.com/docs/cd/E18930_01/html/821-2417/beaqk.html#scrolltoc
- http://download.oracle.com/docs/cd/E18930_01/html/821-2417/beaql.html
- http://javahowto.blogspot.com/2010/10/glassfish-webxml-and-sun-webxml.html
ul>
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?
One option is to use the deploy
command with an accordingly set virtualservers
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.pdf
Another option:
Several config files have new names (for example glassfish-web.xml
is the new name for sun-web.xml
).
To bind your EAR to specific URI see esp. the web
element and its sub-element like web-uri
- for details and samples see
这篇关于如何将Web服务绑定到特定的glassfish端口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!