mirror of https://github.com/apache/activemq.git
updated for compilation errors for some java platforms
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@376041 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1b9c601975
commit
ef0127d81c
|
@ -79,7 +79,7 @@ abstract class DestinationBridge implements Service,MessageListener{
|
|||
|
||||
|
||||
protected Destination processReplyToDestination (Destination destination){
|
||||
return jmsConnector.createReplyToBridge(destination, getConsumerConnection(), getProducerConnection());
|
||||
return jmsConnector.createReplyToBridge(destination, getConnnectionForConsumer(), getConnectionForProducer());
|
||||
}
|
||||
|
||||
public void start() throws Exception{
|
||||
|
@ -140,9 +140,9 @@ abstract class DestinationBridge implements Service,MessageListener{
|
|||
|
||||
protected abstract void sendMessage(Message message) throws JMSException;
|
||||
|
||||
protected abstract Connection getConsumerConnection();
|
||||
protected abstract Connection getConnnectionForConsumer();
|
||||
|
||||
protected abstract Connection getProducerConnection();
|
||||
protected abstract Connection getConnectionForProducer();
|
||||
|
||||
|
||||
}
|
|
@ -16,6 +16,7 @@
|
|||
*/
|
||||
package org.apache.activemq.network.jms;
|
||||
|
||||
import javax.jms.Connection;
|
||||
import javax.jms.Destination;
|
||||
import javax.jms.JMSException;
|
||||
import javax.jms.Message;
|
||||
|
@ -153,5 +154,13 @@ class QueueBridge extends DestinationBridge{
|
|||
this.selector=selector;
|
||||
}
|
||||
|
||||
protected Connection getConnnectionForConsumer(){
|
||||
return getConsumerConnection();
|
||||
}
|
||||
|
||||
protected Connection getConnectionForProducer(){
|
||||
return getProducerConnection();
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -16,6 +16,7 @@
|
|||
*/
|
||||
package org.apache.activemq.network.jms;
|
||||
|
||||
import javax.jms.Connection;
|
||||
import javax.jms.Destination;
|
||||
import javax.jms.JMSException;
|
||||
import javax.jms.Message;
|
||||
|
@ -176,4 +177,12 @@ class TopicBridge extends DestinationBridge{
|
|||
public void setSelector(String selector){
|
||||
this.selector=selector;
|
||||
}
|
||||
|
||||
protected Connection getConnnectionForConsumer(){
|
||||
return getConsumerConnection();
|
||||
}
|
||||
|
||||
protected Connection getConnectionForProducer(){
|
||||
return getProducerConnection();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue