First, welcome to the JavaRanch!
Originally posted by shanmukeshwar shastri:
I have few questions to forward you, regarding EJB.I read the points u gave, but pretty confused.
Umm. You read
what points given by
whom?
Originally posted by shanmukeshwar shastri:
Can u give me a clear picture some good examples regarding EJB.
Here are the questions
1)Difference between session and entity beans?
2)Difference between stateless and stateful session bean?
3)Difference between Entity bean-managed persistence and container-managed peristence?
4)Difference between fine-grained bean and coarse-grained bean?
5)What is freepool and session facade?
May I suggest starting by downloading and reading the free ebook,
Mastering EJB II, which should give you an understanding about EJB fundamentals.
Here are brief answers to give you at least some idea:
1) Session beans represent business logic, i.e. what your application does, while entity beans represent business entities, i.e. what entities your business domain consists of.
2) Stateless session beans do not maintain client-specific state while stateful session beans do.
3) In BMP, you write the database access code yourself, in CMP the container does this for you.
4) Fine-grained beans gives its user access to pieces of data that are "smaller" than the ones a coarse-grained bean gives access to.
5) The "free pool" is a pool of bean instances that the EJB container maintains internally for improving performance. Session Facade is an EJB design
pattern described
here.