alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

ActiveMQ example source code file (send.jsp)

This example ActiveMQ source code file (send.jsp) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - ActiveMQ tags/keywords

amq_scheduled_cron, apache, jmsdestinationtype, jmsdestinationtype, jmspriority, license, license, message, message, number, number, see, time, you

The ActiveMQ send.jsp source code

<%--
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
    this work for additional information regarding copyright ownership.
    The ASF licenses this file to You under the Apache License, Version 2.0
    (the "License"); you may not use this file except in compliance with
    the License.  You may obtain a copy of the License at
   
    http://www.apache.org/licenses/LICENSE-2.0
   
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
--%>
<html>
<head>
<title>Send Messages
</head>
<body>

<h2>Send a JMS Message

<form action="sendMessage.action" method="post">
<input type="hidden" name="secret" value="

<table id="headers" class="autostripe">
<thead>
<tr>
<th colspan="4">Message Header
</tr>
</thead>

<tbody>
<tr>
	<td class="label">
	    <label for="JMSDestination">Destination
	</td>
	<td>
	    <form:text name="JMSDestination" defaultValue="foo.bar" />
	</td>
	<td class="label">
	    <label for="queue">Queue or Topic
	</td>
	<td>
	    <select name="JMSDestinationType">
	      <form:option name="JMSDestinationType" value="queue" label="Queue"/>
	      <form:option name="JMSDestinationType" value="topic" label="Topic"/>
	   </select>
	</td>
</tr>
<tr>
	<td class="label">
	    <label for="JMSCorrelationID">Correlation ID
	</td>
	<td>
	    <form:text name="JMSCorrelationID"/>
	</td>
	<td class="label">
	    <label for="JMSPersistent">Persistent Delivery
	</td>
	<td>
	    <form:checkbox name="JMSPersistent"/>
	</td>
</tr>
<tr>
	<td class="label">
	    <label for="JMSReplyTo">Reply To
	</td>
	<td>
	    <form:text name="JMSReplyTo"/>
	</td>
	<td class="label">
	    <label for="JMSPriority">Priority
	</td>
	<td>
	    <form:text name="JMSPriority"/>
	</td>
</tr>
<tr>
	<td class="label">
	    <label for="JMSType">Type
	</td>
	<td>
	    <form:text name="JMSType"/>
	</td>
	<td class="label">
	    <label for="JMSTimeToLive">Time to live
	</td>
	<td>
	    <form:text name="JMSTimeToLive"/>
	</td>
</tr>
<tr>
	<td class="label">
	    <label for="JMSXGroupID">Message Group
	</td>
	<td>
	    <form:text name="JMSXGroupID"/>
	</td>
	<td class="label">
	    <label for="JMSXGroupSeq">Message Group Sequence Number
	</td>
	<td>
	    <form:text name="JMSXGroupSeq"/>
	</td>
</tr>
<tr>
	<td class="label">
	    <label for="AMQ_SCHEDULED_DELAY">delay(ms)
	</td>
	<td>
	    <form:text name="AMQ_SCHEDULED_DELAY"/>
	</td>
	<td class="label">
	    <label for="AMQ_SCHEDULED_PERIOD">Time(ms) to wait before scheduling again
	</td>
	<td>
	    <form:text name="AMQ_SCHEDULED_PERIOD"/>
	</td>
</tr>
<tr>
	<td class="label">
	    <label for="AMQ_SCHEDULED_REPEAT">Number of repeats
	</td>
	<td>
	    <form:text name="AMQ_SCHEDULED_REPEAT"/>
	</td>
	<td class="label">
	    <label for="AMQ_SCHEDULED_CRON">Use a CRON string for scheduling
	</td>
	<td>
	    <form:text name="AMQ_SCHEDULED_CRON"/>
	</td>
</tr>
<tr>
	<td class="label">
	    <label for="JMSMessageCount">Number of messages to send
	</td>
	<td>
	    <form:text name="JMSMessageCount" defaultValue="1"/>
	</td>
	<td class="label">
	    <label for="JMSMessageCountHeader">Header to store the counter
	</td>
	<td>
	    <form:text name="JMSMessageCountHeader" defaultValue="JMSXMessageCounter"/>
	</td>
</tr>
<tr>
 <td colspan="4" align="center">
     <input type="submit" value="Send"/>
     <input type="reset"/>
 </td>
</tr>
<tr>
	<th colspan="4" class="label">
	    <label for="text">Message body
	</th>
</tr>
<tr>
	<td colspan="4">
	    <textarea name="JMSText" rows="30" cols="80">Enter some text here for the message body...
	</td>
</tr>
</tbody>
</table>

</form>

</body>
</html>

Other ActiveMQ examples (source code examples)

Here is a short list of links related to this ActiveMQ send.jsp source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.