Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

Pradeep Dhavakumar

Greenhorn
+ Follow
since Feb 05, 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 Pradeep Dhavakumar

For ALL business methods declared in home and component interfaces atrributes are a must for CMT beans.(Pg 498/509-HFEJB)
[ July 23, 2004: Message edited by: Pradeep Dhavakumar ]
OK then .I should start SCJD soon .Ordered the book yesterday.Actually getting bored with Multiple choice exams.Project should refresh me.
Why am I asking this question is SCJD asks you to do a project without
Servlets/EJB/J2EE/JDBC etc and ALL these are ALWAYS asked by employers.Things like Swing/networking etc are very rarely asked .So I am little confused whether all or some of the things used for the SCJD project will be helpful in REAL world.Like EJB server takes care of RMI .So is learning RMI useful?Things like that...I LOVE to learn new things but I dont want to end up learning a "chapter" of something which can be done in "one line" in another thing.
In short I want to know whether SCJD is really useful for "ME" coz $400 and time are BIG things for a student.Please advice.
[ July 19, 2004: Message edited by: Pradeep Dhavakumar ]
I am a student and am planning to do this certification and have few doubts regarding it..Kindly help.

* Could you clear SCJD just by reading books and programming or do you really need industrial experience ?
* Is a single machine/server enough to test your code or do you need mutiple machines/servers ?
* Are open source softwares enough to complete the assignment ?
thanks for that .Shouldnt have used BMT for the question .My question was why not END the transcation "immediately" if I DONT have any work in the next bean.And the answer is becos there are NO methods in CMT to end "immediately" .So the tranaaction will porpagate whether it is usefull or not but never commit..Anyway pretty clear now..

Thanks,
Pradeep.D
Nathaniel and Keerti - thanks for ur reply.But I still dont understand the use of setRollbackOnly for BMT.

LETS say transaction propagates in this order BeanA >> BeanB >>BeanC .All BMT beans.

Lets say we do a ut.setRollbackOnly() in bean A .My question is shoudnt we just do a ut.rollback() and "come out" of Bean A ? Instead of ut.setRollbackOnly() and propagate to BeanB and BeanC when U can NEVER commit i.e nothing can be changed .

I think for CMT beans there is NO rollback()(Why ??) so U got to use setRollbackOnly().But for BMT there IS rollback() so we can "come out" anytime if there is an error .Why should we use ut.setRollbackOnly() and propagate forward then??(Unless u got to free up resources or null objects/variables which I think can be done in the same bean).

Thanks,
Pradeep.D
Some basic doubts.Kindly help.

* Could u call any bean from any other bean ?Like EB from MDB ?

* I know Session context and Entity Context extends EJB Context. But
Where does security context ,transaction context ,Initial Context and EJB context go in the tree of Contexts ? What extends what ?

* Can someone give a practical example where setRollbackOnly() is used ? I dont understand why we would go forward in a transaction if we are sure that we would "NEVER" commit..

Thanks,
Pradeep.D

[ July 13, 2004: Message edited by: Pradeep Dhavakumar ]
[ July 13, 2004: Message edited by: Pradeep Dhavakumar ]
Can or must depends on what the "other" bean is .If the other bean is also a MBD or has methods NOT dependent on the the client's role it is "can".
I got some basic doubts . Kindly help.

*Under what element in the DD do you place the EJB-QL statement?
*And how do you use them in an entity bean method?
*Can you direcly run an EJB-QL statement from a bean method without using the DD?How ?
* "CMR field is ALWAYS another entity bean's 'local' interface" - What if I have only 'remote' interfaces ? How do I relate beans then ?

Thanks,
Pradeep.D
I have the same OS/j2ee version/path/home as you except JAVA_HOME = C:\j2sdk1.4.2_04.."Maybe" you should use j2sdk instead of jdk.
Thank you both for clearing my doubt.