• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help me regarding basics of E.J.B

 
mahudees waran
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?.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 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.
 
Mahesh Desai
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic