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

Help me regarding basics of E.J.B

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am new to E.J.B ,i have a doubt that whether ejb-jar file must exactly contain only one HOME , COMPONENT interfaces and only one BEAN class.Also BEAN class is not implementing COMPONENT interface then how it can be able to implement the COMPONENT interface?.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the deployment descriptor, you tell the container which is the home interface and which is the component interface.
 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to the spec, we must provide one of the following combinations for certain session/entity bean in ejb-jar.xml file:


1. Local home interface + Local component interface + Bean Class
2. Remote home interface + Remote component interface + Bean Class
3. Local home interface + Local component interface + Remote home interface + Remote component interface + Bean Class

(Note: No other combination is valid.)


The bean class does not implement component interface directly. The corresponding container-generated EJBObject code implements this interface and delegates to the enterprise bean. The EJBObject acts as a proxy, intercepts the remote object invocations and calls the appropriate methods on the enterprise Bean instance.


Thanks,
Mahesh

--------
SCJP 1.4 |SCWCD 1.4 | SCBCD 1.3 | SCEA Part I - In Progress
 
mahudees waran
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank's a lot guy's
 
    Bookmark Topic Watch Topic
  • New Topic