• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

differences in detail

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have few questions to forward you, regarding EJB.I read the points u gave, but pretty confused.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?
Help me with some real time examples in detail.Hope I am not troubling u.
regards,
Shastri
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here are some examples for the difference between stateful and stateless session beans
Here are some examples for the difference between coarse-grained and fine-grained entity beans:
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic