|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
UserIdentifier in standalone JMS application |
« View previous topic :: View next topic » |
Author |
Message
|
Marv |
Posted: Fri Sep 14, 2007 7:21 am Post subject: UserIdentifier in standalone JMS application |
|
|
Newbie
Joined: 14 Sep 2007 Posts: 2
|
I am having a problem identical to this:
http://groups.google.com/group/ibm.software.vajava.enterprise/browse_...
Trying to call an IMS program, I don't manage to set the
UserIdentifier on the MQ header. It always get replaced by the user
running the queue on the server.
I am using a TCP/IP client transport type and instantiating my
com.ibm.mq.jms.MQQueueConnectionFactory by hand.
I tried to set the JMSXUserID property on the message without effect
(this even gives an exception with MQ Client Jars older than 6.0).
After the message is sent, its JMSXUserID has been overwritten.
I also tried to open the connection with an explicit username and
password.
I even tried to set an MQConnectionSecurityParameters using an
MQSecurityExit like described in
http://www.ibm.com/developerworks/websphere/library/techarticles/0512...
The same code was behaving perfectly when deployed in a WebSphere
Application server and the QueueConnectionFactory and Queues where
configured through the websphere console. But in a J2SE app, I don't
manage to configure it correctly.
Any pointers? Should I use a binding transport type? A JAAS Subject?
An MQSendExit?
Thanks,
Marv |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Sep 14, 2007 7:42 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Have you tried a client connection (not bindings) with
Connection = qcf.createQueueConnection(username, passwd);
?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Marv |
Posted: Fri Sep 14, 2007 7:52 am Post subject: |
|
|
Newbie
Joined: 14 Sep 2007 Posts: 2
|
Yes, that's what I meant by opening with an explicit username and password.
Even an invalid username gets silently ignored. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Sep 14, 2007 7:57 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Marv wrote: |
Yes, that's what I meant by opening with an explicit username and password.
Even an invalid username gets silently ignored. |
Do you have an mcauser on the channel?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|