SimpleJMSControl.jcx Sample

This topic inludes the source code for the SimpleJMSControl.jcx Sample.

Sample Location

This sample is located in the following directory in your WebLogic Workshop installation:

BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebServices/jms/

Sample Source Code


01 package jms; 
02 
03 import com.bea.control.JMSControl;
04 import java.io.Serializable;
05 
06 /** 
07  <p>The JMS control that this sample demonstrates.  Notice that the
08  * send and receive queue are the same.</p>
09  
10  * @jc:jms send-type="queue" send-jndi-name="jms.SimpleJmsQ" receive-type="queue" receive-jndi-name="jms.SimpleJmsQ"
11  * connection-factory-jndi-name="weblogic.jws.jms.QueueConnectionFactory" 
12  */ 
13 public interface SimpleJMSControl extends com.bea.control.ControlExtension, JMSControl 
14 {
15     public void publishText(String msg);
16 
17     public static interface Callback extends JMSControl.Callback
18     {
19         public void onTextMessage(String msg);
20     }
21 }