One more thing. I think you need to add a jarModule in EAR1 pom.xml. Now I'm
talking about the ear project, previously I was talking about the business
tier (ejb) projects.
<jarModule>
<groupId>org.fornax.cartridges</groupId>
<artifactId>sculptor-helloworld</artifactId>
<type>ejb-client</type>
<includeInApplicationXml>true</includeInApplicationXml>
</jarModule>
/Patrik
Patrik Nordwall wrote:
>
> I think you need to package the needed classes from EAR2 in an ejb-client
> jar file, which is used by EAR1. In EAR2 pom.xml you need something like
> this (it is already created by the sculptor archetype):
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-ejb-plugin</artifactId>
> <version>2.1</version>
> <configuration>
> <ejbVersion>3.0</ejbVersion>
> <generateClient>true</generateClient>
> <clientIncludes>
> <clientInclude>**/serviceapi/*</clientInclude>
> <clientInclude>**/domain/*</clientInclude>
> <clientInclude>**/exception/*</clientInclude>
> </clientIncludes>
> </configuration>
> <executions>
> <execution>
> <phase>package</phase>
> <goals>
> <goal>ejb</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
> In EAR1 you need to add a dependency to EAR2 ejb-client. Something like
> this (replace with your own stuff for EAR2):
> <dependency>
> <groupId>org.fornax.cartridges</groupId>
> <artifactId>sculptor-helloworld</artifactId>
> <version>${pom.version}</version>
> <type>ejb-client</type>
> </dependency>
>
> /Patrik
>
--
View this message in context:
http://www.nabble.com/Multiple-applications-tp20181270s17564p20182531.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer