Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Could JSP connect multiservers?

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working with a JSP project , which is a web application that uses videos and data bases ,all in one server.
I am thinking that isolating them , by having a web server , and another two servers ,one for the data base,and the other for vidoes,will improve my application performance.
How JSP could help me doing this? Is it really possible for those servers to communicate together using JSP?
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"cs student",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp .
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please choose a new name which meets the requirements.
Thanks.
 
Jimi Rock
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am cs student , I have registered again with my real name "Jimi Rock" . I am still waiting for an answer to my topic "Could JSP connect multiservers?".
Thanks for all.
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can put your database on a different server. Of course, it would not be a web server, but a database server It is also quite common to serve high-volume static HTML content from a different server from the dynamic, lower-volume content. If the site structure allows this.
If there's any kind of volume, the videos would certainly be served from a separate server.
Should there be a fair bit of modeling/processing, an separate EJB container might be an idea.
As to communications between these parts, there are a few points that could be made. First, if you would use Java based servers for all of the above (not necessarily the best choice) they could communicate with each other using RMI. But do they really need to communicate? All you will probably need to do is, in your JSPs, embed simple links (plugin, img, anchor) to the resources on the other servers.
- Peter
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for changing your name. We do appreciate it. I hope the above answer was useful.
 
Jimi Rock
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Peter,
Thanks for your reply, it contains really the answer that I wanted.
I would be grateful for you (or any one) if you could explain more about the relation ship between JSP and EJB, and if you could answer the following question:
What is the difference between java beans and EJB, and EJB server.
Thanks for all,
Jimi.
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are more likely to get a sensible answer to that in the J2EE forum, which deals with EJBs and such. I suggest you ask there.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic