WebServices do not place response message on MQ
Outbound Queues
|
Technote
(troubleshooting)
Problem(Abstract)
|
When sending an inbound message using WebServices and
WebSphere MQ, a return message never shows up on any queue. In the event
of a bad message, a return message is not placed on the error queue.
|
Cause
|
When using WebServices, response messages are not
automatically placed in any queue. The queue needs to be specified in
order for Commerce to know where to place the message. The client must
specify the outbound queue so that it knows where to look for the
response.
|
Diagnosing the
problem
|
To check if your JMS headers have been set, turn on the
following trace string:
- Enable WebSphere Commerce webservices trace.
Follow instructions here
to enable the following trace specification:
com.ibm.commerce.webservices.engine.*=all
- Reproduce the issue
Send a sample inbound webservice message and wait for commerce to
process it.
- Open up the trace logs
Commerce trace files
<WAS_HOME>\profiles\<profile>\logs\server1\trace.log
- Find the trace entry similar to:
[9/11/07 13:04:45:062 EDT]
0000004d
> com.ibm.commerce.webservices.engine.JMSListenerMDB
onMessage(javax.jms.Message) ENTRY
JMS Message class: jms_text
JMSType: null
JMSDeliveryMode: 1
JMSExpiration: 0
JMSPriority: 0
JMSMessageID:
ID:414d5120766d7761726530312e716d201cc6e64620002902
JMSTimestamp: 1189530284960
JMSCorrelationID:null
JMSDestination: null
JMSReplyTo: null
JMSRedelivered: false
JMS_IBM_PutDate:20070911
JMSXAppID:30\eclipse\jre\bin\javaw.exe
JMS_IBM_Format:MQSTR
|
Resolving the
problem
|
The JMS message header needs to be set in order for
Commerce to know where to place the response message if there is any or in
event of an error. In this example, the JMSReplyTo queue is set as null.
When generating the message, the client is responsible for specifying the
queue in which to place the response. Set the JMS headers when generating
the message to set the JMSReplyTo field to a valid queue.
|
|
|
|
Cross Reference information
|
Segment
| Product
| Component
| Platform
| Version
| Edition
|
Commerce
| WebSphere Commerce Enterprise
| Customization / Application Development
| AIX, i5/OS, Linux, Solaris, Windows
| 6.0, 6.0.0.1, 6.0.0.2, 6.0.0.3
|
|
Commerce
| WebSphere Commerce Professional Edition
| Customization / Application Development
| AIX, i5/OS, Linux, Solaris, Windows
| 6.0, 6.0.0.1, 6.0.0.2, 6.0.0.3, 6.0.0.4
| |
|
Current web document: http://www.ibm.com/support/docview.wss?uid=swg21271140
|