KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > activemq > network > jms > OutboundQueueBridge


1 /**
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one or more
4  * contributor license agreements. See the NOTICE file distributed with
5  * this work for additional information regarding copyright ownership.
6  * The ASF licenses this file to You under the Apache License, Version 2.0
7  * (the "License"); you may not use this file except in compliance with
8  * the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18 package org.apache.activemq.network.jms;
19
20
21 /**
22  * Create an Outbound Queue Bridge
23  *
24  * @org.apache.xbean.XBean
25  *
26  * @version $Revision: 1.1.1.1 $
27  */

28 public class OutboundQueueBridge extends QueueBridge{
29        
30     String JavaDoc outboundQueueName;
31     String JavaDoc localQueueName;
32     /**
33      * Constructor that takes a foreign destination as an argument
34      * @param outboundQueueName
35      */

36     public OutboundQueueBridge(String JavaDoc outboundQueueName){
37         this.outboundQueueName = outboundQueueName;
38         this.localQueueName = outboundQueueName;
39     }
40     
41     /**
42      * Default Contructor
43      */

44     public OutboundQueueBridge(){
45     }
46
47     /**
48      * @return Returns the outboundQueueName.
49      */

50     public String JavaDoc getOutboundQueueName(){
51         return outboundQueueName;
52     }
53
54     /**
55      * @param outboundQueueName The outboundQueueName to set.
56      */

57     public void setOutboundQueueName(String JavaDoc outboundQueueName){
58         this.outboundQueueName=outboundQueueName;
59         if (this.localQueueName==null){
60             this.localQueueName=outboundQueueName;
61         }
62     }
63
64     /**
65      * @return the localQueueName
66      */

67     public String JavaDoc getLocalQueueName(){
68         return localQueueName;
69     }
70
71     /**
72      * @param localQueueName the localQueueName to set
73      */

74     public void setLocalQueueName(String JavaDoc localQueueName){
75         this.localQueueName=localQueueName;
76     }
77     
78 }
79
Popular Tags