ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Process Server (WID/WPS/WAS+) » complex elements inside <usr>

Post new topic  Reply to topic
 complex elements inside <usr> « View previous topic :: View next topic » 
Author Message
attachvishal
PostPosted: Mon May 11, 2009 11:58 pm    Post subject: complex elements inside <usr> Reply with quote

Newbie

Joined: 11 May 2009
Posts: 2

When trying to send complex structure inside usr of RFH header, WPS/WAS fails to parse message the header
<usr>
<MonitoringData>
<TimeStamp>2009-05-11T08:20:30+02:00</TimeStamp>
<ApplicationID>ABC</ApplicationID>
<ServiceRelease>1.0</ServiceRelease>
<UserSessionID>User</UserSessionID>
<MessageID>803</MessageID>
<InitiatingMessageRef>
<ApplicationID>West_Event</ApplicationID>
<MessageID>803</MessageID>
</InitiatingMessageRef>
</MonitoringData>
<targetService>Export_pubContract_PubContractJmsPort</targetService>
</usr>

[5/11/09 16:19:37:168 CEST] 0000027f ConnectionEve A J2CA0056I: The Connection Manager received a fatal connection error from the Resource Adapter for resource jndi/DEFAULT_QM. The exception which was received is javax.jms.MessageFormatException: MQJMS1050: The MQRFH2 header has an incorrect format

If the same message is truncated with less complex structure like the following then it works

<usr>
<MonitoringData_TimeStamp>2009-05-11T08:20:30+02:00</MonitoringData_TimeStamp>
<MonitoringData_ApplicationID>ABC</MonitoringData_ApplicationID>
<MonitoringData_ServiceRelease>1.0</MonitoringData_ServiceRelease>
<MonitoringData_UserSessionID>User</UserSessionID>
<MonitoringData_MessageID>803</MessageID>
<MonitoringData_InitiatingMessageRef_ApplicationID>West_Event</MonitoringData_InitiatingMessageRef_ApplicationID> <MonitoringData_InitiatingMessageRef_MessageID>803</MonitoringData_InitiatingMessageRef_MessageID>
<targetService>Export_pubContract_PubContractJmsPort</targetService>
</usr>

It seems JMS doesn't allow complex structure in the RFH header.
Back to top
View user's profile Send private message
WMBDEV1
PostPosted: Tue May 12, 2009 1:21 am    Post subject: Re: complex elements inside <usr> Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

attachvishal wrote:
It seems JMS doesn't allow complex structure in the RFH header.


Correct
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue May 12, 2009 6:53 pm    Post subject: Re: complex elements inside <usr> Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

WMBDEV1 wrote:
attachvishal wrote:
It seems JMS doesn't allow complex structure in the RFH header.


Correct

Not quite true. It allows for simple property, value pairs.
Have you tried setting the value with an xml string?

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
WMBDEV1
PostPosted: Wed May 13, 2009 1:36 am    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

Ok, to be clear, the usr folder doesnt allowed nested tags as shown in the example.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Process Server (WID/WPS/WAS+) » complex elements inside <usr>
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.