okie so you mean if i want to get messages on basis on its label say only
messages with HELLO label will be received else all will be discarded then
on sender side i need to set 
message.getHeader().setString("Label", "HELLO"); 

and 
on receiver side 
put output of message.getHeader().getString("Label") in conditional
statement right??
then why is get/set AppiId, UserId, CorrelationId & MessageId provided? what
is their usage?

I was searching for peek functionality of MSMQ in qpid but could not get
it... does qpid provide peeking functionality of MSMQ by some other name?



Gordon Sim wrote:
> 
> ft420 wrote:
>> Is it possible to send/receive etc to/from remote machine as in MSMQ?
>> what is the procedure for the same?
>> 
>> While running the broker -p option allows me to listen on port other than
>> 5672 but if i want to change the ip also how to do the same as by default
>> it
>> takes 127.0.0.1 ip...
> 
> The broker will listen on all interfaces. All you then need to do is 
> specify the correct hostname/ip address and port in your client program.
> 
> If you look at the examples, they accept the host and port as the first 
> and second command line arguments.
> 
>> the client api documentation doesnot have explaination for the apis
>> provieded... for example i wanted Label feature hence i was checking
>> MessageProperties class there are quite a few options like MessageId,
>> AppId
>> etc but was unable to understand which option is actually equivalent to
>> Label option in MSMQ?? 
> 
> You can set any property in the application headers of the message as a 
> key-value pair.
> 
> E.g. for the c++ client:
> 
>    message.getHeaders().setString("Label","xyz");
> 
> or
> 
>    message.getHeaders().setInt("Label",973987528);
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscr...@qpid.apache.org
> 
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/send-receive-to-from-remote-machine-tp2507392p2508049.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscr...@qpid.apache.org

Reply via email to