Five things you do to build a bean:
Code the bean class with all of the business methods.

Code two interfaces for the bean: home and component.

Create an XML deployment descriptor that tells the server what your bean is and how it should be managed. You must name it ejb-jar.xml.

Put the bean, the interfaces, and the deployment descriptor into an ejb-jar file. (There might be more than one bean in the ejb-jar, but there will always be just one deployment descriptor.)

Deploy the bean into the server, using the tools provided by the server vendor.

Relax
You don’t need to be an XML expert.
In fact, you don’t have to know anything at all about how XML works. You do need to know about many of the deployment descriptor tags, but you don’t need to know about XML in order to learn the tags. If you think of the tags as simply labels in a document, with very specific requirements for what you’re allowed to type within those labels, then all you need to know for the exam is the name, and requirements, for some ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access