Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JavaEE in the Real World  RSS feed

 
Matt Bojangle
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because there's little information that actually explains application servers in the real world, i need some help from some knowledgeable developers:

For one domain at www.url.com:

- How many application servers are there if there are multiple applications hosted on this domain? Ie. url.com/app1, url.com/app2, etc.?

- How many web servers will there be?

- How would I make one physical server handle all requests for one of the above applications?

- How would one make static content a standalone application built with angularJS? Not static content served by servlets.

Thanks!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) One or more
2) One or more
3) Have one server configured
4) Why would you need a JEE app for that?
 
Matt Bojangle
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:1) One or more
2) One or more
3) Have one server configured

Can you explain the configurations required for these?

Bear Bibeault wrote:4) Why would you need a JEE app for that?

How would I prevent the web server/container from taking the requests I make for the static resources?


Do you know of any online references that explain all of the above visually?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Matt Bojangle wrote:
Can you explain the configurations required for these?

I just use Tomcat, so all I need to do is to configure each web context. One instance of Tomcat can serve any number of contexts (web apps). I'm sure it's similar for app servers when necessary, but configuration depends upon which app server you are using.

For clustering, things get more complicated.


How would I prevent the web server/container from taking the requests I make for the static resources?

Any server can serve static resources, but if all your app contains is static resources why not just use Apache? (which is used to front many server instances in the first place)
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!