aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes sun450 as webcontainer ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "sun450 as webcontainer ?" Watch "sun450 as webcontainer ?" New topic
Author

sun450 as webcontainer ?

Uwe Schäfer
Ranch Hand

Joined: Mar 15, 2005
Posts: 52
Hi

unfortunately (in every respect) I have no practical experience with sparc-based hardware. My question is: would a well-equipped (4cpus, 4g ram) be sufficient to run a decent web container as a client to an EJB Server ?
Yes, I am aware of the trade-offs resulting from using 2 VMs as seperate Webcontainer/EJB-Server (remotecalls, etc...).

thanks, uwe


scja|scjp|scjd|scwcd|scbcd|scdjws|scmad
Lars Behnke
Ranch Hand

Joined: May 09, 2006
Posts: 76
Hi Uwe,

are you referring to the SCEA assignment or is this a general question?
Please clarify.

Regards,
Lars
Uwe Schäfer
Ranch Hand

Joined: Mar 15, 2005
Posts: 52
These considerations are part of my assignment. But i feel, i should not disclose it here.

Context is: i have two of the mentioned servers available as web-servers and i am expected to balance the load between �em. That could mean of course

a) balance between two SSL-capable HTTP-Servers and thus colocate Servlet-Container and EJB Server on a seperate hardware,

or - if resources are reasonable -

b) use two HTTP-Server/Servlet-Container combos as clients to an EJB Server (a much more capable machine).
David Follow
Ranch Hand

Joined: Oct 16, 2001
Posts: 223
Hi Uwe,

I assume the two 450 are for pure HTTP-server only (such as Apache, imagine FBN has lots of static content like images and HTML pages). On the E10000 I place the J2EE application server with servlet engine and EJB container colocated. However, although as of now it may be colocated and local interfaces may just be fine, it is worthwhile implementing remote interfaces in case FBN decides to separate the two in the future afterall.
Nowadays, good application servers can optimize remote class once they figured out that the servlet-engine and EJB-container are colocated.

D.


SCJP, SCEA
Lars Behnke
Ranch Hand

Joined: May 09, 2006
Posts: 76
IMHO running a HTTP-Server/Servlet-Container combo on each of the 450's is the appropriate alternative (b) because it scales better. Of course you will have to deal with remote calls, but it is up to you as an architect to find a solution that reduces traffic overhead to a minimum and keeps http sessions slim. My understanding is that the two 450 machines are exclusively reserved of the FBN travel system which means that the bigger part of the web contents should be dynamic.

Lars
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180
Lars,

I agree that most of the content for this application is dynamic but the assignment says:


Interviewer: What type of hardware will be used for deployment?
FBN CIO: We have chosen an E10000 from Sun Microsystems as the machine for the application server, an E6500 to host the Oracle database and two 450's for the web servers. All of these machines are in addition to the E5500 running the Frequent Flyer system.


It says two 450's for the web servers - exactly as David described it. You can, however, make an assumption about a change and explain why.

Regards,
Dan


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Lars Behnke
Ranch Hand

Joined: May 09, 2006
Posts: 76
Hi Dan,

I think I did not make myself clear enough. IMO each of the two 450's runs a HTTP-Server/servlet container combo which *exclusively* hosts the web portion of the FBN travel system and nothing else. The E10000 runs the EJB container which hosts the application's business tier.

Do we still disagree?

Lars
Jeff Belisle
Ranch Hand

Joined: Jun 11, 2006
Posts: 39
My interpretation: WebServers are PURE webservers serving HTTP requests with NO web-containers at all. Its a very common practice to co-locate web & ejb containers, as application servers provide both capabilities.

There is no point in wasting licenses by deploying them separately unless there is a compelling need to scale them individually. However, architecture must not exclude separate deployment option.
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180
Lars,

I agree that your solution uses the available servers better. After all, dedicating two servers out of three just for web servers, is absolutely a waste and the entire app server becomes a single point of failure.

On the other hand, we need to listen to the FBN CIO carefully. And again, if we interpret the term web server in a certain way, we need to state it as an assumption.

If we look at the definition of Web server in wikipedia it says at http://en.wikipedia.org/wiki/Web_server:

The term Web server can mean one of two things:
1.A computer that is responsible for accepting HTTP requests from clients, which are known as Web browsers, and serving them HTTP responses along with optional data contents, which usually are Web pages such as HTML documents and linked objects (images, etc.).
2.A computer program that provides the functionality described in the first sense of the term.


I fully agree with the computer definition - accepting HTTP requests and serving HTTP and responses. Nothing about generating these responses.

Regards,
Dan
Newman Huang
Ranch Hand

Joined: Mar 31, 2003
Posts: 85
i saw the same question before. and i remember someone's post said there is a detail discussion whether to use collocated or distributed in chapter19 of Mastering EJB (you can download the free copy from theserverside). it is worth to take a good looking.


SCJP,SCJD,SCEA
Lars Behnke
Ranch Hand

Joined: May 09, 2006
Posts: 76
However, architecture must not exclude separate deployment option.


Agreed. As matter of fact, I doubt that this deployment issue is of any real concern for the assignment. A good scalable system can deployed in either way.

On the other hand, we need to listen to the FBN CIO carefully. And again, if we interpret the term web server in a certain way, we need to state it as an assumption.


We cannot go without an assumption here. I agree with that. However, can we expect the CIO to know the difference between a web server and servlet container? He is not a technician and both servers serve web contents after all.
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180
Lars,

However, can we expect the CIO to know the difference between a web server and servlet container? He is not a technician and both servers serve web contents after all.


No doubt - this is when a good architect comes into the picture. He/She doesn't take what she/he hears literally. In such a case, she needs to step up and say that such and such is a better architecture and explains and documents it well.

Regards,
Dan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: sun450 as webcontainer ?