zhang xuefeng
zhang xuefeng

Reputation: 367

How to point defferent domains to web modules in ONE ear project in glassfish?

I am working on an SNS program which I plan to develop with JavaEE technology with eclipse IDE, Glassfish server. To do this, I have a eclipse EAR project with structure of this:

These modules distribute as a deployable archive file xyz.ear. Each of the 3 web modules in this EAR should have its own domain(http://api.xyz.com -> *xyz.ap*i, http://www.xyz.com -> xyz.www, https://admin.xyz.com -> xyz.admin).

How do i do that? Or what will you do with this program?

Upvotes: 1

Views: 70

Answers (1)

zhang xuefeng
zhang xuefeng

Reputation: 367

I figured it out, Glassfish's virtual server feature just fit my needs. I've not been developing Java Web programs so long that I forgot this, now it's all good.

I'd still like to see how do you design it.

Upvotes: 1

Related Questions