All Examples This Package JMS Examples
examples.jms.sender.SenderServlet
Configure the server:
weblogic.httpd.register.jmssender=examples.jms.sender.SenderServlet
weblogic.httpd.servlet.classpath=weblogic/myserver/servletclasses weblogic.httpd.servlet.reloadCheckSecs=1where weblogic is the directory where WebLogic is installed.
$ javac -d %SERVLET_CLASSES% SenderServlet.java
http://hostname:port/jmssenderwhere:
public static final String JMS_FACTORY
public static final String TOPIC
public static final String QUEUE
public SenderServlet()
public void service(HttpServletRequest req,
HttpServletResponse res) throws IOException, ServletException
public void printForm(PrintWriter pw) throws Exception
public void sendTopicMessage(boolean persistent,
int priority,
long ttl,
String correlate,
String replyto,
String topicMessage) throws NamingException, JMSException
public void sendQueueMessage(boolean persistent,
int priority,
long ttl,
String correlate,
String replyto,
String topicMessage) throws NamingException, JMSException
All Examples This Package JMS Examples