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

Sany Bel

Ranch Hand
+ Follow
since Mar 12, 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 Sany Bel

I am not using a Session Facade pattern. There is no Session bean between my entity bean and jsp. All I have is a struts action class.
I am getting the same error when I try to access a cmr field from my jsp. I am retrieving the collection in my action class and passing it to the jsp as a request parameter. All my bean methods have their transaction attribute set to "required". I do not know how to make my jsp use the same transaction. Did anybody face this problem. Any help would be greatly appreciated.
Thanks,
Santosh,
entityBean_A1.setEntityBean_B(entityBean_A2.getEntityBean_B());
is replacing entityBean_A1's collection of entityBean_B's with that of entityBean_A2's collection. It's not adding to it, but replacing it. So, the first collection element's are no longer associated to entityBean_A1.
I hope this clears your doubt.
How can I use EJB-QL if I have a finder method that takes a list of ids as parameter. For eg., if I have to get the objects whose ids are in the list of ids passed to the finder method, how can I do it through EJB-QL?
[ April 29, 2004: Message edited by: Chris Mathews ]
It's been already discussed at this thread. You will find the answer that Kathy has given.
https://coderanch.com/t/159135/java-EJB-SCBCD/certification/ejbPassivate-ejbRemove-SFSB
try using t3 instead of http. The protocol that is generally used is t3
Hi,
Is it possible to have a finder method that takes a String array as a parameter?
What is the difference between 1.3 and 1.4 exams? I mean objecrive wise. What additional objectived are covered in 1.4 that are not covered in 1.3?When I looked at Sun site, I saw that the only additional objective was that of EL.
Is it possible to pass the exam by reading specifications? If so, what versions of jsp and servlet specification is this exam based on?
Hi I want to start preparing for SCWCD 1.4 exam. Are there any good books like Head First's that can get me through this exam?
Your bean class should never declare or throw RemoteExceptions. Remember bean class is not a remote object. It can only throw application exceptions or runtime exceptions (EJBException).
I finally took the exam today and passed with 95%.
Thanks to Kathy and Bert for their excellent book and thanks to you folks at JavaRanch.
16 years ago
Exactly!! That's my point. But the book says both A & B are correct. That is the reason I am confused. As I mentioned, when I looked at it the second time, I thought only A should be correct given the unidirectional nature of the relationship.
Question no. 4
Given the following container-manager unidirectional relationship
Foo(0-1) -> Bar(0-1)
And the object realtions:
f1 -> b1
f2 -> b2
What will be true after the following code runs ?
f2.setBar(f1.getBar());
A. f1.getBar() == null;
B. b2.getFoo() == null;
C. b1.getBar() == null;
D. None of the above
I got the answer right first time. A & B.
But when I thought about it again can we have b2.getFoo(). It is a "unidirectional" relationship and Foo has a field for Bar. Can Bar have a field for Foo too?
Hi Mini,
Here is what I think. Since, the container is the one that implements finder methods, it makes sure the implementation classes of the collection that is returns are serializable.

but HFE(Head First EJB) some where says that the return type should RMI-IIOP and also says that the collection itself should be serializable in addition to the elements of the collection.

I think you are refering to page 72 of HFE when you mention this. Page 72 mentions that you should not rely on the collection returned by the values() menthod of Map classes, becuause it returns a collection, but you do not know if the implementation class of the collection is serializable. It is not something that the container is returning.
I hope this helps.