mirror of https://github.com/apache/activemq.git
Remove deprecated Axis 1.0 support. git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1404742 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
566039fa5b
commit
539781ceef
|
@ -88,11 +88,6 @@
|
|||
<artifactId>jetty-websocket</artifactId>
|
||||
<version>${jetty-version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>axis</groupId>
|
||||
<artifactId>axis</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.httpcomponents</groupId>
|
||||
<artifactId>httpclient</artifactId>
|
||||
|
|
|
@ -1,98 +0,0 @@
|
|||
/**
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.axis;
|
||||
|
||||
import java.util.HashMap;
|
||||
import javax.jms.ConnectionFactory;
|
||||
import javax.jms.QueueConnectionFactory;
|
||||
import javax.jms.TopicConnectionFactory;
|
||||
|
||||
import org.apache.activemq.ActiveMQConnectionFactory;
|
||||
import org.apache.axis.components.jms.BeanVendorAdapter;
|
||||
import org.apache.axis.transport.jms.JMSURLHelper;
|
||||
|
||||
/**
|
||||
* An adapter for using ActiveMQ inside <a
|
||||
* href="http://ws.apache.org/axis/">Apache Axis</a>
|
||||
*
|
||||
* @deprecated will be removed from ActiveMQ 5.8 onwards.
|
||||
*/
|
||||
@Deprecated
|
||||
public class ActiveMQVendorAdapter extends BeanVendorAdapter {
|
||||
|
||||
/**
|
||||
* The URL to connect to the broker
|
||||
*/
|
||||
public static final String BROKER_URL = "brokerURL";
|
||||
|
||||
/**
|
||||
* Specifies the default user name
|
||||
*/
|
||||
public static final String DEFAULT_USERNAME = "defaultUser";
|
||||
|
||||
/**
|
||||
* Specifies the default password
|
||||
*/
|
||||
public static final String DEFAULT_PASSWORD = "defaultPassword";
|
||||
|
||||
protected static final String QCF_CLASS = ActiveMQConnectionFactory.class.getName();
|
||||
protected static final String TCF_CLASS = QCF_CLASS;
|
||||
|
||||
|
||||
public QueueConnectionFactory getQueueConnectionFactory(HashMap properties) throws Exception {
|
||||
properties = (HashMap)properties.clone();
|
||||
properties.put(CONNECTION_FACTORY_CLASS, QCF_CLASS);
|
||||
return super.getQueueConnectionFactory(properties);
|
||||
}
|
||||
|
||||
public TopicConnectionFactory getTopicConnectionFactory(HashMap properties) throws Exception {
|
||||
properties = (HashMap)properties.clone();
|
||||
properties.put(CONNECTION_FACTORY_CLASS, TCF_CLASS);
|
||||
return super.getTopicConnectionFactory(properties);
|
||||
}
|
||||
|
||||
public void addVendorConnectionFactoryProperties(JMSURLHelper jmsUrl, HashMap properties) {
|
||||
if (jmsUrl.getPropertyValue(BROKER_URL) != null) {
|
||||
properties.put(BROKER_URL, jmsUrl.getPropertyValue(BROKER_URL));
|
||||
}
|
||||
|
||||
if (jmsUrl.getPropertyValue(DEFAULT_USERNAME) != null) {
|
||||
properties.put(DEFAULT_USERNAME, jmsUrl.getPropertyValue(DEFAULT_USERNAME));
|
||||
}
|
||||
if (jmsUrl.getPropertyValue(DEFAULT_PASSWORD) != null) {
|
||||
properties.put(DEFAULT_PASSWORD, jmsUrl.getPropertyValue(DEFAULT_PASSWORD));
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isMatchingConnectionFactory(ConnectionFactory connectionFactory, JMSURLHelper jmsURL, HashMap properties) {
|
||||
String brokerURL = null;
|
||||
|
||||
if (connectionFactory instanceof ActiveMQConnectionFactory) {
|
||||
ActiveMQConnectionFactory amqConnectionFactory = (ActiveMQConnectionFactory)connectionFactory;
|
||||
|
||||
// get existing queue connection factory properties
|
||||
brokerURL = amqConnectionFactory.getBrokerURL();
|
||||
}
|
||||
|
||||
// compare broker url
|
||||
String propertyBrokerURL = (String)properties.get(BROKER_URL);
|
||||
if (brokerURL == null || !brokerURL.equals(propertyBrokerURL)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
(the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Support classes for integration with <a href="http://ws.apache.org/axis/">Apache Axis</a>
|
||||
for web service integration
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -1,24 +0,0 @@
|
|||
## ---------------------------------------------------------------------------
|
||||
## Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
## contributor license agreements. See the NOTICE file distributed with
|
||||
## this work for additional information regarding copyright ownership.
|
||||
## The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
## (the "License"); you may not use this file except in compliance with
|
||||
## the License. You may obtain a copy of the License at
|
||||
##
|
||||
## http://www.apache.org/licenses/LICENSE-2.0
|
||||
##
|
||||
## Unless required by applicable law or agreed to in writing, software
|
||||
## distributed under the License is distributed on an "AS IS" BASIS,
|
||||
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
## See the License for the specific language governing permissions and
|
||||
## limitations under the License.
|
||||
## ---------------------------------------------------------------------------
|
||||
|
||||
#
|
||||
# An example config file for using ActiveMQ with Apache Axis
|
||||
#
|
||||
|
||||
brokerURL=tcp://localhost:61616
|
||||
defaultUser=Administrator
|
||||
defaultPassword=Administrator
|
Loading…
Reference in New Issue