[Mashup-dev] svn commit r20319 - trunk/mashup/java/modules/patches/axis2/src/org/apache/axis2/description
keith at wso2.com
keith at wso2.com
Sun Aug 3 08:31:57 PDT 2008
Author: keith
Date: Sun Aug 3 08:31:56 2008
New Revision: 20319
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=20319
Log:
Avoid adding the trailing "/" to the endpoint address when the endpoint is JMS. Cause this causes a numberFormatException otherwise
Modified:
trunk/mashup/java/modules/patches/axis2/src/org/apache/axis2/description/AxisEndpoint.java
Modified: trunk/mashup/java/modules/patches/axis2/src/org/apache/axis2/description/AxisEndpoint.java
URL: http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/patches/axis2/src/org/apache/axis2/description/AxisEndpoint.java?rev=20319&r1=20318&r2=20319&view=diff
==============================================================================
--- trunk/mashup/java/modules/patches/axis2/src/org/apache/axis2/description/AxisEndpoint.java (original)
+++ trunk/mashup/java/modules/patches/axis2/src/org/apache/axis2/description/AxisEndpoint.java Sun Aug 3 08:31:56 2008
@@ -183,13 +183,19 @@
.getTransportIn(transportInDescName);
TransportListener listener = in.getReceiver();
String ip = HttpUtils.getIpAddress(axisConfiguration);
- String sDOTe = serviceName;
- if (!"jms".equalsIgnoreCase(transportInDescName)) {
- // we should pass [serviceName].[endpointName] instead of
- // [endpointName]
- sDOTe = serviceName + "." + name;
+
+ if ("jms".equalsIgnoreCase(transportInDescName)) {
+ EndpointReference[] eprsForService = listener
+ .getEPRsForService(serviceName, ip);
+ // we consider only the first address return by the listener
+ if (eprsForService != null && eprsForService.length > 0) {
+ return eprsForService[0].getAddress();
+ }
}
- EndpointReference[] eprsForService = listener
+ // we should pass [serviceName].[endpointName] instead of
+ // [endpointName]
+ String sDOTe = serviceName + "." + name;
+ EndpointReference[] eprsForService = listener
.getEPRsForService(sDOTe, ip);
// we consider only the first address return by the listener
if (eprsForService != null && eprsForService.length > 0) {
More information about the Mashup-dev
mailing list