You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by akabhishek1 <ma...@gmail.com> on 2019/06/14 14:27:38 UTC

remove prefix "ID:" and "ID:AMQP_NO_PREFIX:" while receiving messages

Hi Team,

We need to remove prefix "ID:" and "ID:AMQP_NO_PREFIX:" while receiving the
message.
I published message on ServiceBus broker via two ways,  
1. Qpid JMS Client
2. Microsoft JAVA SDK.

Please find the attached screenshot “Published_Messages.png” of service bus
explorer. 

When I received the message via "qpid-jms-client-0.43.0" then i am getting
two prefix "ID:" and "ID:AMQP_NO_PREFIX:"

Published Via QPID JMS client         -
ID:9f54c235f790-4f81-b74d-843bfe4c59f8:1:1:1-1
Published Via Microsoft JAVA SDK  -  ID:AMQP_NO_PREFIX:TestMessageID


I tried to remove prefix "ID:" and "ID:AMQP_NO_PREFIX:" with the use of
"jms.clientIDPrefix" and "jms.clientID" at connection URL, BUT this setting
doesn't work.

Could you please provide some guidance to remove "ID:" and
"ID:AMQP_NO_PREFIX:" while receiving messages via Qpid JMS Client? 

I know, String manipulation is one option but i don't want to use this,
because this is not idle.

Regards,
Abhishek Kumar




--
Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html

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


Re: remove prefix "ID:" and "ID:AMQP_NO_PREFIX:" while receiving messages

Posted by akabhishek1 <ma...@gmail.com>.
Hi Robbie,

Thanks a lot for confirmation.

Regards,
Abhishek Kumar



--
Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html

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


Re: remove prefix "ID:" and "ID:AMQP_NO_PREFIX:" while receiving messages

Posted by Robbie Gemmell <ro...@gmail.com>.
JMSMessageID values have to begin with "ID:". The client thus
generates message ID values that do so when it sends messages. It
prefixes received values which dont do this, additionally including
information to help it round-trip these IDs with the appropriate
type/content if used to populate a correlation ID. If you want to
remove the JMSMessageID prefixes, you will have to do so yourself.

Aside: the list strips all but the smallest simplest attachments, so
yours didnt make it, though isnt needed in this case.

Robbie

On Fri, 14 Jun 2019 at 15:27, akabhishek1
<ma...@gmail.com> wrote:
>
> Hi Team,
>
> We need to remove prefix "ID:" and "ID:AMQP_NO_PREFIX:" while receiving the
> message.
> I published message on ServiceBus broker via two ways,
> 1. Qpid JMS Client
> 2. Microsoft JAVA SDK.
>
> Please find the attached screenshot “Published_Messages.png” of service bus
> explorer.
>
> When I received the message via "qpid-jms-client-0.43.0" then i am getting
> two prefix "ID:" and "ID:AMQP_NO_PREFIX:"
>
> Published Via QPID JMS client         -
> ID:9f54c235f790-4f81-b74d-843bfe4c59f8:1:1:1-1
> Published Via Microsoft JAVA SDK  -  ID:AMQP_NO_PREFIX:TestMessageID
>
>
> I tried to remove prefix "ID:" and "ID:AMQP_NO_PREFIX:" with the use of
> "jms.clientIDPrefix" and "jms.clientID" at connection URL, BUT this setting
> doesn't work.
>
> Could you please provide some guidance to remove "ID:" and
> "ID:AMQP_NO_PREFIX:" while receiving messages via Qpid JMS Client?
>
> I know, String manipulation is one option but i don't want to use this,
> because this is not idle.
>
> Regards,
> Abhishek Kumar
>
>
>
>
> --
> Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>

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