Do we have to write this deployment descriptor(ejb-jar.xml) by ourselves or j2ee RI can be used to generate it. I have done the first example in HFEJB but there is no file called ejb-jar.xml in the Directories created. The compilation & deployment is OK but I unable to run that ejb. it's giving runtime error & again this RI stands for what (j2ee RI). Im talking about this AdviceBean example in HFEJB. Help me folks I have to take this exam within a months time.
We will have to create the ejb-jar.xml ourselves. ejb-jar.xml will be created if you use an IDE to generate the beans. But since you must have created the ejbs urself you will have to create the ejb-jar.xml urself as well.
RI stands for Reference Implementation server.
See errata[/URL] if you are getting a run time error like CORBA.BAD_OPERATION.
Originally posted by Mahela Wickramasekara: Do we have to write this deployment descriptor(ejb-jar.xml) by ourselves or j2ee RI can be used to generate it.
For the exam you have to know how to compose an ejb-jar.xml. For the code examples you use the deploytool to create the ejb-jar.xml. If I remember correctly the generated ejb-jar.xml is buried deeply inside a jar file, possibly even within another jar file (I ditched the J2EE 1.3 RI setup recently, so I can't check it).
If you want to "quickly" look inside a jar, and your UI lets you look into ZIP files, copy the jar file and rename the extension to zip.