Ocmjea Assignment Of Rents

This post has been moved to http://srinichekuri.com/2013/06/04/sceaocmjea-assignment/


Today I got the magical email that I have passed assignment with a score of 146/160. Needless to say, I was very happy. I am blogging my experience with the hope that future aspirants will benefit from this.

I have submitted Assignment about 10 days before voucher expires.To start I have downloaded the assignment almost immediately after my Step-1 which started my clock(for people who don’t know Step 2 and Step 3 should be done within six months after the assignment is downloaded). Well if the question is did it actually take six month to complete this project, the answer is a big NO. I have started working on it for few hours everyday for 2 weeks. When I understood the assignment well and designed the system, I also drew class diagrams, sequence diagrams on scrap papers and then I stopped. I guess I was thinking that the challenging part is complete and I had to take care of the boring part( documenting it).
When I took up the project again after 5 months, I realized that it was a mistake due to following reasons:

  • The break wiped out project from my memory and I had to start all over again. Ofcourse my design that I scrapped on paper really helped me to get it all back.
  • I have under estimated deployment diagram. I never had to decide on hardware profile before and this turned out to be quite challenging.
  • UML took good chunk of time. By UML I mean deciding on the tool, planning on how you project your diagrams to make evaluation easy and actually drawing them took some time.
  • Documenting did take some time.

The project that was assigned to me was a web application with peak usage of 200 users. The domain diagram had 11 classes.
I have worked on UML diagrams in following order:
Class Diagram:
I have decided to divide my class diagrams into 2 parts by separating out domain classes. Although I started out with a thought to accommodate all the classes into one diagram, I thought that domain classes can be shown separately just to avoid clutter. This worked out pretty well for me. I have used various patterns like MVC, Factory, Business Delegate, Proxy Pattern, Data Access Object, Value Object, Transfer Object and Domain store. I have used following technologies/frameworks:

  •     Struts 2.0 for presentation layer.
  •     EJB 3.0 enterprise beans for session and transaction management.
  •     JPA for persistence.
  •     Java Mail API for email notification.
  •     Spring 3.0 for Authentication and Authorization.
  •     Spring 3.0 for dependency injection, aspect-oriented programming.
  •     Log4j for logging.
  •     WebServices.
  •     Ehcache for Caching (Out of box with Spring 3.0).

My class diagram also included few classes and jsps for user scenarios that were not mentioned in the requirement. For Eg: Maintenance module was not mentioned in my assignment, I have included that after adding proper assumptions.
In all I had 9 jsps, 25 classes and 11 domain objects.
Although I mentioned class names for value objects and transfer Objects, I didn’t show them in my class diagram.

Sequence Diagram:
I had six sequence diagrams in my project. I made sure all the use cases that are mentioned in assignment are addressed here. I had to do some reading for this as I found that UML 2 had good features to represent our views. I have used two opts.

Component Diagram:
I have done this after I was almost done with class diagram and know what to be done in sequence diagrams. This helped me with all the components that would go under various tiers.

Deployment Diagram:
This was a very good learning experience in whole of the project. Having worked for multinational companies all through my career, I never go to involve myself in hardware discussions. I did however have experience working on a projects where I had to make decisions on over all architecture (Firewalls, load balancer, server clustering, hot backups etc). This was the strategy that I have followed before deciding on the hardware profile and the vendor that would host my application

  • In-house hosting costs vs Outsourcing hosting costs
  • Privacy compromises for in-house vs outsourcing.
  • Licensing costs
  • Resource costs for maintenance

For my project, privacy was not a concern (added this to assumption as well) and the cost of hosting in house by buying a server was too high (Eg: Cost of IBM Power 710 Server, 4 core 4.2 Ghz with 8GB RAM, Rack mount 2 x 146 GB SFF Harddisk (IBM AIX 5.3 operating system) is $6255 without other licensing costs and resource costs). I have decided to outsource hosting for my application. The advantage in my case for outsourcing was that maintenance costs(possibly licensing costs) were included in hosting costs.

For Outsourcing I have looked at two options

  • Rent Physical Server: I have looked into multiple providers but the cheapest option was provided by rackspace.com. It costs $262.80/month for box with 4GB RAM, 2 core 160 GB disk space (Linux operating system)
  • Cloud Solution: Again there were multiple that provided cloud solutions but I best I found was Amazon Elastic Compute Cloud (Amazon EC2) service. The price for ‘3 year upfront option’ for ‘M1 Large Instance’ $384.

I have decided to go for Amazon Ec2 as it had other advantages.

Amazon Elastic Compute Cloud (Amazon EC2) services seem to be secure, reliable and have scalability options for increased traffic in future.

  • Load Balancing: This service provides elastic load balancing which automatically distributes incoming application traffic across multiple Amazon EC2 instances. This has capability to detect unhealthy instances within a pool and automatically reroute traffic to healthy instances.
  • Hardware/Software Application Server – Primary: I chose ‘M1 Large Instance’ option which provides 7.5 GB of memory, 4 EC2 Compute units (2 Virtual cores with 2 EC2 compute units each, 850 GB of disk space, 64-bit platform). Operating System is Red Hat Enterprise Linux. Application Server is IBM Websphere.
  • Application Server – Backup:  I chose ‘M1 Medium Instance’ option which provides 3.75 GB of memory, 2 EC2 Compute Units (1 Virtual core with 2 EC2 Compute units each, 410 GB of disk space, 64 bit platform). Operating System is Red Hat Enterprise Linux. Application Server is IBM Websphere.
  • Database (Primary/Backup): The package selected above comes with local installation of database. Following were chosen for this application:
    • Microsoft SQL Server-Standard
    • Windows 2008 R2 6.1 (Operating System)
  • Scalability: Amazon EC2 services provide auto scaling which scales up automatically to maintain performance in case of spikes.
  • Pricing:
    • Application Server+Database(primary) – 3 year upfront option for $384 (Amazon EC2 offers various options but this is the cheapest)
    • Application Server+Database(Backup) – 3 year upfront option for $192
    • Projected operating budget for hardware/software for 3 years = $384 + $192= $576

I had about 10 assumptions. I have put all assumptions that effected my design/hardware/software decisions.

Risks and Mitigation Plan:
I had about 12-15 risks and mitigations strategies listed. I have sorted the risks in the order of their importance so that the top risk is shown at the top.

I have provided some extensive write-up for each section. I wanted to make sure that all my thoughts were put in there as my main motto was to make sure that evaluator understands everything that I had in mind. A lot of documentation was done as I was doing UML diagrams to diversify my work.

Creating Jar file:
I have zipped all my files and changed the extension to .jar. (We can as well create a jar from command prompt – google it).

SCEA blogs:

Reference Material:

Questions I had and how I addressed them:

  • How detail should class diagram be?
    Pretty detail, but make sure that details like patterns, methods, method parameters are visible. I advice to not include any classes that would add clutter (DTO, Transfer objects, Value Objects etc.). Don’t compromise on quality of class diagram for other factors like restricting class diagram to one page.
  • Do I have to show jsps in class diagram?
  • Should I show DTO/Transfer Objects/Value Objects ?
    You have to decide if this makes any sense to show them. I didn’t show any DTO, Transfer Objects and Value Objects. I just mentioned them as parameters in methods and I did mention them in my write up for class diagram.
  • Should getter/setter methods in a class be shown?
  • What tool did I use for UML diagrams?
    MS Visio 2010
  • What format of images did I use for UML diagrams?
    I have converted all my UML diagrams to PNG format. I found this format to be more compact in size without any compromise in quality.
  • How did I convert UML diagrams to images?
    I have used SnagIt. SnagIt has settings to capture a scrolling page and later I have cut the unwanted area and saved the image in PNG format.

My other posts related to SCEA: SCEA/OCMJEA Experience (Step-1), SCEA/OCMJEA Essay

Like this:



I’d like to share my experiences with the Sun Certified Enterprise Architect for the Java Platform, Enterprise Edition 5 (SCEA 5) certification. There was a couple of unclear things regarding the assignment and its deliverables and I’ve learned some interesting things. Mostly about hardware estimation and deployment environments such as the “clouds”, both of which may be of an interest to somebody aiming at this certification. I only know that I passed but I do not know how well, so my way of doing things, though sufficient, may not be the best one.

The value of the certification

This certification was really valuable for me, because:

  • I had to read a couple of important books that I always wanted to read but never found the time to do so (including Real World Java EE Patterns – Rethinking Best Practices,  EJB 3 in Action, UML 2 and the Unified Process: Practical Object-Oriented Analysis and Design (2nd Edition), Architecting Enterprise Solutions: Patterns for High-Capability Internet-based Systems, Design Patterns: Elements of Reusable Object-Oriented Software by the Gang of Four, Core J2EE Patterns)
  • I got an overview of the complete Java EE landscape and the non-functional characteristics of a Java EE application and how they are impacted by the individual technological and architectural choices
  • I had finally an opportunity to use UML in practice, including the determination of the appropriate level of detail and the proper ways to represent some concepts (like non-intrusive representation of an iteration over a collection)

Step 1: The knowledge test

About the test: You get 64 questions and 2 hours and need 57% (37 questions) to pass. About half of the questions are multiple-choice and you must select all the correct answers to get the points (I believe that they tell you how many correct answers there are).

The test was quite challenging even though I answered ~ 3/4 questions correctly. Paradoxically, the least I gained in Web Tier Technologies, which in practice I use the most. The main problems were:

  • Missing knowledge
    My resources (the Sun Certified Enterprise Architect for J2EE Technology Study Guide book and an additional material regarding tiered architectures (this is a really important topic), EJB3 and JPA) were pretty good, but I completely missed information about JCA and few “obscure” topics like the security limitations of Java Web Start and JVM’s bytecode verification. I estimate that in total I missed about 10% of the knowledge needed.  It’s important not to skip the least used parts of Java EE, like those mentioned above, JAX-WS etc. You should know about Ajax support in JSF and of course you must know the essential changes between EJB 2.x and 3.0.
  • Multiple-choice test
    As mentioned, most questions have several correct answers and you must select all. Selecting the first ones is easy but the last one is sometimes/often difficult to choose, see the next point. It’s better to concentrate first on the questions with 1 or only few responses because there is a higher probability that you will get it right.
  • Unclear questions and answers
    As usual with tests, if you aren’t on the same “brain wave” as the test author, some questions and answers will not be sufficiently clear to you, which is further complicated if you aren’t native English speaker. The key is in determining correctly what, in the question or answers, is really important and what is only a “decoration”. Inevitably, due to missing knowledge, practice, or a different thinking process than the author’s, you will sometimes put too much stress on an unimportant fact or, conversely, neglect something that the author considered to be essential.  For example:
    • Does the emphasis on “ease of development” imply the preference of JPA over JDBC? I guess so but who knows what the author thinks?
    • A JEE application needs to communicate with an old terminal server, will you use a session-bean using a screen-scraper or JDBC to access directly the DB of the server? – In the description there was no mention of the server having any database, so how may I know whether it has one? On the other hand, screen-scraping seems to be something more suitable to a JCA adapter than a @Stateless bean… .
    • A couple of questions required that I select the proper combination of competing technologies (such as JPA vs. JDBC) for a particular model situation. Because each technology has some benefits and disadvantages, it was difficult to pick the right one because the short problem statement didn’t give me enough information to be sure how these pluses and minuses are important for the author.


  • Learn the advantages and disadvantages of the alternative technologies in each layer (JSF vs. JSP with JSTL etc.) and when one is more suitable then the other. You will employ this knowledge also in the parts 2 and 3, so it’s really important. After all, you want to be an architect .
  • Though this is Java EE exam, don’t push the “cool” technologies (JSF, EJB, JPA, …) everywhere and don’t do or avoid doing something only because in general it is considered to be a good or bad practice, you have to really decide based on the actual situation at hand and a rational consideration of the pros and cons. For example even using JSP with JSTL tags to do database queries may be the most suitable solution in some special case.
  • As usual: read the problem statement and the answers thoroughly and don’t let your pre-existing preferences and concepts form your decision.
  • It’s important to have some general knowledge outside of the scope of the exam preparation books. For example you should know what spoofing and tampering are.
  • Read sample questions with answers or a discussion on the Internet (e.g. the JavaRanch SCEA forum) – having seen a couple of similar questions and learning what others consider important in the questions and their answers will make it easier to understand and assess correctly a question you might get. (Thanks to David Z. for this advice.)

Step 2: The assignment

This assignment is the core of the certification, and it took me a considerable amount of time, lot of it spent by searching for UML wisdom (how to express some specific ideas in an appropriate way on a particular diagram), by estimating the resource requirements of the application and by exploring and comparing deployment environments and their non-functional characteristics (Amazon Cloud & other offerings, various physical and virtual server providers etc.). I could spend a lot less time on the deployment part but I really wanted to go into the detail to make it clear for myself.

First of all, make sure to read the documents [1] and [2] (see Resources below) thoroughly, they will make many things clear. Both are created by Humphrey Sheil, one of the essential people behind SCEA 5.


You will receive a brief introduction to the customer’s company and her needs for a Java EE application, a structured description of the main requirements, a domain model, and few use case diagrams. And you are expected to deliever the following:

  • A class diagram
  • A component diagram
  • A deployment diagram that describes the proposed physical layout of the major tiers
  • A Sequence or Collaboration diagram for each use case
  • The top three technical risks & their mitigation strategies

Understanding what to do

The assignment is quite vague and only specifies a very high-level description of the main use cases and thus there are many open many questions:

  • The assignment itself seems to be incomplete, the requirements (“Workshop Output”) mention things that are not reflected by its other parts, namely the use case diagrams, and miss information necessary for the design. For example it mentioned that a visualisation of the “product” that users may design for themselves via the webapp under construction is very important and that the customer has therefore procured a modeling tool, which can render various visualizations from an XML input. But no UC contained an invocation of the visualization and there were no details regarding the communication means supported by the tool (webservice, something else, command line, or only GUI?). Therefore you have to fill the missing parts for yourself and replace the missing information with assumptions, perhaps adding the unclear element to the list of risks.
  • What about all the common parts of an enterprise web application that aren’t mentioned explicitly in the assignment, like user registration/login, administration? 
Answer as per [1]: You should include them. So I added few JSPs and one or two manager EJBs without going into any detail, providing only a draft of the functionality to present that I’m aware of it.
  • What should be the level of detail of the Class and Component diagrams? (See [4] for the distinction between analytical, design and implementation classes and the corresponding level of detail/abstraction.) According to [1], quite a low one, but still on the design level.
    • My domain model provided with the assignment had 11 entities and the class diagram I’ve produced had 25 classes plus 8 views (namely JSPs). The level of detail of the class diagram was limited by the need to fit it on a single page, so it was on quite a high level, including the entities, important manager EJBs and few other classes representing important architectural concepts (a cache, an interceptor, a DAO for accessing an external tool,…).
    • The domain model maps to classes nearly directly, only with few small modifications and extensions (like introducing a parent class) , of course with the important added information of @Entity or @Embeddable, where appropriate.
  • Sequence Diagrams (SD) – shall the UI controller be included? Or even the JSPs? I did include both.
    • I kept SDs on a rather high level, using only as little special constructs as possible, like once a loop for expressing that something is done for each item of a collection, a ref to express the fact that an SD depends on the outcome of another SD, opt and alt, both once, where I wanted to depict an important operation that doesn’t need to be performed and to stress  alternative paths.
  • Component Diagram (CD) – what is a component, i.e. the proper level of detail?
    • According to the instructions in the assignment itself: “Examples of components are Enterprise JavaBeanTM (EJBTM), servlets, …”
    • According to [1] and [2], the CD should be more like a package diagram, i.e. components should be on a higher level than a single class (EJB/JSP/…), and that’s what I did, creating components (as empty boxes) like “Design Logic and Persistence”, “Customer Search”, “Admin UI”, “User Management and Persistence”, “LDAP DAO”, in total 14 of them in 3 layers plus 3 external systems, connecting them only with the uses relationship (—->), i.e. no interfaces, ports etc.
    • [1] suggests depicting security constraints on admin pages, more detailed JSPs etc., but this isn’t in [2]; I followed [2]

Designing the solution

The key part is of course the solution itself, the various diagrams are only its visible manifestation, not the thing itself. You have to decide what parts should the system have, how will they interact, how will that ensure that the non-functional and functional requirements are met etc. Note down any risk you discover or an assumption that you make.

The diagrams

Once the proper level of detail is clear and you have the solution in you mind, it isn’t too difficult to draw the class, component, sequence (or collaboration), and deployment diagrams. You may be sometimes unsure how to depict something while keeping the same level of detail, so a good UML book is handy. A good UML editor is also necessary. I used Visual Paradigm (Modeller Edition), which drove me nuts sometimes, being more of a hindrance than a help, but it was certainly better than Paintbrush.

The deployment: Resource estimation and hardware selection

Estimating the resources needed by the application and proposing a hardware providing them was perhaps the most difficult and time-consuming task for me, because all of that was completely new to me. Actually it isn’t that important part of the assignment, you can perhaps just guess something and do not need to propose any particular hardware (as H. Sheil says in [2] at the page 7, no significant marks are allocated to this), but for me the main purpose of the certification was to learn.

The important questions here are:

  • How to estimate the resource requirements?
  • Should we consider horizontal SW scaling, namely multiple AS instances on a single physical node?
  • What HW and deployment environment (physical, virtual dedicated server(s), a cloud) to choose?

How to estimate the resource requirements?

How to assess the HW necessary? Is there enough input information? I think it isn’t, also, you can’t really know the real resource requirements without a proper load testing. But you can and should perform an “informed guess”.

  • See an explanation why you can’t really estimate the HW in a JavaRanch forum. And a disagreeing follow-up: “Yes. The exam specifies the no. of concurrent users, the required up time or words to that effect. At least mine did. The size of a typical request can be reasonably guessed from the estimated maximum size of the web page in the application . The tps [transactions per second] can be derived from the above two.”

I had only a little idea of what the resource requirements of an enterprise web application may be, even knowing the availability requirements and number of concurrent users from the assignment. The requirements of each application are of course different but I wanted to find out at least some limits within which my estimate should be, and fortunately I had competent collegues willing to help (thanks you, David, Alda and Mishanek!). So below are two examples that can give you an idea what you may or may not need.

Example 1: A very high-traffic enterprise web application

The application is a J2EE learning management software that must support 2000 concurrent users with the availability of 24/7. It’s use of the DB is far from being efficient and thus the DB HW must be very powerful. The infrastructure is:

  • 2 physical Websphere nodes (and it’s been considered to have 2 AS instances on each)
    • 4 GB heap (this proved to be enough; 2GB are left for the OS)
    • can use up to 8 virtual processors
    • no session failover due to inability of the JEE application itself
    • Scalability: WebSphere needs for double users approx. 2.5 increase in CPU (verified in this case, likely not generally applicable)
    • Websphere itself can scale nearly linearly with factor 0.9 – 0.95 but it also depends a lot on the application
  • Database
    • master-slave with automatic fail-over
    • 32 GB RAM
    • 24 (virtual) processors
Example 2: Sizing HW for the Liferay Portal

Liferay Portal for 5000 registered users with 500 of them accessing it concurrently would need an application server with 4GB memory and a 3GHz quad-core Xeon processor; for the database, a server below 4GB/1-quad 3GHz would suffice.

Example 3: Recommended minimum for a production WebSphere AS

IBM recommends: “Typical deployments of IBM WebSphere Application Server v7.0 require at least a High-CPU Medium instance to have access to enough physical memory and computing power. A small instance type is sufficient for development, single-user purposes only.” That means 1.7GB RAM and 2 (virtual) cores each with the power of 2.5-3.0 GHz 2007 Opteron or Xeon processor.

Because this is the minimum production configuration to run WebSphere, we can take is as the minimum configuration for any “standard” Java EE web application.


Given the examples above, other information, and my requirement for 200 concurrent users doing no resource-intensive actions and 10h/day availability,  I believe one 4GB, 2-core 2.5GHz machine running both a single AS and the DB would be able to satisfy the (rather friendly) performance requirements in my assignment. If running on Amazon EC2 with their great SLA, it would be also available enough with future scalability possible either by increasing the resources or by  splitting the DB out of the machine – but such a single machine solution doesn’t sound enough “enterprisy” so I’ve chosen a more classical one with multiple but weak (not to waste money) virtual machines from Amazon EC2.

Quote: “Oftentimes installations find that their database server runs out of capacity much sooner than the WebLogic Server does. You must plan for a database server that is sufficiently robust to handle the application. Typically, a good application will require a database three to four times more powerful than the application server hardware.” [the source is unknown]

Should we consider running multiple AS instances on a single physical node?

“It is usually sufficient to create a single server instance on a machine, since the Application
Server and accompanying JVM are both designed to scale to multiple processors. However, it
can be beneficial to create multiple instances on one machine for application isolation and
rolling upgrades.” [Sun Java System Application Server 9.1 Deployment Planning Guide, p22]

“2 processes can utilize CPU and memory better than 1 (rule of thumb: 1 instance for every 2 CPUs)” [I haven't noted down the source of this advice ]

I used a low-resource machines so running multiple SW instances was not an option for me anyway.

What HW and deployment environment to choose?

To simplify my life, I didn’t consider all the applicable hardware that you can buy but only the offerings of a few providers of physical and virtual server hosting and cloud environments.

You may choose on of three deployment environments (provided that you don’t want to run your own one):

  1. Hire a physical server – the most expensive but may be more cost-effective in the long term, especially if there is permanent high load
  2. Hire a Virtual Private Server (VPS) – the virtual servers offerings have usually rather low resources (such as 0.5-1.5 GB, ~ 1 GHz) and are thus rarely suitable for Java EE
  3. Hire a virtual server running in a cloud – very flexible (easy addition of a new instance, scale an instance up/down only with a restart), may provide very good SLA, but the final price may be much higher than the price of the virtual server itself due to various small fees that accumulate a lot. See Stack Overflow: Is the Cloud ready for an Enterprise Java web application? Seeking a JEE hosting advice.

Let’s have a look at some of the physical and VPS offerings:

  • ServInt VPS: Unlimited VPS: 2GB, RADI 10, $129/m, or Super VPS with 4GB but still only a 1 single-core CPU
  • AbcHost.cz – lease and hosting of a dedicated physical server, including
    • 2*dual core AMD Opteron 2,6GHz, 8GB RAM – 4800 CZK/$230 (Sun Fire X2200 M2 with Opteron 2218)
    • 2*quad core AMD Opteron 2,2GHz, 8GB RAM – 5800 CZK/$290 (Sun Fire X2200 M2 with Opteron 2354)
    • BM xSeries 335 1U server,  CPU Intel Xeon 2,4 GHz, 2GB RAM, 2*36GB HDD@10k w/ RAID 1 (mirroring) – 2890CZK/$146
    • IBM xSeries 335 1U server, CPU Intel Xeon 2,8 GHz (otherwise as above) – 3190CZK/$155
    • Connectivity 100 Mbps
  • Rackspace as a dedicated server provider:
    • Basic One dedicated server: 1xDual-Core AMD Opteron, 3.5GB RAM, 2x250GB, 7.2K, SATA (RAID1), 2TB Bandwidth – $419/month
    • Basic Two dedicated server: 1xQuad-Core AMD Opteron, 8GB RAM, 3x250GB, 7.2K, SATA (RAID5), 2TB bandwith – $529/mo
  • VPS Performance Comparison (11/2009)

And some cloud offerings:

  • Rackspace as a cloud VPS provider:
    • Rackspace uses Xen, RAID10, every cloud server gets 4 virtual CPUs, 64b. The virtual CPU is *perhaps* an equivalent of Opteron 2347 HE, i.e. 2GHz
    • A basic VPS: 1024 MB RAM, 40 GB HDD ~ $44/mo (the cost of data transfer is perhaps negligible)
    • A more powerful VPS: 4 GB RAM, 160 GB HDD -  $175/mo
    • Rackspace vs. Amazon EC2:
      • (According to Rackspace): the server is persistent, RAID10 storage; EC2 is cheaper but RS has higher performance & higher disk throughput and thus it pays off
        • “Most common VPS offerings only offer the equivalent of 128MB up to 512MB RAM at most. With most VPS offerings, you are not guaranteed the resources that you are paying for,..”
        • “Cloud Server host machines have dual quad core processors. Each Cloud Server is assigned four virtual cores and the amount of CPU cycles allocated to these cores is weighted based on the size of the Cloud Server. For example a 4G Cloud Server will have twice the weight of a 2G Cloud Server.”
      • Rackspace Cloud Servers versus Amazon EC2: Performance Analysis at The Bitsource
      • Some negative experience with Rackspace (in the comment #1) – poor support, problems with crashes and a “totally dysfunctional staff and broken support system”
  • Amazon EC2
    • VPS instances of interest:
      • High-CPU Medium: 1.7GB RAM, 2 virtual cores each w/ 2.5 EC CU; reserved: ~ $96/month (plus traffic etc.)
      • Large instance: 7.5GB, 4 CU (2 virtual cores with 2 CU each); reserved: ~ $190/month (plus traffic etc.)
      • Notice that you can either pay standard hour rates or “reserve” the instance for  a 1 or 3 years fee to get lower hourly rates (which I’ve done when computing the price per month)
    • 1 EC CU (compute unit) = 1.0-1.2 GHz 2007 Opteron or 2007 Xeon processor
    • I/O shared, two priorities: medium or high (i.e. better I/O access)
    • The instances are not persistent, any changes to the filesystem will be lost after a restart, you must use Amazon EBS for a permanent sotrage (and an extra fee)
    • Additional advantages/offerings (for extra money):
      • Elastic Load Balancing => not necessary to include a load balancer of my own
      • Amazon Relational Database Service (RDS) [beta] = MySQL 5.1 running in its own instance + advantages: auto backup, easy storage/mem/cpu scaling [restart required] – e.g. Large DB Instance: (7.5 GB memory, 4 ECUs ~ 2 cores 2GHz each, 64b) . High Availability is being prepared. Check the Amazon RDS DB Instance Sizing Guide.
    • Interesting
      • JBoss middleware for EC2 (beta): JBoss Enterprise Application Platform is built on open standards and integrates JBoss Application Server, Clustering, Cache, Messaging, Hibernate, Seam and JBoss Transactions JTA
      • Websphere at EC2: “Typical deployments of IBM WebSphere Application Server v7.0 require at least a High-CPU Medium instance to have access to enough physical memory and computing power. A small instance type is sufficient for development, single-user purposes only.” A note from from Amazon: “The WebSphere Application Server AMI is 32 bit and works with Small and High-CPU Medium EC2 instance sizes. “
      • MySQL on Amazon EC2: Articles, Blogs, Docs, FAQs
      • MySQL master-slave setup for EC2 – but “We currently don’t automatically promote the slave to master as this is a very delicate operation. Gotta ensure the master is really not servicing requests first, etc.”
      • JBoss@EC2 perfromance problems discussion (using a large instance)

Given these offerings, I’ve opted for Amazon EC2 and its two medium high-cpu instances for the AS and a large instance for the DB, assuming some secure communication channel (e.g. via VPN) with the external back-end enterprise systems used by the application.


[1] A presentation of Humphrey Sheil (one of the major figures behind SCEA 5): scea-part-two-2009-bof.pdf – a must read and re-read a couple of times; 27 slides only

[2] Chapter 9 of Sun Certified Enterprise Architect for Java™ EE Study Guide, Second Edition, M. Cade, H. Sheil, Prentic Hall 2010, ISBN 0-13-148203-3 – a completely worked-out SCEA assignment whose parts are in [1]; 11 pages. Note: Also in safaribooksonline.com, where you can  get 10-days trial access allowing you to read up to 100 pages from not more than 10 books

[3] JavaRanch SCEA forum – a really valuable source

[4] UML 2 and the Unified Process: Practical Object-Oriented Analysis and Design (2nd Edition)

[5] Architecting Enterprise Solutions: Patterns for High-Capability Internet-based Systems

And even more resources

that you perhaps don’t need and don’t want to study (which I’ve done neither, I only looked into them here or there)

  • Pro Java EE 5 Performance Management and Optimization, Apress
  • Tomcat: So You Want High Performance
  • HP OSMS: Tomcat Sizing Guide for HP ProLiant c-Class Blade Servers
  • MySQL HA with HP
  • JBoss x WAS CE benchmark and its preparation guide, 11/2009
  • Latest WebSphere 7 and .NET Benchmark Results Stir Debate
  • Java EE application server benchmark SPECjAppServer (note: JOPS = jAppServer Operations Per Second): all results (metric, # AS/DB nodes, #cores…), Sun HW+WebLogic+Oracle, 32 core, Glassfish, tomcat, MySQL 64b, 8 cores, 4 AS instances, 1 DB instance, a blog regarding the benchmark of Solaris+Glassfish+Postgres with links to how to scale of Postgres
  • IBM: a list and description of various benchmarks (see especially TPC-E, TPC-App, SPECjbb2005 – order processing app [DB in mem])
  • Introduction to JBoss Cloud
  • Wikipedia – workstation and server CPU brands – Intel Xeon and AMD Opteron – evolution, individual porocessors, … . Current popular server Opterons have speed mostly between cca 1.7 and 3.2 GHz, Xeon between 1.7 and 3.8 GHz (the continual popularity of 1.7 GHz as well as the history of the competition of the processors from this brands show that speed is not everything).

The risks and assumptions

You should have collected a list of risks and assumptions already during the design process. Most, if not all, application will share some risks common to all (enterprise) web application (security, performance etc.) but usually you will also have few specific ones. Select the three most likely and dangerous ones, decide, how to mitigate them.

Step 3: The essay

At present you have to complete the essay before submitting the assignment, but you should do it only after actually finishing the assignment. That’s because even though the questions are generic, the answers are closely related to your particular solution.

The essay consists of 8 questions and you have 90 minutes to answer them, fa ew sentences for each. For me the time was just right (though usually I tend to finish well ahead of a limit ). If you are well prepared, it is not too difficult. The best preparation for the essay is to consider

  1. How and why you do meet the individual non-functional requirements (performance, security, …)
  2. What were the individual technological choices you have done and the other possible alternatives and why you’ve rejected them. You want to be an architect so you must prove that you are able to come up with alternative solutions and select the best one based on sound arguments. Consider the choices pertaining to:
    1. The non-functional requirements in your solution
    2. The communication with external systems
    3. The patterns that you applied
    4. Frameworks that you applied (even beyond the level of detail of the assignemnt deliverables, for example what presentation framework you’ve selected)

Most questions ask you what choice regarding a particular design issue you have made, what were the alternatives, and why you have rejected them. Some may ask also about the risks and mitigation strategies and what would you do if the load grows more then expected.


The exam takes time and requires some experience, but it is a good motivation and opportunity to learn, both theoreticaly and practicaly. It doesn’t prove that you are an architect, but it shows, that you know enough to be able to communicate with one and perhaps sometime will become a real architect. And of course it also shows that you are a determined person

From http://theholyjava.wordpress.com/2010/07/21/my-path-to-scea-5/

0 Replies to “Ocmjea Assignment Of Rents”

Lascia un Commento

L'indirizzo email non verrà pubblicato. I campi obbligatori sono contrassegnati *