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 » IBM MQ Java / JMS » Modify MQMD.UserIdentifier using JMS(MDB)

Post new topic  Reply to topic
 Modify MQMD.UserIdentifier using JMS(MDB) « View previous topic :: View next topic » 
Author Message
mqmaniac
PostPosted: Tue Jul 15, 2008 12:45 pm    Post subject: Modify MQMD.UserIdentifier using JMS(MDB) Reply with quote

Master

Joined: 27 Dec 2005
Posts: 201

How do we modify the MQMD.UserIdentifier in a JMS message when i send it to queue in an MDB.

Not sure if JMS has any methods to do this??


Is this possible?

Does MDB have any JMS Methods Like (SetUserIdentifier () )???

Pls Help!!
Thanks in Advance.
Back to top
View user's profile Send private message
sridhsri
PostPosted: Tue Jul 15, 2008 12:48 pm    Post subject: Reply with quote

Master

Joined: 19 Jun 2008
Posts: 297

I think you'd have to use the queue connection to create a connection like: QueueConnection connection = factory.createQueueConnection(username, password);
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Jul 15, 2008 1:07 pm    Post subject: Reply with quote

Grand High Poobah

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

sridhsri wrote:
I think you'd have to use the queue connection to create a connection like: QueueConnection connection = factory.createQueueConnection(username, password);


Correct
The right way to this in a J2EE environment is to set the JAAS alias on the container managed and on the bean managed authentication


_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mqmaniac
PostPosted: Wed Jul 16, 2008 5:28 am    Post subject: Reply with quote

Master

Joined: 27 Dec 2005
Posts: 201

I have tried the QueueConnection connection = factory.createQueueConnection(username, password);

But ,It did not chnage the MQMD.UserIdentifier in the MQMD when i sent the message to the queue,...

Any Ideas Pls!!!
Back to top
View user's profile Send private message
atheek
PostPosted: Wed Jul 16, 2008 6:00 pm    Post subject: Reply with quote

Partisan

Joined: 01 Jun 2006
Posts: 327
Location: Sydney

AFAIK mq's implementation of jms doesn't allow User Id's to be set at the message. There seems to a bit ambiguity on the interpretation of the jms specification for this User ID field and mq treats this as a read only field. I may be wrong, but we faced this issue long back
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Thu Jul 17, 2008 8:51 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

mqmaniac wrote:
QueueConnection connection = factory.createQueueConnection(username, password);

But ,It did not chnage the MQMD.UserIdentifier in the MQMD when i sent the message to the queue,...

createQueueConnection method works just fine. Does your SVRCONN channel have a value in the MCAUSER field? If so, then that is your problem.

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
mqmaniac
PostPosted: Fri Jul 18, 2008 4:26 am    Post subject: Reply with quote

Master

Joined: 27 Dec 2005
Posts: 201

Thanks for the Reply Jedi,...

We were able to resolve the issue.
we followed using the JMS Header to include an extra field inside the usr folder instead of manipulating MQMD.

Thanks Again!!
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 » IBM MQ Java / JMS » Modify MQMD.UserIdentifier using JMS(MDB)
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.