This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Pipeline as Code and have Mohamed Labouardy on-line!
See this thread for details.
Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!

Thomas Vezhambacheril

+ Follow
since Aug 02, 2005
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 Thomas Vezhambacheril

Dear Friends,

Thanks for your support,I got SCBCD with 84 %.
I could able to attain this in a small period,nearly 1 month.

I got help from
1. Java ranch discussion group
2. Head fast

In exam my week point was Exception,responsibilitis(bean, container,Deployer....),environment

Pls. Keep in touch

Thomas Joseph
Capgemini India
15 years ago
means stateful session beans reference returned from same home will be different while we are using isIdentical(). isn't?
suppose if it is stateful session bean ?
Question :- A client has two object references to a session bean's home interface. How can it find out whether the object references are accessing the same object?

I think answer will be

Using the isIdentical() method

But the given answer is References of the home interface of the same bean are always identical because there is only one instance of the Home interface. Means there is no need of isIdentical() method.

But as per my observation this will be right only if session bean is stateless isn't ?

Please share ur opinion
I also think ACD is correct.

Queue means one instance can processes a message at a time. isn't it ?

Which of the following statements are correct about the responsibilities of the EJB container

1. When the container invokes the ejbRemove() method the container removes immediately the entity from the database.

Answer 1 is incorrect, the container may delete the representation of the entity in the database immediately, or it can defer it to a later time, depending on the caching strategy that it uses.

Is it correct. Or As per the Spec,can we conclude whenever ejbremove() is called the container removes immediately

Plz. see the mock exam

What are the purposes of the EJB reference deployment descriptor elements? [Check all correct answers]
1. Allows the bean provider to locate the home interface of other enterprise beans without knowing where the object resides in the enterprise system.
2. Allows the application assembler and deployer to discover all references used by an enterprise bean.
3. Allows the bean provider to reference configurable data that can be changed by a deployer without modifying the enterprise bean source code.
4. Allows the application assembler to link an EJB reference declared in one enterprise bean to another enterprise bean contained in the same J2EE application unit.
5. Allows JMS destinations to be defined so that they can be bound to the target operational environment by the deployer.

The given answers are 1,2,4

3 and 5 are wrong and given the following explanation
Answer 3 is incorrect because an environment entry should be used to reference configurable data. Answer 5 is incorrect. The bean provider should use the resource environment reference deployment descriptor element when referencing an administered object associated with resources such as JMS destinations.

I am not getting y 3 and 5 are wrong...
Dear Stephan,

You can conclude the answer is true only if

A client can determine whether two entity beans are same by comparing their primary key using equals method if the entity beans are from same Home

Am I correct ?

means if they includeed the clause "and the entity beans are from same Home " the answer was true.

Best Regards
1,3,5 is correct.But 4 is wrong because bean instance getting value from container not from the deploymnt descriptor. isn't it?
Primary key class should have public instance varibales as well as public assessor methods.
in ejbActivate and ejbPassivate there is no transaction contect,secury context. But it will be able to access the primary key,getEJBLocalObject() and getEJBObject().As it is not having the transaction context and security context it will not be able to acess other beans or resource managers.So i think acessing relational filds will be a problem

Best Regards
That depends upon the provider
If a bean method throws a system exception and the caller is in the same transaction, the caller will receive a TransactionRolledBackException/TransactionRolledBackLocalException, right? (HFEJB, page 552 too) What happens if the caller is not in the same transaction, for example, if the method has a 'RequiresNew' attribute? Which exception could the caller receive?

I think it will not roll back the previous transaction(which is propagated from clent or prvious bean),but will throw RemoteException for remote clients and EJBException for local clients
Meg Adal,

Sorry... I was asking for getting a mail Id from SUN by providing our SCJP registarion Id and exam site number

I have passed SCJP in 2004.

While going through the sun site once i had seen how to register certified professionals with their registration Id and exam site Number for getting email ID from SUN. Unfortunately I mmissed the URL for getting that registration page.

If any of u remembering URL plz. reply

[ August 04, 2005: Message edited by: Thomas Vezhambacheril ]