This section shows how you can
To run the sample, you have to create JMS resources on the WebSphere Process Server: destinations, queues, connection factory and an activation spec for the message driven bean.
To create the destinations, follow theses steps:
JMSSample, then click Next.JMSSampleReply and JMSSampleCorrelation.The following image shows the Destinations page with the three new destinations:

To create the JMS queues, follow these steps:
JMSSample.jms/JMSSample.JMSSampleReply and JNDI name, jms/JMSSampleReply, select Queue name JMSSampleReply.JMSSampleCorrelation and JNDI name, jms/JMSSampleCorrelation select Queue name JMSSampleCorrelation.The following image shows the JMS queue page with the three new queues:

To create the queue connection factory, follow these steps:
JMSSampleReplyQCF.jms/JMSSampleReplyQCF.The following image shows the JMS queue connection factory page with the new queue connection factory:

To create the activation specification, follow these steps:
JMSSampleAS.jms/JMSSampleAS.jms/JMSSample as Destination JNDI name.The following image shows the JMS activation specification page with the new activation specification:

The resources listed in the following table have been created on your WebSphere Process Server:
| Resource type | Resource name | JNDI name |
|---|---|---|
| Destination | JMSSample | |
| Destination | JMSSampleReply | |
| Destination | JMSSampleCorrelation | |
| JMS queue | JMSSample | jms/JMSSample |
| JMS queue | JMSSampleReply | jms/JMSSampleReply |
| JMS queue | JMSSampleCorrelation | jms/JMSSampleCorrelation |
| JMS queue connection factory | JMSSampleReplyQCF | jms/JMSSampleQCF |
| JMS activation specification | JMSSampleAS | jms/JMSSampleAS |
A project interchange file with prepared sample projects is available in the Download section. These projects contain the sample process and the client application, but without the required bindings. These bindings will be added in the following chapters.
To load the prepared projects into WebSphere Integration Developer, follow these steps:

To export the JMS sample process as SCA Service with a JMS binding, complete the following steps:

The JMS Export Binding attributes selection window opens.

The export has been added:

.To update the bindings to resources on WebSphere Process Server, complete the following steps:
The binding properties are displayed:

jms/JMSSampleAS for the JNDI Lookup Name for the activation specification. jms/JMSSampleReplyQCF for the JNDI Lookup Name for the managed connection factory.Now, the JMS Export Binding page looks like:


jms/JMSSampleReply.The send destination properties look like:

jms/JMSSample. jms/JMSSampleCorrelation.
.To update the client application to resources on WebSphere Process Server, complete the following steps:
The Reference page is displayed.

The Add reference wizard opens:

The Resource Reference page is displayed:

jms/JMSSampleQCFRef.A new resource reference has been added:

jms/JMSSampleReplyQCF in the JNDI name field:
jms/JMSSampleRef.jms/JMSSample in the JNDI name field.jms/JMSSampleReplyRef.jms/JMSSampleReply in the JNDI name field.Three resource references have been added:

.