Add back setBrokerName()

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@649617 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2008-04-18 17:19:41 +00:00
parent 27b5885338
commit b544fc0817
1 changed files with 8 additions and 0 deletions

View File

@ -117,6 +117,14 @@ public class TransportConnector implements Connector, BrokerServiceAware {
public void setBrokerInfo(BrokerInfo brokerInfo) {
this.brokerInfo = brokerInfo;
}
@Deprecated
public void setBrokerName(String name) {
if (this.brokerInfo==null) {
this.brokerInfo=new BrokerInfo();
}
this.brokerInfo.setBrokerName(name);
}
public TransportServer getServer() throws IOException, URISyntaxException {
if (server == null) {