Krishnan Kannan

Greenhorn
+ Follow
since Jun 27, 2004
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 Krishnan Kannan

Congratulations Tota !!
15 years ago
Hello Ragha,

The questions covered all the aspects but in my experience there are no trick questions. The answers of the multiple choices were very obvious in most cases.

EJB QL questions were very simple (got 2 of those drag-n-drop kind of questions in that).

I forgot to mention earlier - definitely go thru the EJB 2.0 specification. It has some subtle points which you may miss reading the book. The softSCBCD simlator helped figure out those fine-tuning points.

Good luck with your exam.

Kannan
15 years ago
I bought the softSCBCD simulator for $12 and I think it's worth it.
15 years ago
Hello,

Passed the SCBCD with 95% over the weekend. The SCBCD forum here was helpful in clarifying questions and general inputs regarding the exams.

I primarly used HFEJB and SoftSCBCD simulator. The simulator was very helpful in getting ready for the exam.

Thank you all.

Kannan
15 years ago
You missed the MessageDrivenContext in your list.

EJBContext --> provides an instance with access to the container-provided runtime context for all types of EJBs (Session, Entity and MDB). Parent of SessionContext, EntityContext, MessageDrivenContext interfaces. Has methods for getting the EJB Home, client security(getCallerIdentity, getCallerPrincipal, isCallerInRole), transaction (get/setRollbackOnly). These methods are available for all types of EJBs (but at different points in the lifecycle).

SessionContext --> access to the runtime session context that the container provides for the Session EJB (both StateLESS, StateFUL). Has additional methods like getEJBObject and getEJBLocalObject.

EntityContext --> provides an instance with access to the container-provided runtime context of an entity EJB. Has additional methods like getEJBLocalObject, getEJBObject, getPrimaryKey.

------------------------------
Contexts used in JNDI area
------------------------------
InitialContext --> If you want to do a JNDI lookup of an EJB or an object, you need to create an InitialContext with appropriate values (usually for remote clients a Hashtable with the server name/IP and the Vendor's initial context factory).

JNDIContext --> There is no such class or interface J2EE 1.3 and J2SDK 1.3 or 1.4. The InitialContext is usually referred/used in the context(no pun intended) of JNDI.

Hope this helps.

Kannan
Thanks for your reply Thilina.

When I look at the lifecycle diagram on pg 320, 321 on HFEJB, it doesn't convey the meaning of ejbActivate getting executed when ejbRemove is called.

Nevertheless, I can see your point where the bean is in the pool and when ejbRemove is called, it gets activated, loaded and then removed. Seems like these are unnecessary activites during removal.

Thanks,
Krishnan Kannan
Hello,

The question 16 on page 371 is: Which additional method(s) might the container call when invoking ejbRemove ?

The answers according to the book is ejbLoad() and ejbActivate().

I was thinking only ejbLoad(). I checked the spec pg.176 and for ejbRemove it doesn't mention anything about ejbActivate().

So what is the correct answer. Why would ejbActivate be called ?

Thanks,
Krishnan Kannan