Websphere MQ Everyplace

examples.osgi.admin
Class MQeAdmin

java.lang.Object
  |
  +--examples.osgi.admin.MQeAdmin

public class MQeAdmin
extends java.lang.Object

MQeAdmin class provides helper methods to create and configure an MQeQueueManager. The QM name and Reg location to be used are passed in via the constructor. This class configures QueueManagers to use the following adapters: MQeTcpipHttpAdapter is used for comms. MQeMemoryFieldsAdapter is used for registry storage.


Field Summary
static short[] version
           
 
Constructor Summary
MQeAdmin(java.lang.String qmName, java.lang.String regLocation)
          Constructor to create a new MQeAdmin.
 
Method Summary
 void addRemoteQueueDefinition()
          Adds a remote queue definition.
 void createConnection()
          method to show how a connection definition may be created using an administration message.
 void createListener()
          Creates a listener on the Queue Manager on port 8085 by default.
 void defineQM()
          Defines the Queue Manager
 void deleteListener()
          method to delete the listener using an administration message
 void deleteQM()
          Deletes the Queue Manager definition.
 void setServerAddressAndPort(java.lang.String targetQMIPAddress, java.lang.String targetQMPort)
          Sets the address and port of the server.
 void startListener()
          Starts the Listener that should have already been created on the QM.
 void startQM()
          Starts the Queue Manager
 void stopListener()
          Stops the Queue Managers Listener
 void stopQM()
          Stops the Queue Manager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version

public static short[] version
Constructor Detail

MQeAdmin

public MQeAdmin(java.lang.String qmName,
                java.lang.String regLocation)
Constructor to create a new MQeAdmin. This sets the QueueManger name and Registry location to be used by the MQeQueuemanager.

Method Detail

setServerAddressAndPort

public void setServerAddressAndPort(java.lang.String targetQMIPAddress,
                                    java.lang.String targetQMPort)
Sets the address and port of the server. When this MQeAdmin class is used by a MQeServerApp the port set here is used for the listener. When this MQeAdmin class is used by a MQeClientApp the port and address set here is used for the connection defintion pointing to the queue manager used by the MQeServerApp By default the Address is set to 127.0.0.1 By default the Port is set to 8085


defineQM

public void defineQM()
Defines the Queue Manager


stopQM

public void stopQM()
Stops the Queue Manager


deleteQM

public void deleteQM()
Deletes the Queue Manager definition.


startQM

public void startQM()
Starts the Queue Manager


createListener

public void createListener()
Creates a listener on the Queue Manager on port 8085 by default.


startListener

public void startListener()
Starts the Listener that should have already been created on the QM.


stopListener

public void stopListener()
Stops the Queue Managers Listener


deleteListener

public void deleteListener()
method to delete the listener using an administration message


addRemoteQueueDefinition

public void addRemoteQueueDefinition()
Adds a remote queue definition. This is used by the client to setup a remote queue definition to the servers local queue.


createConnection

public void createConnection()
method to show how a connection definition may be created using an administration message. This is used by the client to setup a connection definition to the server so messages can be sent.


Websphere MQ Everyplace