Win a copy of Java Challengers this week in the Java in General forum!

TeGo Gokhale

Greenhorn
+ Follow
since Jul 09, 2006
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 TeGo Gokhale

The question arose to my mind because no where does spec mention if primitives are allowed to be primary keys of CMP EB or not?
I think maintaining state and transaction should be looked seperately.
Session synchronizatiion int. gives chance to keep bean synchronized with underlying per. store and key milestones during a transaction. This is important for stateful bean because it has to maintain a state accross method calls.
So ss interface is for synching the bean state accross method calls.

CMT stateful session beans cannot continue transaction accross method calls but still have to be synched with underlying datastore.

Correct me if I am wrong.
When taking SCBCD how is the eligibility verified by sun that I have teken and cleared SCJP previously?
Do they ask for cetificate or do they ask for any id/number with which they verify in their database?
Reason for asking this is I am in london currently. I want to take the exam but my SCJP docs are in india.

Pleeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeease guide!!

Tejas
May be you are correct, but what i think is since the transaction in which Bean A was running has been marked to rollback, there is no reason for container not discarding beanA.

Option B seems to be correct because though beanA is client to beanB but the component who invoked mA() is client to beanA who would get ejbException and that is the client which is reffered to in option B
I thin correct answer is B and D

with requiresnew a new tx was started.

So say client' stx was txcl
mA() would suspend txcl and would run in new txnew
mB() would also run in txnew.

So on system exception txnew would be rolled back. so mA() would get txrolledback excptn.

Container would give ejbexception to client. But clients txcl is still alive and he can continue with it.
I think e is not correct because you cannot have a local home and remote component or you cannot have home and local component interface.

The correct answer i reckon should be : you can have either (remote home & component interface) or (local home & local component) or both. I fail to find matching answer in options.
Thanx patric for the info. but my q. is different. the thread you pointed out was asking if specs alone would be enough where as my q. is if one can do without touching specs. i mean is HFEJB(and some mocks on net) alone is enough? I am not at all willing to go through all teh 572 pages. thats not practical. So if I take a decision to take exams without touching specs would that be a risky decision is what i want to know.
Client can recover from application exception: Application Exception is something which client expects like AccountOverDrawnException. This is thrown to client by the container as it is. Hence client can recover from it.

Client cannot recover from system exception: System exception is thrown by container as RemoteException. Client neither has any idea why this happened. Only thing over here is client knows over here is something unexpected happened on server side. But he has no clue whatsoever to what that "something" is meant by exactly.

Correct me if I am wrong.
ObjectNotFoundException: thrown when no entity in database matching primary key is found.
NoSuchEntityException: Thrown entity your are trying to access is no longer in database.

What is the difference??

Though one is checked and other is not but given a scenario only one can be thrown.