Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sample Ejb-Jar

 
Sujatha Kumar
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can any one let me know where could i find a sample ejb-jar.xml with all its elements.
Your response is appreciated.
Regards
 
james edwin
Ranch Hand
Posts: 393
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
Sample EJB-JAR file looks like below :-
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">
<ejb-jar>
<display-name>HelloEntity</display-name>
<enterprise-beans>
<entity>
<description>Extremely Simple Entity bean, models a person</description>
<ejb-name>HelloEntity</ejb-name>
<home>HelloEntityHome</home>
<remote>HelloEntity</remote>
<ejb-class>HelloEntityEJB</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.String</prim-key-class>
<primkey-field>name</primkey-field>
<reentrant>False</reentrant>
<cmp-field><field-name>name</field-name></cmp-field>
<cmp-field><field-name>email</field-name></cmp-field>
</entity>
</enterprise-beans>
</ejb-jar>
And more details....You can look at
http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd
Cheers,
James
 
Sujatha Kumar
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey thats the DTD, I am looking for complete ejb-jar.xml with all its elements.
 
Dale Seng
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could download the Advice Guy app from the wickedlysmart website. If you don't see the file you want, just start changing the file(s) from *.jar to *.zip and unpack 'em.
--Dale--
 
Praveena Venigalla
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi sujatha,
web page
Hope this helps. This helped me a lot for preparing the exam.
Praveena
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic