1 5 package com.opensymphony.oscache.plugins.clustersupport; 6 7 import com.opensymphony.oscache.base.Config; 8 9 import junit.framework.Test; 10 import junit.framework.TestSuite; 11 12 18 public final class TestJMSBroadcastingListener extends BaseTestBroadcastingListener { 19 public TestJMSBroadcastingListener(String str) { 20 super(str); 21 } 22 23 28 public static Test suite() { 29 return new TestSuite(TestJMSBroadcastingListener.class); 30 } 31 32 36 public AbstractBroadcastingListener getListener() { 37 return new JMSBroadcastingListener(); 38 } 39 40 43 Config getConfig() { 44 Config config = new Config(); 45 46 config.set("cache.cluster.jms.topic.factory", "java:comp/env/jms/TopicConnectionFactory"); 53 config.set("cache.cluster.jms.topic.name", "java:comp/env/jms/OSCacheTopic"); 54 config.set("cache.cluster.jms.node.name", "cacheNode1"); 55 56 return config; 57 } 58 } 59 | Popular Tags |