Skip to content

Commit e170a13

Browse files
Stop bundling the JMS transport in axis2.war
No default axis2.xml enables a JMS listener or sender, yet every WAR carried the transport and its JNDI lookup code. It was not usable as shipped in any case: jakarta.jms-api is an API with no provider, so a WAR wanting JMS always had to add a broker client. The module is unchanged and still ships in the binary distribution's lib/, so a standalone server is unaffected; the distribution builds its WAR from that directory, which is why the exclude belongs there too. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 5e93c08 commit e170a13

3 files changed

Lines changed: 18 additions & 5 deletions

File tree

modules/webapp/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,6 @@
137137
<artifactId>axis2-transport-local</artifactId>
138138
<version>${project.version}</version>
139139
</dependency>
140-
<dependency>
141-
<groupId>${project.groupId}</groupId>
142-
<artifactId>axis2-transport-jms</artifactId>
143-
<version>${project.version}</version>
144-
</dependency>
145140
<dependency>
146141
<groupId>${project.groupId}</groupId>
147142
<artifactId>axis2-transport-mail</artifactId>

modules/webapp/scripts/build.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@
7878
<exclude name="axis2-java2wsdl-*.jar"/>
7979
<!-- codegen is required for Rampart because of AXIS2-4265 -->
8080
<!-- exclude name="axis2-codegen*.jar"/ -->
81+
<!-- The JMS transport is shipped in lib/ but not bundled in the WAR:
82+
no default axis2.xml enables a JMS listener or sender, and
83+
jakarta.jms-api is an API with no provider, so a WAR that wanted
84+
JMS always had to add a broker client anyway. -->
85+
<exclude name="axis2-transport-jms-*.jar" />
86+
<exclude name="jakarta.jms-api-*.jar" />
8187
<exclude name="commons-cli-*.jar" />
8288
<exclude name="jibx-bind-*.jar" />
8389
<exclude name="bcel-*.jar" />

src/site/markdown/release-notes/2.0.2.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@ Apache Axis2 2.0.2 Release Notes
33

44
(Unreleased)
55

6+
## Distribution Changes
7+
8+
- **The JMS transport is no longer bundled in `axis2.war`.** `axis2-transport-jms`
9+
and `jakarta.jms-api` shipped in every WAR while no default `axis2.xml` enables a
10+
JMS listener or sender, so every deployment carried the transport -- and its JNDI
11+
lookup code -- without asking for it. It was never usable as shipped in any case:
12+
`jakarta.jms-api` is an API with no provider, so enabling JMS always required
13+
adding a broker client. The module is unchanged, remains a supported transport,
14+
and is still in `lib/` of the binary distribution, so a standalone server is
15+
unaffected. A WAR deployment that uses JMS now adds `axis2-transport-jms` to
16+
`WEB-INF/lib` alongside the broker client it already had to add.
17+
618
## Deprecated for Removal
719

820
- **The mail transport (`axis2-transport-mail`) is deprecated and is planned for

0 commit comments

Comments
 (0)