Help coderanch get a
new server
by contributing to the fundraiser

Ashu Sharma

Ranch Hand
+ Follow
since Apr 03, 2001
Merit badge: grant badges
For More
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 Ashu Sharma

Miklos Szeles wrote:I think you need Java Concurrency in Practice.

This is really good book
JSF,JPA and EJB's are specs.

Now the vendors including Sun provide their implementation for these specs.

for example JSF has following implementations

Sun -- Sun Mojarra( or Sun RI)
Apache -- My faces

Similarly SUN has the RI for JPA and Hibernate has also got JPA implementation

After Hard work of months and designing and re-designing the Part 2 i have finally completed all the levels.
I would like to take this opportunity and thank all the members of this forum who have helped me directly or indirectly by there posts and suggestion
Hi Luciano,

Thanks for pointing out to the resource. I had read that a lot times before but never gone through the code which gave me a good understanding how caching can be implemented

On the other note,Though you are right that we may do away with BD and SL but there is no harm in keeping them for the reasons explained in following articles.


One of the use of business delegate is that it can be used to cache the results and improve performance avoiding the round-trip to business layer.
Now suppose i am using the Stateful session beans and maintaining the session via them how will BD will be able to get hold of the cached results without accessing the SFSB.
One approach will be that i put the results in session but then sun does not recommend that(

Please guide me how a caching scheme can be implemented in a Business Delegate

Ashu Sharma
This is What i understand

1) A does not know anything about C
2)No C can't exist without B.

Talking in terms of implementation it will be

class b{

new C()


so if B is not there there is no way C can exist
Hi Ranchers,

I need your help to clarify some of my doubts

Here is the problem statement.

Professor service and student service are webservices that provide the Professor and the student data respectively.Assignment manager assigns the professor to a student which have been created from webservice.

1)Is it right to show the association class for depicting above problem statement.
2)can association class be an entity, when the classes it is associating are not.


Hi Vivek,
Thanks for your comment.

Vehicle is an abstract class( in Italics). Should it be marked as entity?.
What if we are following the Table per Concrete class approach in JPA.

Hi Janis,
Thanks for your clarification.
It has helped me a lot.

Hi ranchers,
Please help me to understand this.
Even if this is a dumb question please let me know that this is dumbest question and can't have any answer.
I am sure your answers to this question will benefit lot of people other than myself.

Hi Vj,
A has the knowledge about existence of B.If we talk in terms of implementation then it would be something like this in A , so A is aware of B

B b[] = new B1()
B b = new B2()

Hi Ranchers,
Maybe a dumb UML question but i have got stumped

I have got class A that is composed of the classes B1 and B2 which extend from class B.
The composition rules are different for B1 and B2.

For A to B1 it is 1..* relationship whereas for A to B2 it is 1..1 relationship.

How do i show it UML..

If i show as in figure 1 it does not give the right picture. If i show as in figure 2 it somehow does not look right(i might be wrong on this)

Please help me find the correct representation.