?? untitled2.java
字號:
package mytopicjms;import java.util.*;import javax.naming.*;public class Untitled2 { public static void main(String[] args) { TopicJMS myQueue=new TopicJMS(); Hashtable ht = new Hashtable(); ht.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory"); ht.put(Context.PROVIDER_URL, "t3://localhost:7001"); myQueue.setEnvironment(ht); try{ myQueue.getTopicSubscriber(); System.out.println("waiting for message"); synchronized(myQueue){ myQueue.wait(100000); } }catch (Exception e){e.printStackTrace();} }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -