由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - Web application deployment 的问题
相关主题
jboss hot deployment in eclipse有weblogic的大牛或者spring security的大牛来帮帮忙吗?
有没有怎么配置jbuilder+jboss+tomcat的资料愣是笨到家----整不明白applet的path
what wrong with jboss?今天一天时间把tomcat 调明白了
大家有用过Axis的能不能帮帮我?OpenShift的一个问题
问一个J2EE和Tomcat问题请教:jboss 的startup 和 shutdown
consume RESTful web services on the client side (web pages)?SSL Termination
Eclipse 抽风, 毫无征兆的Multi-tenant SaaS 的2种部署方式
Tomcat Hot deploymentWho is EJB technology for?
相关话题的讨论汇总
话题: jboss话题: server话题: http话题: web
进入Java版参与讨论
1 (共1页)
d**k
发帖数: 1223
1
我的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….
这个应该怎么弄啊?谢谢了
g*****g
发帖数: 34805
2
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….
: 这个应该怎么弄啊?谢谢了

n*********n
发帖数: 580
3
.net 可以, Java可能不行
l********0
发帖数: 283
4
这个还与语言有关?

【在 n*********n 的大作中提到】
: .net 可以, Java可能不行
m******t
发帖数: 2416
5

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….
: 这个应该怎么弄啊?谢谢了

A**o
发帖数: 1550
6
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….
: 这个应该怎么弄啊?谢谢了

m******t
发帖数: 2416
7

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.

A**o
发帖数: 1550
8
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...

g*****g
发帖数: 34805
9
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.

A**o
发帖数: 1550
10
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.

d**k
发帖数: 1223
11
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.
c*c
发帖数: 447
12
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...
1 (共1页)
进入Java版参与讨论
相关主题
Who is EJB technology for?问一个J2EE和Tomcat问题
What specific services does a container provide fconsume RESTful web services on the client side (web pages)?
EJB开发中的角色分配Eclipse 抽风, 毫无征兆的
Re: OR mappingTomcat Hot deployment
jboss hot deployment in eclipse有weblogic的大牛或者spring security的大牛来帮帮忙吗?
有没有怎么配置jbuilder+jboss+tomcat的资料愣是笨到家----整不明白applet的path
what wrong with jboss?今天一天时间把tomcat 调明白了
大家有用过Axis的能不能帮帮我?OpenShift的一个问题
相关话题的讨论汇总
话题: jboss话题: server话题: http话题: web