• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Learning resource for EJB

 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Am new to EJB. Looking for a resource that helps you understand EJB from a novice perspective. All i know currently is they are an architecture (pattern) that are used to write classes that can be accessed and executed remotely. Am i right?
 
Sheriff
Posts: 7134
1360
IntelliJ IDE jQuery Eclipse IDE Postgres Database Tomcat Server Chrome Google App Engine
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Shridhar Raghavan wrote:that are used to write classes that can be accessed and executed remotely. Am i right?



That's not the purpose of EJB. An application server, in which the EJB components are running, usually provides many other services including concurrency management, pooling service, etc.. Basically it provides a tiered architecture for keeping the business logic separated from the other components of the application.
 
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java Enterprise Edition:
Integrating JSF, EJB and JPA
Streamlining Enterprise Application Development
http://www.learningtree.com/courses/936.htm
 
Shridhar Raghavan
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

An application server, in which the "EJB components" are running, usually provides many other services including concurrency management, pooling service, etc.


Hey,

Out here by "EJB components" you mean the classes that i would write which relate to business logic right? If that is so, then does the EJB architecture divided into follwoing tiers/includes
1. classes at the web tier that take care of application server responsibilities you mentioned above
2. classes at the application tier responsible for business logic. These classes would be things like beans and implement the remote and home interfaces.

Basically what i want to understand is when we use the term EJB components, do we mean classes written for business logic or we mean the "architecture" of a distributed application? Or have i completely missed the mark
 
Devaka Cooray
Sheriff
Posts: 7134
1360
IntelliJ IDE jQuery Eclipse IDE Postgres Database Tomcat Server Chrome Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Shridhar Raghavan wrote:1. classes at the web tier that take care of application server responsibilities you mentioned above


No that's not.

Shridhar Raghavan wrote:2. classes at the application tier responsible for business logic. These classes would be things like beans and implement the remote and home interfaces.


Yep!

EJB components are the enterprise Java beans deployed in the EJB container. These could be session beans, message driven beans, singleton beans, etc... EJB is not related to the classes you write in the web tier. Perhaps, the classes in the web tier may access the EJB components in the application tier. However, EJB is not only for web based applications - you can have your business logic on the business tier and access that application server from any other component in the front tier - for instance, from a swing application. So basically you can't include web tier components when defining the concept of EJB architecture. Also note that EJB architecture is a multi-tier / multi-layer architecture, but that doesn't required to be in the distributed architecture.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic