All Examples  This Package  JMS Examples

Class examples.jms.trader.TraderServlet

examples.jms.trader.TraderServlet

public class TraderServlet
This example sends a "buy" or "sell" message to a JMS Topic from the Java servlet TraderServlet. The TraderReceive client receives the messages and invokes an EJBean to process the messages.
Author:
Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.

Variable Index

 o JMS_FACTORY
 o TOPIC

Constructor Index

 o TraderServlet()

Method Index

 o printForm(PrintWriter)
 o sendTopicMessage(String, String, String, int)
 o service(HttpServletRequest, HttpServletResponse)

Variables

 o JMS_FACTORY
 public static final String JMS_FACTORY
 o TOPIC
 public static final String TOPIC

Constructors

 o TraderServlet
 public TraderServlet()

Methods

 o service
 public void service(HttpServletRequest req,
                     HttpServletResponse res) throws IOException, ServletException
 o printForm
 public void printForm(PrintWriter pw) throws Exception
 o sendTopicMessage
 public void sendTopicMessage(String customerName,
                              String tradeType,
                              String symbol,
                              int shares) throws NamingException, JMSException

All Examples  This Package  JMS Examples