13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

510Chapter 23Deploying EJBsThe ejb-jar.xml file (Example 23.3) is part of the J2EE standard. Itspecifies the names of the home and remote (and local, if any) interfaces, theimplementati<strong>on</strong> class (i.e., the real bean) and the name for the bean.Example 23.3 Sample ejb-jar.xml fileBudgetProBudgetProTest M<strong>on</strong>ey Beantest/M<strong>on</strong>eycom.jadol.budgetpro.M<strong>on</strong>eyHomecom.jadol.budgetpro.M<strong>on</strong>eycom.jadol.budgetpro.M<strong>on</strong>eyEJBeanStatelessC<strong>on</strong>tainerThe name of the bean defined in the ejb-jar.xml file is not, however,the name we will use in our JNDI lookup. Rather, there is <strong>on</strong>e more level ofmapping used by JBoss. Look at the c<strong>on</strong>tents of the jboss.xml file(Example 23.4).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!