Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is the missing link in these descriptors?

 
James Davison
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a 3rd-party EJB contained in a project in my workspace that I need to add to my web application I am using Rational Application Developer 6.0 as my IDE and WebSphere 5.0 as my RAD test environment. I modified the EAR and WAR descriptors to add the EJB module/project to the application descriptor and an EJB reference to the web descriptor. See the following entries. However, the EJB does not even load when the WebSphere test environment is started even though the EJB project is clearly configured for the EAR (as viewed in Server >> Add and Remove Projects...). I know I am missing something obvious here, but what? Do I need to configure something in the Administrative Console perhaps?

EAR application.xml has the entry:

<module id="EjbModule_1174410560257">
<ejb>TextFileEJB.jar</ejb>
</module>

EAR .modulemaps has the entry:

<mappings xmi:id="ModuleMapping_1174410560257" projectName="TextFileEJB">
<module xmi:type="application:EjbModule" href="META-INF/application.xml#EjbModule_1174410560257"/>
</mappings>


WAR web.xml has the entry:

<ejb-ref id="EjbRef_1174318503244">
<description></description>
<ejb-ref-name>ejb/TextFile</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>TextFilePackage.TextFileHome</home>
<remote>TextFilePackage.TextFile</remote>
</ejb-ref>

WAR ibm-web-bnd.xmi has the entry:

<ejbRefBindings xmi:id="EjbRefBinding_1174318503244" jndiName="TextFile">
<bindingEjbRef href="WEB-INF/web.xml#EjbRef_1174318503244"/>
</ejbRefBindings>
 
James Davison
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nevermind! It seems all I had to do was remove the EAR project then re-add the EAR project to the test server.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic