Win a copy of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) this week in the OCPJP forum!

Jimmy Chiu

Ranch Hand
+ Follow
since Feb 08, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jimmy Chiu

Congrats!!!
could you provide direct URLs of those mocks offered by www.informit.com ?
Thanks,
19 years ago
ServletContext Defines a set of methods that a servlet uses to communicate with its servlet container.
ServletConfig is a servlet configuration object used by a servlet container used to pass information to a servlet during initialization. All of its initialization parameters can ONLY be set in deployment descriptor.
The ServletContext object is contained within the ServletConfig object, which the Web server provides the servlet when the servlet is initialized.
You can specify param-value pairs for ServletContext object in <context-param> tags in web.xml file.

Originally posted by Karthik Veeramani:

but looks like garbage collection pulled my leg, i got only 66% in that...
[ April 11, 2003: Message edited by: Karthik Veeramani ]


Good job!
Don't feel bad about the percentage, very likely, there were only 3 garbage collection related questions in the exam.
19 years ago

Originally posted by Dirk Schreckmann:
How is this going for you guys?
Are you still at it? Almost finished?
Has it been successful for you?


I Finished! Turning to mocks.
It may be difficult to keep on a consistent pace for everyone, but knowing others are studying is the best encouragement to keep work harder.
[ April 04, 2003: Message edited by: Jimmy Chiu ]

Originally posted by Ajith Kallambella:
I recently posted a review on this book...checkout the "Book Reviews" forum.


Could you provide a link, I searched the review forum, but no luck.
Thank you!
[ April 04, 2003: Message edited by: Jimmy Chiu ]

Originally posted by Dragan Milic:

Well here is how I did it ... I read ejb 2.0 spec (it wasn't much of a problem since I have 2+ Years in EJB Development), read JTA 1.0.1 Spec, chapters 1-7 from the Cade/Roberts book, I refreshed my memory on j2EE and Design patterns, made sure that I understand the basics of UML, and took for a two days in a row four times a day one mock exam (the scea@whiz and other available exams) ... taking so many mock exams gives you speed and the routine in the real test (worked in SCWCD test too!). That's it ... the only thing is to have enough time for the preparation (2 weeks, 8 hours/day) and to be able to handle stress.



8 hours/day?
Full-time ?!?!?!
19 years ago

Originally posted by Dragan Milic:

Thanx Jimmy,
I gave myself a deadline for a Part I: two weeks ... and it worked (even better than I expected).


Wow! That was quick, really quick!
What material did you use for preparing Part I, AFAIK there are about 3-5 books, I don't see any chances that I could finish in 10 weeks (
Thanks a lot,
19 years ago
Dragan,
Congratulations!
How long did it take you for preparing PartI?
Thanks
19 years ago

Originally posted by Mark Howard:
Hmmm, that's not quite what I meant. There are two different angles to this:

  • Objects of a class that implement the HttpSessionAttributeListener interface, which you define as a listener in web.xml, will receive notifications when any attributes are added, removed or replaced in the session.
  • Objects of a class that implement the HttpSessionBindingListener interface, not configured as a listener in web.xml, will receive notifications when they are being added to or removed from a session.


  • Now consider this scenario:
  • Object A implements HttpSessionAttributeListener (Class A is a listener in web.xml)
  • Object B implements HttpSessionBindingListener.
  • Object B is added to the session. eg. session.setAttribute("myB", B)


  • What is the effect?
  • Object A's attributeAdded() method is called to indicate that an attribute has been added to the session.
  • Object B's valueBound() method is called to indicate that it (a session attribute), has been added to the session.


  • See the difference?


    Surely, no problem to understand your points.
    Hi,
    Does anyone know if Sun has an online forum where we can post this question?
    Mark,
    I think you did an excellent job on explaining the scenario that session-attribute has �multiple-listening� roles.
    In this case, a session-attribute not only is treated as part of the session-object�s data-field, but also served as session-object�s client-data-component.
    That�s why this kind of session-attribute can implement both HttpSessionAttributeListener and HttpSessionBindingListener interfaces.
    Am I right?
    Thanks,
    -Jimmy
    [ March 27, 2003: Message edited by: Jimmy Chiu ]
    Mark,
    I am having some difficulties to understand the Servlet Spec on "Servlet Path"
    In its first step (if found, not further step will be taken):
    The container will try to find an exact match of the path of the request to the
    path of the servlet. A successful match selects the servlet.
    Why "/red/*" path mapping can match
    "/My-app/red", "/My-app/red/", "/My-app/red/some" and "/My-app/red/any.xx"?
    What is the "*" real meaning, is it a wild character, or a Regular Expression sign?
    What "Path Info" (from SCWCD Study Kit) really is, a servlet file name?
    -Thanks,
    Why GenericServlet.init(ServletConfig config)'s invocation on GenericServlet.init() can save my call to super.init(config) from my overriding init(ServletConfig config)?
    In other words,
    The Servlet Spec says that:
    public void init()
    throws ServletExceptionA convenience method which can be overridden so that there's no need to call super.init(config).
    Instead of overriding init(ServletConfig), simply override this method and it will be called by GenericServlet.init(ServletConfig config). The ServletConfig object can still be retrieved via getServletConfig().

    Who can explain more on it?
    Thanks,
    -Jimmy
    [ March 25, 2003: Message edited by: Jimmy Chiu ]
    [ March 25, 2003: Message edited by: Jimmy Chiu ]