Aditya Kumar

Ranch Hand
+ Follow
since Oct 31, 2006
Bangalore, India
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
3
Received in last 30 days
0
Total given
4
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Aditya Kumar


Hi,
I had similar doubts. What Oracle told me was that you should take the training from the country where you live and hold a valid banking account. That, for me, is India and I took it from here.
Good luck with your OCMJEA exam results!
Aditya

How about the components like Database, LDAP Server, Email Server, do I need to show them into the class diagram? These components are not classes, do I need to add them?



No. A Class diagram is just that - a Class diagram and should focus on those classes that YOU will develop in case you code the system. The components that you mentioned are not classes, as you rightly say, and thus should not be in the diagram. However, if you write a class that does the job of, say, emailing people (like a MainSender.java - that will invoke the Email Server) then that class should be present in your class diagram. I hope I am able to clear your doubt.

aditya
Hi Sergio,

Congratulations! Welcome to the club!
..and Thank you for mentioning our names. I am glad to be able to help you.

Hope you celebrated!
aditya
Ok, go ahead then. I was only reiterating what worked for me and what has been advised in Mark Cade's book.
I will advise you to not use Javascript for assignment submission HTMLs. Also, you don't know how it may behave in different browsers. The safe option should be to stick on plain HTML.
Hi Wang,

There is no standard set of rules for stereotypes. I strongly suggest that you do a search of the old archives of this forum and see what other people have used. In any case, you can always use what the Mark Cade & Humphrey Sheil's book suggests as it is the official guide of the exam.

I have seen Mark Cade & Humphrey Sheil's book adding JSP files into the class diagram, should I include JSF (.xhtml files) into my class diagram?


One word answer: Yes. Long answer: I personally am not in favour of having those files in the class diagram but that seems to be the standard practice and that is also what Oracle expects so yes, display technology files should be there in class diagrams.

Do we need to add getters and setters methods into the classes


No, I think it is a bad idea and it would serve no purpose.

As far as UML diagrams are concerned - I suggest you take the examples in the Cade and Sheil Book to be your guiding light. You need to ensure that you use UML2 notation. I think you are over-analyzing this. As long as your UML diagrams are UML2 compliant and you follow generally acceptable UML standards like the one found in Martin Fowler's book, you should be OK. Remember - the real hard work is the architecture and design. The UML is just a way of representing your thoughts.

Thanks
aditya
Sergio,
One more thing - in my assignment it was required that the assignment PDF (problem statement PDF) also be a part of the deliverable JAR. If that is so, do remember to include it in your JAR file.
Thanks
aditya
Hi Sergio,

I still think that the index.html must be on the root and not in the html folder. So in effect, your jar structure could be:

/index.html
/html (all OTHER html files)
/img (all image files)

The reason why I say this is because generally that file is on the root.

Thanks
aditya
hi Sergio,

What is in the scea-AAAAAAAAA (folder)?
Also, where will you have the index.html? I suggest you have the index.html on the root level as that is the first file the evaluator will look for while going through your submission.

Thanks
Aditya
Hi Wang,

Are you referring to Martin Fowler's UML Distilled 3rd Edition or 2nd Edition ? If I am showing it as an attribute, do I need to draw a line to link it to the actual object?



I referred to the 3rd edition. Your doubts are addressed on page 37. You can do either ways, as I said. Generally the more important object types are shown as a class box. So then you will need to connect the two with a line. If you do that, you do not need to show them as attributes in each other's box - that would be redundant information. You can show the primitive types (and some other lesser important objects) as attributes.

What is the full name of Cade's book?



Sun Certified Enterprise Architect for Java EE Study Guide by Mark Cade, Humphrey Sheil. Google it. This book was meant for the JEE 5 version of the test but you can still refer to chapter 9 and 10 as the assignment is common for OCMJEA 5 and 6.

Do you mean that in your example, "User Account" is a component in the component diagram?



No. At least not with that name. For example, you have some code in your project which deals with user authentication/user profile information. So "Generic User Logic" becomes your sub-system. And say, there is one SLSB -- that is the class where most of the user-fetching business logic is present, that SLSB could be a component in that sub-system. Now, there are a few helper classes for that SLSB - some have a business calculation or maybe some have SQL queries required by the main SLSB - those become the helper classes and they together can be a component. So your "Generic User logic" sub-system then has these two components. You should take a look at this example here: UML Component diagram.

I hope this helped.
Aditya
Hi Wang,

#1 - You are here dealing with a confusion about how to deal with a property. What you have mentioned are both ways of property notation 1) Showing it as attribute (in the class box itself) 2) Showing it as an association. You can choose either of the ways. You do not need to show it using both ways. How I did it was that you can choose the important classes to show as a association and the lesser important ones (and the primitive ones) as attributes. if you look closely that is what the IBM example about Flight/Plane has done as well. I will recommend you to also lookup Martin Fowler's UML Distilled, page 37 for further reading.

#2 - This should be an easy problem to tackle. I suggest you read chapter 9 of Cade's book. It clearly shows an example assignment depicting the @stateless and @entity classes. You just need to decide what stereotype to use. Yes, you are also right about including these classes in the class diagram.

#3 - About the components, well there are more than one ways of doing that. A good way (I think) is to first determine the tiers of your application and decide what classes reside in what tier. I did it like that. Once I was done with that segregation, I broke down the tiers further with sub-systems and the components within. For example, if there are some classes (stateless bean(s)) in the business tier that take care of user account related details, for me that is a subsystem and the classes within that could be the components. I also showed a component as "helper classes" (there are, inevitably). If there are another bunch of classes (interface + EJB) that deal with accomplishing a transaction for an entity at the business tier, that is another sub-system having components. I think if you google around and also search some of the archives of this forum, you will have an idea about this.

In any case, I suggest you to read Fowler's UML Distilled - specially for the class diagram and the sequence diagrams. I hope this was helpful.

Thanks,
Aditya

Thank you everyone for the wishes!

Amritendu,

#1 My assessment was that the problem understanding and the documentation of the assignment should take a month (or months). I believe there is no single set timeframe one can achieve this in. If someone works on it 9-10 hours a day, the whole thing can be done in a matter of weeks. But I do understand what you are saying and I will make it clear on the post with an update.

#2 As you said, short/Crisp writing should suffice for the essay exam. I will update the post to reflect that. About the preparation I only meant to say that immediately after you submit the assignment is the time when you are best prepared to give the essay exam (compared to, say, taking a break of a couple of weeks and then giving the essay).

Thank you for your comments.

aditya
Not in class diagram. But if you think these are an integral part of your system you may want to depict them in your component diagram.
Thank you, Tsang.

It would be great to know any feedback on my blogposts. In case there are anythings that I have missed or some errors creeping in? Please do let me know!

aditya
Hi,

I passed the OCMJEA earlier this month. Before my memory got stale, I made it a point to write about my experiences with the OCMJEA part1/2/3. I have written about it in length and these are going to be "longreads". The links redirect to my blog.

1. My experience with Part-1.
2. My experience with Part2/3.

Please feel free to leave comments here. You can also email me via my blog. Hoping this helps all the other aspirants. Good luck!

Best,
aditya