• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Content of ejb-jar file

 
Devender Thareja
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to HFEJB
The ejb-jar should include EJB's home, either directly or by reference. What it mean by reference? Can you provide an example? Thanks.
 
Sankar Subbiramaniam
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Keyword: manifest file

In EJB2.0 and ejb-jar is not required to have a manifest file. So normally you msut have the following entries in your ejb jar file:
1) Home interface
2) Component interface
3) Your bean class
4) ejb-jar.xml in META-INF directory.

But if you wish you can package your jar file as follows:

1) ejb-jar.xml in META-INF directory.
2) manifest file referring to Home/Component and Bean classes

In the second approach you are indirectly referring to your Home/Component/Bean classes.
 
Devender Thareja
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
 
rakesh mittal
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sankar Subbiramaniam:
Keyword: manifest file

In EJB2.0 and ejb-jar is not required to have a manifest file. So normally you msut have the following entries in your ejb jar file:
1) Home interface
2) Component interface
3) Your bean class
4) ejb-jar.xml in META-INF directory.

But if you wish you can package your jar file as follows:

1) ejb-jar.xml in META-INF directory.
2) manifest file referring to Home/Component and Bean classes

In the second approach you are indirectly referring to your Home/Component/Bean classes.


hi
i want to asked why directory structure of ejb contains both home
and component interface , why they have make the structure so
complicated
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic