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 » UserIdentifier in standalone JMS application

Post new topic  Reply to topic
 UserIdentifier in standalone JMS application « View previous topic :: View next topic » 
Author Message
Marv
PostPosted: Fri Sep 14, 2007 7:21 am    Post subject: UserIdentifier in standalone JMS application Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Fri Sep 14, 2007 7:42 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Marv
PostPosted: Fri Sep 14, 2007 7:52 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Fri Sep 14, 2007 7:57 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » UserIdentifier in standalone JMS application
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.