org.apache.activemq.web
Class PortfolioPublishServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.activemq.web.MessageServletSupport
org.apache.activemq.web.PortfolioPublishServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class PortfolioPublishServlet
- extends MessageServletSupport
A servlet which will publish dummy market data prices
- Version:
- $Revision: 1.1.1.1 $
- See Also:
- Serialized Form
Methods inherited from class org.apache.activemq.web.MessageServletSupport |
appendParametersToMessage, asBoolean, asBoolean, asDestination, asInt, asInteger, asLong, asLong, asString, getDestination, getDestination, getDestinationFromURI, getPostedMessageBody, getSendPriority, getSendTimeToLive, init, isSendPersistent, isSync, isTopic |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortfolioPublishServlet
public PortfolioPublishServlet()
init
public void init()
throws ServletException
- Overrides:
init
in class GenericServlet
- Throws:
ServletException
doGet
protected void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Overrides:
doGet
in class HttpServlet
- Throws:
ServletException
IOException
sendMessage
protected void sendMessage(WebClient client,
String[] stocks)
throws JMSException
- Throws:
JMSException
createStockText
protected String createStockText(String stock)
mutatePrice
protected double mutatePrice(double price)
getNumberOfMessages
protected int getNumberOfMessages(HttpServletRequest request)
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.