thuy nguyen

+ Follow
since Aug 02, 2008
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by thuy nguyen

Hello Everyone:

I too just passed part I of the SCEA and want to continue with part II. I got this from Oracle site.

Exam Number: CX-310-301A
Associated Certifications: Sun Certified Enterprise Architect (SCEA) EE5
Assignment Price: TBD
Assignment Registration: This item is currently unavailable while we update the process. If you previously purchased this assignment, the files will be sent to you via email.

Anyone knows any thing?

Thuy Nguyen
I cut and paste this paragraph from the specification:

The message-driven bean class may have superclasses and/or superinterfaces. If the message-driven
bean has superclasses, the methods of the message listener interface, lifecycle callback interceptor
methods, the timeout method, the ejbCreate method, and the methods of the MessageDriven-
Bean interface may be defined in the message-driven bean class or in any of its superclasses. A message-
driven bean class must not have a superclass that is itself a message-driven bean class

Since a MDB can not subclass another MDB, it can only subclass a POJO. It is strange that a POJO can have
"the methods of the message listener interface, lifecycle callback interceptor methods, the timeout method, the ejbCreate method, and the methods of the MessageDriven-Bean interface"
After taking the test and viewing the answers I am still unsure about them. Can you guys clarify:

Which of the following statements are true?
Choose at least one answer. A. Tag files can contain the tag element that allows attributes to be processed The tag element is unique to tag files and is not used within jsp pages.
B. tag files cannot process attributes from the calling jsp page
C. the body of a tag file cannot contain scripting
D. the body of a tag file cannot contain EL statements
E. the body of a tag file can be declared as tagdependent

Answers are A, C, E.
I think C is wrong. "tagdependent" allows the body to have unevaluated scripting

Given a deployment descriptor (WEB-XML) with the following tags

<welcome-file> index.jsp </welcome-file>
<welcome-file> welcome.jsp </welcome-file>
Which of the following statements are true?
Choose at least one answer.
A. This will cause a runtime error, only one welcome-file can be specified A dd can specify multiple welcome files. They will be returned according to the order they are specified.
B. A request ending with / will return index.jsp if it existss
C. If index.jsp does not exist a requrest ending with / will attempt to return welcome.jsp
D. A request that ends with /welc will return the welcome.jsp page

Answers are B, C

I think none of them are correct. If we map the url pattern /* to a servlet. Then this servlet will be served, not the index.jsp or welcome.jsp.

Is the following statement true or false?

A tag that directly extends the TagSupport class provides no direct way of accessing the body of the tag.

Answer: True

I am not sure about the word "accessing the body". The tag can evaluated the body and output it. I just can not parse the content of the body. I chose false by the way.

Which servlet methods are used by servlets to process the data in form fields?
Choose at least one answer.
A. init
B. servlet
C. doForm
D. doGet
E. doFields
F. doPost

Answer: F. But if the action does not specify a method then doGet() is used. I chose also D.

Is the following statement true or false?
A resource that is included using the RequestDispatcher.include method will share attributes of the originating resource.

Answer: True with the explanation "This is true, for example it would be possible to access an attribute within the session using the getAttribute method for the session object. Note however that Java objects would not be shared. "

What if the attributes of the originating resource are defined in page scope as the default, can they be used by the included resouce?

Given a valid deployment descriptor (WEB.XML) containing the following code


And given that cfg is a valid ServletConfig object and ctx is a valid ServletContext object which of the following statements are true?

Choose at least one answer.
A. cfg.getInitParameter("bestwebsite") will return
B. ctx.getInitParameter("bestwebsite") will return
C. ctx.getInitParameter("bestwebsite") will return
D. cfg.getServletContext().getInitParameter("bestwebsite"); will cause a compile time error
E. ctx.getServletConfig().getInitParameter("bestwebsite"); will cause a compile time error

Answer: C.

I think E is also true. We can't get a config object using ctx.getServletConfig().

Which of the following statements are true?
Choose at least one answer.
A. HttpServletResponseWrapper takes a constructor parameter of type HttpServletResponse
B. Filters are called in the order they appear in the deployment descriptor
C. Methods of the wrapper classes must not be overridden The whole point of using the wrappers is that you override methods to extend the functionality of the request or response. For example you might override getOutputStream and create a custom version to modify its contents
D. Filters are an example of the Intercepting Filter design patttern
E. Filters can only be invoked on incoming requests, and not on a dispatcher forward or include Version 2.4 of the Servlet specification introduced the ability to configure filters to be invoked for request dispatcher forward and include calls. This requires the use of the dispatcher tag within the filter-mapping tag of the deployment descriptor

Answer: A,B,D. But I think B is wrong. Filters with the matching url are called first and then the ones matching servelet name.

Which of the following will compile correctly if placed in a jsp file?
<%@ import page=”java.util.*,*” %>

<%@ import=”java.util.*,*” %>

<%@ page import=”java.util.*,*” %>

< import="java.util.*"/>

Answer: C, D. Do we need to have quote around the fully qualified class?

What will happen when you attempt to compile and run the following JSP page contents?

Integer One = new Integer(1);%>
${One + 1}
${Two + 1}

Choose one answer.
A. 1 2 3
B. 2 2 3
C. 1 1
D. 1 null 1

Answer A. I think the answer should be B because ${One + 1} should output 2 since EL would automatically unbox One to be 1.

Thuy Nguyen

I would be able to talk to Karen at Sun's Traing department. She told me that it is not her department that handles the certification process and suggested that I email to After hearing that I had sent 6 emails to this address without getting any response she told me to forward those emails to her so that she can forward to them. I did and within a couple hours I got an response from They appologized for the delay and promised to let me know the result within 5 business days.

Thuy Nguyen
No, it's not a stupid question. I did the essay a few day after uploading the project. And that when I started waiting.

After the 6th week I emailed to,, I placed a called to prometric. They told me to call sun's education service who told me they don't have the phone number for the group handling the certification, and the only way to contact them is thru email. They suggested me to keep emailing!

Hi all,

After 8 weeks of waiting and 6 emails without any response from Sun and Prometric I am very frustrated.

Thuy Nguyen
Thank you Andrew,

I read your book. It gives me a general idea about the scope of the project.

Hi everyone,

I submitted my project in middle of December and took the essay on 12/27/08. Still haven't heard back from Sun. I sent an email to 3 days ago. Still have not get a response from them. Does anyone know how long it normaly takes to get a result from them.


When did you submit your project? I did mine, took essay 6 weeks ago but still not heard back from them.
9 years ago

I submitted my project then took the essay on Dec 27. Sitll have not heard back from Sun.

Thuy Nguyen

9 years ago
My instruction states "All text values, and all fields (which are text only), contain only 8 bit characters, null terminated if less than the maximum length for the field"

I check the example file and all the fields less than the maximum lenghts are padded with spaces at the end.

Do you guys have this problems? what do you do about this?
A non-null value in criteria[n] matches any field
value that begins with criteria[n]. (For example, "Fred" matches "Fred" or "Freddy".)

Should we trim() the criteria in the find method? Otherwise " Fred " would not match either "Fred" of "Freddy"
This is a case when wrapping IOException in RecordNotFoundException or SecurityException is not a good idea.

You want to update a record. You read it and know that it exists. You also have a lock on it (no security issue). Just when you actually write the data bytes to a file you encounter an IOException.

How can you throw RecordNotFoundException or SecurityException? It would be misleading.
I must implement methods of a interface named DB. None of which throws IOException. But the underline I/O implementation may generate IOException. Should I just log the exception and ignore it or how do a propagate it up?