2 Replies Latest reply on Dec 7, 2004 2:41 AM by kamal_tavant

    EJB Access to a web module

    abigail

      Hi,

      I want an ejb to access the classes in a web module.
      Sometimes it work and sometimes i get a deployment error saying the class is not found ><

      Do a have to do some special configuration to make this work all the time?


      My applicattion.xml its like
      <?xml version="1.0" encoding="ISO-8859-1"?>

      <display-name>Rutinas Caja - WebService</display-name>

      RutinasCajaEJB.wsr



      <web-uri>caja.war</web-uri>
      <context-root>/caja</context-root>
      RutinasCajaEJB.wsr



      RutinasCajaEJB.jar




      Thx in advance 4 ur help :D
      Abigail

        • 1. Re: EJB Access to a web module
          abigail

          Sry didnt placed the code tag ><

          
          <?xml version="1.0" encoding="ISO-8859-1"?>
          
          <application>
           <display-name>Rutinas Caja - WebService</display-name>
           <module>
           <java>RutinasCajaEJB.wsr</java>
           </module>
           <module>
           <web>
           <web-uri>caja.war</web-uri>
           <context-root>/caja</context-root>
           RutinasCajaEJB.wsr
           </web>
           </module>
           <module>
           <ejb>RutinasCajaEJB.jar</ejb>
           </module>
          </application>
          


          • 2. Re: EJB Access to a web module
            kamal_tavant

            You can extract the common classes into a utility jar and add it as a java module to your application. You can also put a class-path reference to the utility jar in the manifest file of the ejb.jar and the war.