PrepAway - Latest Free Exam Questions & Answers

How can you accomplish this so that the references are resolved at runtime?

You have a JEE 5.0 project (EARProject) that will be run in WebSphere Application Server. From a
EARWeb project, you want to access EJBs stored in an EAREjb project. Both projects are part of the
enterprise application EARProject. How can you accomplish this so that the references are resolved
at runtime?

PrepAway - Latest Free Exam Questions & Answers

A.
No configuration is needed because any jar file in an EAR project is automatically referenced by
any project in the Java EE project.

B.
You update web.xml and ejb-jar.xml adding <classpath path=’../lib’>.

C.
You right-click your web project and select Properties > Java Build Path and add the EJB Project in
the Projects tab.

D.
You right-click your web project and select Properties > Deployment Assembly and add a
reference to the EJB project.


Leave a Reply