updated the demo to reflect the latest changes in activemq-web

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@396898 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2006-04-25 14:21:25 +00:00
parent 33cf032b38
commit 3f1ea2e01a
3 changed files with 22 additions and 4 deletions

View File

@ -47,6 +47,12 @@
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>MessageServlet</servlet-name>
<servlet-class>org.apache.activemq.web.MessageServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- the queue browse servlet -->
<servlet>
<servlet-name>QueueBrowseServlet</servlet-name>
@ -65,6 +71,11 @@
<url-pattern>/amq/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>MessageServlet</servlet-name>
<url-pattern>/message/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>QueueBrowseServlet</servlet-name>
<url-pattern>/queueBrowse/*</url-pattern>

View File

@ -39,10 +39,9 @@ updates in real time as the market prices change
</p>
<p>
<a href="amq/FOO/BAR?timeout=10000">Receive a message</a>
<a href="message/FOO/BAR?timeout=10000&type=queue">Receive a message</a>
</p>
<h2>Queue browser example</h2>
<ul>

View File

@ -8,9 +8,17 @@
<body>
<h1>Send a JMS Message</h1>
<form action="amq/FOO/BAR?topic=false" method="post">
<form action="message/FOO/BAR" method="post">
<p>
<label for="body">Message body: </label>
<label for="destination">Destination name</label>
<input type="text" name="destination"/>
</p>
<p>
<label for="type">Destination Type: </label>
<select name="type">
<option selected value="queue">Queue</option>
<option type" value="topic">Topic</option>
</select>
</p>
<p>
<textarea name="body" rows="30" cols="80">