Thanks for the help - Maruf

Niels Gylling wrote:
Have both the war and the ejb depend on the common code, it will then be bundled in WEB-INF/lib in the war.
Aleo ensure that the ejb has a classpath entry to the commmon code like
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-ejb-plugin</artifactId>
          <configuration>
            <archive>
              <manifest>
                <addClasspath>true</addClasspath>
              </manifest>
            </archive>
          </configuration>
        </plugin>


At some point you will need to deploy the ejb to a container. The j2ee way of doing so is an ear file.

/Niels

Maruf Aytekin wrote:
The common code needs to into war file too. How could I do that without using two copies of the common code?

Thanks

Maruf



Niels Gylling wrote:
ejbs can only depend on jars, so create a shared module artifact containing common code.

/Niels

Maruf Aytekin wrote:
Hi

I have a multi module project as below:

main/pom
---------
  |----war/ pom
  |---- ejb/pom

ejb and war project are the subprojects for main. some classes in ejb depends on the classes in war project. Since packaging is war for this project howshould i define this dependency? Is there a standart way to do this?

Many thanks in advance

Maruf




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to