Redian新闻
>
Web application deployment 的问题
avatar
Web application deployment 的问题# Java - 爪哇娇娃
c*1
1
她落下了一只耳环
她走了
落下一只耳环
在枕上
蔷薇 海棠
开在
她的梦乡
模糊
远去的孤帆
清晰
伞下的雨巷
别了
秋风的吟唱
来了
冬夜的幽长
是谁
还在盼啊
盼一个
永远
也到不了的岸
她真的走了
带上一只耳环
落下了
一叶孤单
avatar
d*k
2
我的AS用的是JBoss。 以前一直就直接把web application deploy到jboss的默认的端
口,比如8080, 然后根据context path access 相应的application, 比如,
http://hostname:8080/app1;
http://hostname:8080/app2 .....
现在我想把不同的application deploy到不同的端口上,然后通过端口去找
application, 比如,
http://hostname:8081 对应app1; http://hostname:8082 对应app2….
这个应该怎么弄啊?谢谢了
avatar
x*u
3
俺读不懂,感其忧愁,歪拼一首
抚枕独自叹,遗落明珠环。
梦乡海棠前,何处丁香展。
只帆携远去,雨巷持白伞。
别秋夜正幽,隔岸谁相盼?
同是明珠环,一叶孤且单。

【在 c**********1 的大作中提到】
: 她落下了一只耳环
: 她走了
: 落下一只耳环
: 在枕上
: 蔷薇 海棠
: 开在
: 她的梦乡
: 模糊
: 远去的孤帆
: 清晰

avatar
g*g
4
Not sure how to do that on JBoss, but you can employ a proxy server
like pound and map the url. An application server usually only listens
to certain configured port numbers and not supposed to do what you
want.

【在 d**k 的大作中提到】
: 我的AS用的是JBoss。 以前一直就直接把web application deploy到jboss的默认的端
: 口,比如8080, 然后根据context path access 相应的application, 比如,
: http://hostname:8080/app1;
: http://hostname:8080/app2 .....
: 现在我想把不同的application deploy到不同的端口上,然后通过端口去找
: application, 比如,
: http://hostname:8081 对应app1; http://hostname:8082 对应app2….
: 这个应该怎么弄啊?谢谢了

avatar
n*n
5
.net 可以, Java可能不行
avatar
l*0
6
这个还与语言有关?

【在 n*********n 的大作中提到】
: .net 可以, Java可能不行
avatar
m*t
7

You can configure multiple server instances to listen on different
ports.
For example out of box under jboss, you have server/default/...,
you can have server/app1, server/app2, etc.

【在 d**k 的大作中提到】
: 我的AS用的是JBoss。 以前一直就直接把web application deploy到jboss的默认的端
: 口,比如8080, 然后根据context path access 相应的application, 比如,
: http://hostname:8080/app1;
: http://hostname:8080/app2 .....
: 现在我想把不同的application deploy到不同的端口上,然后通过端口去找
: application, 比如,
: http://hostname:8081 对应app1; http://hostname:8082 对应app2….
: 这个应该怎么弄啊?谢谢了

avatar
A*o
8
for jboss 4.x series, go and edit
JBOSS_HOME\server\default\deploy\jboss-web.deployer\server.xml
Add your own http adaptors.

【在 d**k 的大作中提到】
: 我的AS用的是JBoss。 以前一直就直接把web application deploy到jboss的默认的端
: 口,比如8080, 然后根据context path access 相应的application, 比如,
: http://hostname:8080/app1;
: http://hostname:8080/app2 .....
: 现在我想把不同的application deploy到不同的端口上,然后通过端口去找
: application, 比如,
: http://hostname:8081 对应app1; http://hostname:8082 对应app2….
: 这个应该怎么弄啊?谢谢了

avatar
m*t
9

I thought of that. It's what I would do under tomcat. With jboss though,
the applications deployed are server-wide. I'm not quite sure how to
assign them to only some http adaptors, but not other. Maybe virtualhost,
but then OP wanted different ports...

【在 A**o 的大作中提到】
: for jboss 4.x series, go and edit
: JBOSS_HOME\server\default\deploy\jboss-web.deployer\server.xml
: Add your own http adaptors.

avatar
A*o
10
en. it sounds easier just running 2 instances of jboss
where each one listen to different http ports.

【在 m******t 的大作中提到】
:
: I thought of that. It's what I would do under tomcat. With jboss though,
: the applications deployed are server-wide. I'm not quite sure how to
: assign them to only some http adaptors, but not other. Maybe virtualhost,
: but then OP wanted different ports...

avatar
g*g
11
It's more efficient to run a jboss and a pound, with pound server
just mapping the url all the way you want. That way you can deal
with 100 different port number if you need to.

【在 A**o 的大作中提到】
: en. it sounds easier just running 2 instances of jboss
: where each one listen to different http ports.

avatar
A*o
12
dunno about pound, guess as easy as apache httpd,
as long as no ssl involed.

【在 g*****g 的大作中提到】
: It's more efficient to run a jboss and a pound, with pound server
: just mapping the url all the way you want. That way you can deal
: with 100 different port number if you need to.

avatar
d*k
13
hi buddies, thanks a lot for your suggestions. I should say this long time
ago but mitbbs is down for such a long time....
I successfully installed two jboss instance, and each of them listen from
different port. Now it is working pretty well. Thanks a lot for your help.
avatar
c*c
14
you only need a reverse proxy in front of your app server layer so to the
end users the URLs will be like this:
http://app1.domain.com
http://app2.domain.com
You can even have different domain name...
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。