aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Deployment Diagram and Part 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Deployment Diagram and Part 2" Watch "Deployment Diagram and Part 2" New topic
Author

Deployment Diagram and Part 2

Kumar Amit
Ranch Hand

Joined: Aug 13, 2001
Posts: 103
Hi Friends,
I am planning to package webapp.war and ejbapp.jar in a single .ear file. Do I need to display both webapp.jar and ejbapp.jar in the deployment diagram in addition to .ear file OR displaying single .ear file is sufficient?

Also, do I need to specify hardware profile i.e. CPU, RAM, disk configuration, network requirements of machines in deployment diagram? If yes, then how?


Thanks,
Amit


SCJP, SCJD, SCEA
Sharma Ashutosh
Bartender

Joined: Apr 06, 2001
Posts: 346
Just to be on the safer side-provide as much detail as possible for deployment diagram-it carries good number of marks.


Ashutosh Sharma
SCJP 1.2, SCEA 5, Brainbench certified J2EE Developer, Documentum Certified Professional
Blog : http://scea5-passingpart2and3.blogspot.com/
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30325
    
150

Kumar Amit wrote:Hi Friends,
I am planning to package webapp.war and ejbapp.jar in a single .ear file. Do I need to display both webapp.jar and ejbapp.jar in the deployment diagram in addition to .ear file OR displaying single .ear file is sufficient?

I didn't provide either. I did my deployment diagram on the level of the servers/resources I need. If I was putting, one, I'd just put the ear. That's the unit of deployment.

Kumar Amit wrote:Also, do I need to specify hardware profile i.e. CPU, RAM, disk configuration, network requirements of machines in deployment diagram? If yes, then how?

I don't believe this belongs in the deployment diagram either. However since the diagram is worth so many marks and Cade/Sheil said to include the hardware profile, I did. I just put it as a textual list under the diagram.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Kumar Amit
Ranch Hand

Joined: Aug 13, 2001
Posts: 103
Thanks Jeanne and Ashutosh. Does this mean that I don't need to show application components in the deployment diagram e.g. JSF/JSP and EJBs?

In chapter 9 of Mark cade's book, he has shown web and app server together in a single cluster. I am planning to show web server seperately from app server even though my web app and ejbs are deployed in a single .ear. Is this an overkill?

Also, do we need to show software profile in addition to hardware profile of the devices e.g. OS - Linux etc in the deployment diagram. Chapter 9 of Mark Cade's does not show software profile.

Thanks
Amit
Sharma Ashutosh
Bartender

Joined: Apr 06, 2001
Posts: 346
Does this mean that I don't need to show application components in the deployment diagram e.g. JSF/JSP and EJBs?

You don't have to show components in deployment diagram but the software bundles into deployment diagram.
In my case-I have shown static contents into web server, .ear into app tier and schemas in EIS tier.
Hope this helps.

In chapter 9 of Mark cade's book, he has shown web and app server together in a single cluster. I am planning to show web server seperately from app server even though my web app and ejbs are deployed in a single .ear. Is this an overkill?

You are doing nothing wrong here.

Also, do we need to show software profile in addition to hardware profile of the devices e.g. OS - Linux etc in the deployment diagram. Chapter 9 of Mark Cade's does not show software profile.

I have done that, shown Solaris 10 on Sun SPARC for EIS tier.....and other software profiles for other tiers.Hope this helps.
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1076
    
  10

I have shown the hardware profile as suggested by cade. I have just added a note in the deployment diagram to show this.


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Kumar Amit
Ranch Hand

Joined: Aug 13, 2001
Posts: 103
Thanks Ashutosh and Ranga.

Can you guide where to display the concrete vendor specific details (both software and hardware) e.g. type of Web server (e.g. IBM HTTP server/Apache), application server (IBM Webshere Application server / Oracle Weblogic) and database (Oracle/DB2)?

As per mark cade's book deployment diagram is vendor agnostic but he has also recommended to provide examples of vendors tech combinations in the submission.

Do we need to create a separate Deployment Diagram depicting vendor technology combinations in addition to the main vendor agnostic deployment diagram?
OR
should we write vendor technology selection details in the index.html?

Thanks
Amit
Kumar Amit
Ranch Hand

Joined: Aug 13, 2001
Posts: 103
Hi Friends,
I have to show firewall in my deployment diagram between reverse web proxy and load balancer as well as between Business Tier and DB tier.

Which UML artifact can I use for the same?

Is it ok to show firewall in a deployment diagram?
Sharma Ashutosh
Bartender

Joined: Apr 06, 2001
Posts: 346
You can create process boundary or the box in the deployment diagram. Encapsulate your H/W, O/S within that box/boundary - show the upper boundary as firewall.
Kumar Amit
Ranch Hand

Joined: Aug 13, 2001
Posts: 103
Sharma Ashutosh wrote:You can create process boundary or the box in the deployment diagram. Encapsulate your H/W, O/S within that box/boundary - show the upper boundary as firewall.

Thanks Ashutosh. So you mean keep all h/w and s/w of the presentation & business tier, web servers and load balancer in one box and DB cluster h/w and s/w in another box?
Sharma Ashutosh
Bartender

Joined: Apr 06, 2001
Posts: 346
Thanks Ashutosh. So you mean keep all h/w and s/w of the presentation & business tier, web servers and load balancer in one box and DB cluster h/w and s/w in another box?

Please go thru some standard deployment diagrams and you will understand what i am talking about. Due to rules of this forum, i can provide some advice and hints not the complete solution.
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1076
    
  10

Kumar Amit wrote: Can you guide where to display the concrete vendor specific details (both software and hardware) e.g. type of Web server (e.g. IBM HTTP server/Apache), application server (IBM Webshere Application server / Oracle Weblogic) and database (Oracle/DB2)?


I am not happy with showing vendor specific stuff in deployment diagram. In fact, I am not mentionint it anywhere. Why should we? - there are many app servers out there in the market which have comparable features - same goes for RDBMS - and OS - Java is basically OS independent, right?

Maybe, I am taking a risk here (similar to not having JSPs in the class diagram), but, I find it hard to agree with showing specific vendors...
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30325
    
150

Ranga,
I agree with you on both points. JSPs don't belong in a class diagram and vendor info doesn't belong in a deployment diagram. I didn't take the risk on the exam though and included both.

See the FAQ for more anomalies between the diagram/test and real life.
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1076
    
  10

I am beginning to think about including JSPs in the class diagram - we can argue they are actually servlets and so they are classes and so can be included in the class diagram (and of course, am panicking and don't want to take risks!)...
but, by specifying vendors, do we put ourselves at risk? for ex. what if I don't mention weblogic and oracle as vendors? will guys at Oracle not like it?
yah, I know this has been discussed a thousand times already, but still...
Kumar Amit
Ranch Hand

Joined: Aug 13, 2001
Posts: 103
Can we keep deployment diagram as vendor-agnostic but provide vendor specific details in the description section of the diagram
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30325
    
150

Ranganathan Kaliyur Mannar wrote:I am beginning to think about including JSPs in the class diagram - we can argue they are actually servlets and so they are classes and so can be included in the class diagram (and of course, am panicking and don't want to take risks!)...

Right. I didn't want to lose points for something silly like JSPs not being included.


Ranganathan Kaliyur Mannar wrote:
but, by specifying vendors, do we put ourselves at risk? for ex. what if I don't mention weblogic and oracle as vendors? will guys at Oracle not like it?

One approach is to say "such as". There should be a server comparable to a SunfireXXX and an app server such as weblogic.
 
Consider Paul's rocket mass heater.
 
subject: Deployment Diagram and Part 2