File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Allen/Bambara SCEA guide - strange Q's 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 "Allen/Bambara SCEA guide - strange Q Watch "Allen/Bambara SCEA guide - strange Q New topic
Author

Allen/Bambara SCEA guide - strange Q's

Piotr Uryga
Ranch Hand

Joined: May 25, 2006
Posts: 68
Hello Ranchers

I'm just digging through Allen/Bambara SCEA Guide and I'm confused after finishing Chapter 4 self test. There are couple of questions which I frankly don't understand. It seems like I don't get some information which is required to answer the question.
For example

If the telephone company were to rewrite its existing legacy code using newer J2EE technology, what technology would you choose to accommodate both the block purchase and the individual query?
A. Java Applet technology for the CORBA call and custom socket programming for vanity number requests
B. Java Servlet API for the CORBA call and JSP for the custom socket programming
C. Entity EJBs for both
D. Session EJBs for both
E. JNDI for both
F. MQ Series with a JMS based solution for both

It's hard to me to determine whole use case basing on such problem description. And then the answer:

"D is correct. Session beans can be used for making both the CORBA call for block purchase of telephone numbers and the custom synchronous call to request a special vanity number.

Riiight, but how would I know that CORBA is used in this legacy system ?
And the last, but not least another quote from answer:

The question specifically says that a synchronous mechanism is to be used for the vanity number request. The CORBA RPC call for TN reservation is also synchronous"


What da heck ? Where this question specifically says about that synchronous mechanism ? I just feel like I'm reading part of a question and the other part is written somewhere else.
I have more questions of that kind...

I've searched old threads and many of You recommended this book, so maybe I'm just tired and this is logical and obvious. So please clarify it to me if You're familiar with this problem.

TIA!
[ October 10, 2006: Message edited by: Piotr Uryga ]


SCJP 1.4, SCWCD 1.4, SCBCD 5, SCEA
Newman Huang
Ranch Hand

Joined: Mar 31, 2003
Posts: 85
hi, Piotr
i saw you bang your head on the wall
sometimes, the meaning of scenario describing in question is implied. the question is to ask what is appropriate solution for rewriting the legacy code for handling business logic. because it is a problem related with integration of heterologous legacy system, it is naturally associated with CORBA. on the other side, it need to implement 'block' purchase. so it need a 'synchronous' mechanism.


SCJP,SCJD,SCEA
Piotr Uryga
Ranch Hand

Joined: May 25, 2006
Posts: 68
Originally posted by Newman Huang:
hi, Piotr
i saw you bang your head on the wall
sometimes, the meaning of scenario describing in question is implied. the question is to ask what is appropriate solution for rewriting the legacy code for handling business logic. because it is a problem related with integration of heterologous legacy system, it is naturally associated with CORBA. on the other side, it need to implement 'block' purchase. so it need a 'synchronous' mechanism.

Thanks for Your answer
How would You know (basing on the questions) that business logic isn't in f.e. DB stored procedures ? For me - makins such assumptions (like: logic is certainly written CORBA) is dangerous. IMO: Architect can't judge technology used just on assumptions...
Or maybe I'm not getting the point of this kind questions.
Newman Huang
Ranch Hand

Joined: Mar 31, 2003
Posts: 85

How would You know (basing on the questions) that business logic isn't in f.e. DB stored procedures ?

hi, Pitro, i don't completely understand what this sentence means. is it important whether the business logic is existed in DB or not in DB? ejb is the appropriate component for business encapsulation, no matter what the business logic is in DB or not in DB. also, i think assumption is not a bad thing for a person, no matter he is or not an architect.
Piotr Uryga
Ranch Hand

Joined: May 25, 2006
Posts: 68
Originally posted by Newman Huang:

hi, Pitro, i don't completely understand what this sentence means. is it important whether the business logic is existed in DB or not in DB? ejb is the appropriate component for business encapsulation, no matter what the business logic is in DB or not in DB. also, i think assumption is not a bad thing for a person, no matter he is or not an architect.


To clarify what I meant and what is a purpose of this topic:
Read once again the whole question from the book and then quoted by me part of answer. There isn't anything about CORBA in the question text, but in answer they're assuming that synchronous mechanism and CORBA are used.
That's why I'm

And thanks I know that EJB is apropriate, but which one of EJB types would use for this particular case (question) ? The question does not say what is "block purchase" and "individual query". Ar maybe it does and this is only my lack of english skills
[ October 22, 2006: Message edited by: Piotr Uryga ]
Mat Williams
Ranch Hand

Joined: Jul 20, 2005
Posts: 215
HI ya,

yes questions like this are hard. The only advice I can offer is the way I work through them which is
a) clearly wrong
b) maybe but not not a good solution
c) doubtful as there is no mention of a database
d) possibly - a known J2EE preferred approach
e) clearly wrong - JNDI is not going to allow you to implement logic just look up objects that do implement logic
f) not likely

from this I would choose option d) simply because it was the one I thought that they wanted and it was more likely to be correct than the other options.

One thing I have found from many of the SUN exams and other certifications I have done is that the questions are often more a case of choose the option that is less clearly wrong than a case of choose the option that is clearly correct.

HTH

Matt
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Allen/Bambara SCEA guide - strange Q's