KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > walend > somnifugi > SomniTemporaryTopic


1 package net.walend.somnifugi;
2
3 import javax.naming.Referenceable JavaDoc;
4 import javax.naming.Reference JavaDoc;
5 import javax.naming.NamingException JavaDoc;
6 import javax.naming.Context JavaDoc;
7
8 import javax.jms.TemporaryTopic JavaDoc;
9 import javax.jms.JMSException JavaDoc;
10 import javax.jms.Message JavaDoc;
11
12 import net.walend.somnifugi.channel.ChannelFactory;
13 import net.walend.somnifugi.channel.FanOutFactory;
14
15 /**
16 A Temporary Topic.
17
18 @author <a HREF="http://walend.net">David Walend</a> <a HREF="mailto:david@walend.net">david@walend.net</a>
19  */

20
21 public class SomniTemporaryTopic
22     extends SomniTopic
23     implements TemporaryTopic JavaDoc
24 {
25     private static final long serialVersionUID = 0L;
26
27     protected SomniTemporaryTopic(String JavaDoc name,ChannelFactory<Message JavaDoc> factory,FanOutFactory<Message JavaDoc> fanOutFactory,Context JavaDoc context)
28         throws SomniNamingException
29     {
30         super(name,factory,fanOutFactory,context);
31     }
32
33     //TemproaryTopic methods
34
public void delete()
35         throws JMSException JavaDoc
36     {
37         SomniTopicCache.IT.removeTopic(getTopicName());
38     }
39
40 }
41
42 /* Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006 David Walend
43 All rights reserved.
44
45 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
46
47 Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
48
49 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
50
51 Neither the name of the SomnifugiJMS Project, walend.net, nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission from David Walend.
52
53 Credits in redistributions in source or binary forms must include a link to http://somnifugi.sourceforge.net .
54
55 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
56 The net.walend.somnifugi.sql92 package is modified code from the openmq project, https://mq.dev.java.net/ , Copyright (c) of Sun, and carries the CDDL license, repeated here: You can obtain a copy of the license at https://glassfish.dev.java.net/public/CDDLv1.0.html. See the License for the specific language governing permissions and limitations under the License.
57
58 =================================================================================
59
60 For more information and the latest version of this software, please see http://somnifugi.sourceforge.net and http://walend.net or email <a HREF="mailto:david@walend.net">david@walend.net</a>.
61  */

62
Popular Tags