Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

sh yh

+ Follow
since Aug 14, 2002
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
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sh yh

Originally posted by Evelyn Cartagena:
Prometric is sending out the vouchers directly to the candidate. I have urged them to respond to your emails the same day. I am trying my best to get them to be more responsive.
Please let me know if you have any questions or need any help.
Sorry for any inconvinience!

Thanks Evelyn.
I got the new voucher. But when I re-registered the exam, the Prometric center said the voucher cannot be used for the 311-310 exam.

Originally posted by Weishe Zhao:

Objective 2.5 (CLDC) - Write code that effectively manages memory / garbage collection.
The only thing that I know of related to this objective is System.gc().
Are there any other classes/methods that we can use to effectively manage memory?

Originally posted by Yadav Madhu M:
Both are same

many thanks
What are the differences between Custom Actions and Custom Tags?

Originally posted by Kathy Sierra:
Howdy all,
I would say that many of the most difficult questions on the exam are related to custom tags. EL questions are fairly straightforward, because EL is simple, but there are some real *gotchas* in places where EL looks like Java, but behaves differently (especially with the [ ] operator!). Be very certain that you can access properties of an object, multiple levels deep, using any combination of the [ ] and the "." operator, including array access. Be sure you REALLY know the implications of accessing the implicit objects, and the ramifications of scope and thread safety, etc.

What does "thread safety" mean?
Does it mean the thread safety of EL or implicit objects or scopes?
Hi Alain,
One question for your: Did you show any Entity EJBs in your Component Diagram(s)?
Hi Alain,
I have one question which would happen in a real-world application. Assume there is a LoginProcessor for processing clients' logins through different kinds of UIs. Will you present this LoginProcessor as a Session Bean or just a Plain Old Java Object? Thank you.
I like you articles and in particular your "Topic".

Originally posted by Vishy Raman:
ejbPassivate would be more appropriate, as ejbRemove method may not be called to remove the bean, if it is already in the passivated state.

The original question is ambiguous.
If it is not going into the passivated state, then ejbPassivate is not a choice.
[ June 25, 2003: Message edited by: sh yh ]
I assume that you are talking about session beans.
ejbPassivate() is the primary answer; and calling ejbPassivate() from within ejbRemove() is the secondary answer. Just my 2 cents.
I'm pretty sure you've learned a lot in your preparation process. Also thanks for your study materials. Excellent jobs!

Originally posted by Bert Bates:
Answers to EJB Mock fodder questions:
11.3 When a session bean has container-managed demarcation value of 'Supports', which << three >> methods run in an unspecified transaction context? (Choose << three >>.)
a). ejbActivate
b). getRollbackOnly
c). getUserTransaction
d). ejbRemove
e). afterBegin
f). afterCompletion
Answers: a, d, f
revision: changed 'two' to 'three'


I would suggest to reword the question by replacing "" as "...will always run..." in order to eliminate confusions such as, for example, afterBegin() COULD also run in an unspecified transaction context.

Originally posted by Kalpesh Soni:
1 - b was fine
2 - d was fine
3 - c
4 - a

I think both 3c/4a and 3a/4c are ok.

Originally posted by Dennis Shi:
a, c, g

I have the same answers with yours.
Hopefully yours are right.