-
1. Re: ESB deployment in EAR
jimmy56 Aug 24, 2009 7:05 AM (in response to jimmy56)Unfortunately, one more issue.
Definition of dependencies in -service.xml has one uncomfortable consequence - application EAR is needed to be deployed exploded. I don't know how to define dependency of service to JAR within packed EAR. This issue I'll need to solve anyway, even if my ESB services will be inside the EAR archive (jbpm.esb has to define dependency on JARs, where are custom action classes for our deployed processes). -
2. Re: ESB deployment in EAR
tcunning Aug 29, 2009 11:17 AM (in response to jimmy56)The helloworld_hibernate_action has an example of how to build an EAR and how to set it up - can you take a look at that? I'm a little confused with what you are doing here - can you take a look at that quickstart and then rephrase your questions?
-
3. ESB deployment in EAR
kenbarnesjr Feb 8, 2011 6:58 AM (in response to tcunning)Jakub,
Did you ever find a way to resolve these deployment issues? I am having the same type of problems of wanting to deploy me .esb archive within the ear file.
Thanks
-
4. Re: ESB deployment in EAR
berni123 Feb 15, 2011 9:41 AM (in response to kenbarnesjr)Hi,
I finally manged to include an esb-archive inside the ear archive.
The trick is to read the maven ear plugin Configuration|Modules page til the end: "Adding Custom Artifact Types".
I'm using following pom:
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<version>2.4.2</version>
<configuration>
...
<modules>
...
<jarModule>
<groupId>someEsbGroupId</groupId>
<artifactId>someEsbArtifactId</artifactId>
<unpack>true</unpack>
<includeInApplicationXml>true</includeInApplicationXml>
</jarModule>
</modules>
<artifactTypeMappings>
<artifactTypeMapping type="esb" mapping="jar" />
</artifactTypeMappings>
</configuration>
...
You see the trick is to define the artifactTypeMapping, and including the esb artifact as jarModule.
Moreover the option includeApplicationXml=true gurantees that there is an esb-entry in the generated application.xml.
The unpack=true is just a matter of taste, i prefer to include the esb as exploded dir.