Re: Multiple client in ActiveMQ useing openwire-cpp API's

2006-08-07 Thread Arshad Ahamad
Hi Bish, 

  Please guide me, How can I create multiple client(Sender) for the single 
client(Receiver) but they bust be communicate bi-directionaly. Pls do tell 
me the requered steps. 


Thanks in advance




Thanks & Regards
Arashad Ahamad


Re: Multiple client in ActiveMQ useing openwire-cpp API's

2006-08-07 Thread Arshad Ahamad

Hi Bish,


//Receive  message
  while(1)
  {
  }
This while loop for receving the message without executing recever again 
and again. And in case of  the following code

while(1)
{
semaphore.wait(1) ;
} 

In this case also multiple client are not intrect with a single recever is 
there any other thing are missing. Pls guide me .
Plesae keep in touch, so that I can remove my problems.. 



Thanks in advance 





Thanks & Regards
Arashad Ahamad


Regarding Multiple client in ActiveMQ for openwire-cpp API's

2006-08-01 Thread Arshad Ahamad
Hi all, 


I am working on openwire-cpp ( for ActiveMQ-4.0) code on SuSe(Linux
machine->i686-suse-linux, version 2.6.13-15.8-default) 

Is it possible to send & receive over the same queue in ActiveMQ?,  If yes 
pls give me the idea about this.
If not then how will the receiver know on which queue it is going to send 
the reply? (In case of multiple client). Pls help me, my project is delaying 
because of this. 

  Thanks in advance 



Regards
Arashad Ahamad


Re: Problem in openwire-cpp API for messages

2006-07-26 Thread Arshad Ahamad
Hi, 

   I have solve this problem, I change the size of the variable in the 
following files

./main/cpp/ppr/io/ByteArrayOutputStream.hpp
./main/cpp/activemq/command/ActiveMQBytesMessage.hpp 

Hi,  

code for create the text message  


 p queue, queue1 ;
 p   message;
 char Replay[300] // contains more then 252 char
 queue = session->getQueue("FOO.BAR") ;
 producer = session->createProducer(queue) ;
 consumer = session->createConsumer(queue) ;
 consumer->setMessageListener( smartify(this) ) ;
 message = session->createTextMessage(Replay);
 producer->send(message) ;  





I am working on openwire-cpp ( for ActiveMQ-4.0) code on SuSe(Linux
machine->i686-suse-linux, version 2.6.13-15.8-default),  

I am not able to ceate a message which have more than 252 char by using   

message = session->createTextMessage("Message,moreThan252Char");  API   

how I will achieve it, because I want to send the data more than 252 
char.
is there any other procesure to create a message? Pls assist me   

  Thanks in advance  



Regards
Arashad Ahamad


How to achive Persistence for CMS

2006-06-29 Thread Arshad Ahamad
Hi all, 

I am working cms(ActiveMQ-4.0) code on SuSe(Linux machine-> 
i686-suse-linux, version 2.6.13-15.8-default) , I am able to create the 
sender and receive code and these are working fine. But the thing is that I 
am not able the mentain the persistence in these code. I means whenever 
receiver is down and sender is sending the data and once the receiver will 
start this will not receive any data but I wants this so please help on this 
issue How I can get this data. 

Thanks in advance 



Regards
Arashad Ahamad


Linking error for compiling CMS code

2006-06-13 Thread Arshad Ahamad
Hi all, 

  I am compiling cmd code on SuSe(Linux machine-> i686-suse-linux, 
version 2.6.13-15.8-default) , I am able to create the object file of this 
code but when I make a executable file it gives the following error 

/stomp/StompTransport.cpp:147: undefined reference to 
`pthreadpthread_join
collect2: ld returned 1 exit status 


   Please help me


Thanks in advance


Regards
Arashad Ahamad