It's not a secret anymore!
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes SCEA - Web Tier Doubts from Mock Test Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "SCEA - Web Tier Doubts from Mock Test" Watch "SCEA - Web Tier Doubts from Mock Test" New topic

SCEA - Web Tier Doubts from Mock Test

Vinod Iyer
Ranch Hand

Joined: Apr 13, 2006
Posts: 53
ABC Company has an old web application built using Servlets/JSP and in-house MVC framework. You are asked for expert advice on improving the quality of code as ABC Company has to spend lot of money time and again even for small changes in the application. Looking at the code, you have observed that lot of java code has been used in JSP and has been duplicated in multiple instances.

Which of the following technologies would you recommend to use?
Choose one answer. a. AJAX
b. Tag Libraries
c. Expression Language
d. Rewrite whole application using JSF.

The answer provided is c. But I would think b is more appropriate since it will help modularize the code and that is the easiest way to solve the problem ABC is facing

Any comments on why c is appropriate??


You are developing an MVC Framework with servlet as the controller and JSP as the view. You want this application to be integrated to monitoring tools like Tivoli, so that whenever an interfacing system is down (database, EJB Services, JMS providers), you would like to invoke the monitoring tool through a proprietary API to alert application maintainence team. The user should be able to see the message.

Where would you put this logic?
Choose one answer.
a. Servlet
b. JSP
c. Servlet Filter

I would say a or c both will work out. c might be more elegant since you can have one filter catching exceptions , one filter per system resource etc etc

But a is given as correct choice

You are designing a travel booking application for employees of your organization. Through this application, employees can book online for various road, rail and air transport. Once the customer confirms the booking, your application will make calls to these transport companies through web services.

Which of the following would be useful for you to implement this?
Choose one answer.
a. Stateless Session Beans
b. Servlets/JSP
c. Stateful Session Beans
d. Enterprise Service Bus.

Option b is given as answer . Rational : Once the user makes selections, web service invocations can be done from the web layer. There is no need to use session beans as there are no requirements for transactions/scalability.

But in booking is transaction not mandatory , I mean should it even be specified ? I thought it is self understood that any booking process should have transactions.

So I thought c or even d ( communicating across various booking source )

Amandeep Singh
Ranch Hand

Joined: Jul 17, 2008
Posts: 850

I almost agree with your answers. Can you quote your mock test source?

SCJP 1.4, SCWCD 5, SCBCD 5, OCPJWSD 5,SCEA-1, Started Assignment Part 2
My blog-
Vinod Iyer
Ranch Hand

Joined: Apr 13, 2006
Posts: 53
Above qstns are from Whizlabs !
I agree. Here's the link:
subject: SCEA - Web Tier Doubts from Mock Test
It's not a secret anymore!