    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.

##

JMS_FACTORY
TOPIC

##

TraderServlet()

##

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

##

JMS_FACTORY

     public static final String JMS_FACTORY

TOPIC

     public static final String TOPIC

##

TraderServlet

     public TraderServlet()

##

service

     public void service(HttpServletRequest req,
                         HttpServletResponse res) throws IOException, ServletException

printForm

     public void printForm(PrintWriter pw) throws Exception

sendTopicMessage

     public void sendTopicMessage(String customerName,
                                  String tradeType,
                                  String symbol,
                                  int shares) throws NamingException, JMSException

    All Examples  This Package  JMS Examples