qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Sim <g...@redhat.com>
Subject Re: Clearing userId field on JMS message
Date Thu, 19 Jun 2014 17:18:47 GMT
On 06/18/2014 11:40 PM, Amy Wu wrote:
> I am using Qpid JMS to send messages to a C++ broker which will then be received by a
C++ client.  My JMS client connects to the broker using a different authenticated user than
the C++ client.  The issue I am running into is that when the JMS client sends a message,
it sets the user_id property on the message so that when the C++ client receives the message,
it errors out with something like:
> "unauthorized-access: authorised user id : user1@QPID but user id in message declared
as user2 (/builddir/build/BUILD/qpid-0.28-rc2/cpp/src/qpid/broker/SemanticState.cpp:497"

That error occurs in the broker when a message is sent by a client. SO I 
suspect what may be happening is that your c++ client is receiving the 
message from JMS, then sending the same message back (including the 
userid of the JMS client that originally sent it).

If I'm right, all you need to do is clear the message in the c++ client, 
before resending it (using Message::setUserId()).

To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org

View raw message