svn commit: r833472 - /tomcat/trunk/modules/bayeux/test/org/apache/cometd/bayeux/samples/BayeuxStockTicker.java

View: New views
1 Messages — Rating Filter:   Alert me  

svn commit: r833472 - /tomcat/trunk/modules/bayeux/test/org/apache/cometd/bayeux/samples/BayeuxStockTicker.java

by fhanik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Author: fhanik
Date: Fri Nov  6 17:01:20 2009
New Revision: 833472

URL: http://svn.apache.org/viewvc?rev=833472&view=rev
Log:
Make a differentiator which stock ticker is running

Modified:
    tomcat/trunk/modules/bayeux/test/org/apache/cometd/bayeux/samples/BayeuxStockTicker.java

Modified: tomcat/trunk/modules/bayeux/test/org/apache/cometd/bayeux/samples/BayeuxStockTicker.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/modules/bayeux/test/org/apache/cometd/bayeux/samples/BayeuxStockTicker.java?rev=833472&r1=833471&r2=833472&view=diff
==============================================================================
--- tomcat/trunk/modules/bayeux/test/org/apache/cometd/bayeux/samples/BayeuxStockTicker.java (original)
+++ tomcat/trunk/modules/bayeux/test/org/apache/cometd/bayeux/samples/BayeuxStockTicker.java Fri Nov  6 17:01:20 2009
@@ -107,7 +107,7 @@
                 Stock[] stocks = new Stock[] {
                         new Stock("GOOG", 435.43),
                         new Stock("YHOO", 27.88),
-                        new Stock("SPRG", 1015.55), };
+                        new Stock("ASF", 1015.55), };
                 for (Stock s : stocks) {
                     Channel ch = b.getChannel("/stock/"+s.getSymbol(), true);
                     ch.subscribe(c);
@@ -134,7 +134,7 @@
                         m.put("price", stock.getValueAsString());
                         m.put("change", stock.getLastChangeAsString());
                         ch.publish(m);
-                        System.out.println("Stock: "+stock.getSymbol()+" Price: "+stock.getValueAsString()+" Change: "+stock.getLastChangeAsString());
+                        System.out.println("Bayeux Stock: "+stock.getSymbol()+" Price: "+stock.getValueAsString()+" Change: "+stock.getLastChangeAsString());
                     }
                     Thread.sleep(850);
                 }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...