jQuery in Action, 2nd edition*
The moose likes Servlets and the fly likes Could JSP connect multiservers? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Could JSP connect multiservers?" Watch "Could JSP connect multiservers?" New topic
Author

Could JSP connect multiservers?

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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

Joined: Jan 07, 1999
Posts: 6920
"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.

Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Jimi Rock
Ranch Hand

Joined: Feb 19, 2001
Posts: 134
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

Joined: Apr 20, 2000
Posts: 3252
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

Joined: Jan 07, 1999
Posts: 6920
Thanks for changing your name. We do appreciate it. I hope the above answer was useful.
Jimi Rock
Ranch Hand

Joined: Feb 19, 2001
Posts: 134
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

Joined: Jan 07, 1999
Posts: 6920
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Could JSP connect multiservers?
 
Similar Threads
difference between web server and appn server
GWT to access Serial or USB port using Java Communications API (javax.comm) or RXTX
Providing dynamic content from separate web/app servers
EJB Servers??
Pass Object from One application to another application