Author |
Message
|
mqmaniac |
Posted: Tue Jul 15, 2008 12:45 pm Post subject: Modify MQMD.UserIdentifier using JMS(MDB) |
|
|
 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 |
|
 |
sridhsri |
Posted: Tue Jul 15, 2008 12:48 pm Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Tue Jul 15, 2008 1:07 pm Post subject: |
|
|
 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 |
|
 |
mqmaniac |
Posted: Wed Jul 16, 2008 5:28 am Post subject: |
|
|
 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 |
|
 |
atheek |
Posted: Wed Jul 16, 2008 6:00 pm Post subject: |
|
|
 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 |
|
 |
RogerLacroix |
Posted: Thu Jul 17, 2008 8:51 pm Post subject: |
|
|
 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 |
|
 |
mqmaniac |
Posted: Fri Jul 18, 2008 4:26 am Post subject: |
|
|
 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 |
|
 |
|