Version 7 (modified by jazz, 16 years ago) (diff) |
---|
2008-10-27
- 下載 ActiveMQ 5.1.0 Release, 解壓縮,並執行 ActiveMQ Message Broker
~$ wget http://ftp.twaren.net/Unix/Web/apache/activemq/apache-activemq/5.1.0/apache-activemq-5.1.0-bin.tar.gz ~$ tar zxvf apache-activemq-5.1.0-bin.tar.gz ~$ cd apache-activemq-5.1.0/ ~/apache-activemq-5.1.0$ ./bin/activemq
- 連線到 http://127.0.0.1:8161/demo/
- 用不同的視窗執行 Portfolio 範例,下圖右上方是¨Market data publisher¨(Message Provider),左上方是¨Portfolio¨網頁(Message Receiver),下方是 ActiveMQ Message Broker。我們可以看到 Message Sender/Provider? 網頁每兩秒送出一筆新的訊息。而 Message Receiver/Subscriber? 則會用顏色標示出目前更新的情形。
Attachments (9)
- ActiveMQ_Sample.png (49.3 KB) - added by jazz 16 years ago.
- ActiveMQ_Portfolio.png (169.8 KB) - added by jazz 16 years ago.
- ActiveMQ_Admin.png (90.1 KB) - added by jazz 16 years ago.
- PortfolioPublishServlet.java (5.1 KB) - added by jazz 16 years ago.
- prototype.js (46.5 KB) - added by jazz 16 years ago.
- behaviour.js (7.7 KB) - added by jazz 16 years ago.
- amq.js (1.5 KB) - added by jazz 16 years ago.
- _amq.js (5.1 KB) - added by jazz 16 years ago.
- portfolio.js (2.5 KB) - added by jazz 16 years ago.
Download all attachments as: .zip