This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Learning resource for EJB

 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • 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: 6631
1254
IntelliJ IDE jQuery Eclipse IDE Postgres Database Tomcat Server Chrome Google App Engine
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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: 6631
1254
IntelliJ IDE jQuery Eclipse IDE Postgres Database Tomcat Server Chrome Google App Engine
  • Mark post as helpful
  • send pies
  • 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.
 
Warning! Way too comfortable! Do not sit! Try reading this tiny ad instead:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic