InfoCenter Home >
6: Administer applications >
6.6: Tools and resources quick reference >
6.6.0: About user assistance >
6.6.0.2: Command line administration >
6.6.0.2.2: WebSphere Control Program (wscp) >
6.6.0.2.2.4: Example wscp commands, procedures, and scripts >
6.6.0.2.2.4.12: Administering the Java Message Service (JMS)

6.6.0.2.2.4.12: Administering the Java Message Service (JMS)

The Java Messaging Service (JMS) enables applications to exchange data in the form of messages. The wscp operations JMSProvider, JMSConnectionFactory and JMSDestination enable you to configure JMS clients from the command line as follows:

  • Create a JMS provider by using the JMSProvider create command. A JMS provider implements the JMS messaging interfaces.

  • Install a JMS provider on a node by using the JMSProvider install command. You can install JMS providers on multiple nodes.

  • Create an instance of a JMS connection factory by using the JMSConnectionFactory create command. A client uses a JMS connection factory object to connect to the messaging system.

  • Create an instance of a JMS destination by using the JMSDestination create command. A client uses a JMS destination object to specify the target of the messages it sends or the source of the messages it receives.

The following example command creates a JMS provider. The ExternalInitialContextFactory and ExternalProviderURL attributes are required.

wscp> JMSProvider create /JMSProvider:Prov1/ -attribute
{{ExternalInitialContextFactory com.ibm.websphere.naming.WsnInitialContextFactory}
{ExternalProviderURL iiop://localhost}}

The following example command installs a JMS provider on the node dev1:

wscp> JMSProvider install /JMSProvider:Prov1/ -node /Node:dev1/
-jarFile "/opt/WebSphere/ApplicationServer/jars/JMS.jar"

The following example command creates an instance of a JMS connection factory. The ExternalJNDIName attribute is required.

wscp> JMSConnectionFactory create /JMSProvider:Prov1/JMSConnectionFactory:connect1/ -attribute {{ExternalJNDIName jms/connect1}}

The following example command creates an instance of a JMS destination. The ExternalJNDIName attribute is required.

wscp> JMSDestination create /JMSProvider:Prov1/JMSDestination:dest1/
-attribute {{ExternalJNDIName jms/dest1}}

For more information, see Administering messaging and JMS providers.

Go to previous article: 6.6.0.2.2.4.11: Administering EIS connections Go to next article: 6.6.0.2.2.4.13: Administering JavaMail sessions

 

 
Go to previous article: 6.6.0.2.2.4.11: Administering EIS connections Go to next article: 6.6.0.2.2.4.13: Administering JavaMail sessions