Are you talking about the initial size value?  If so I submitted a patch
yesterday that fixed the ByteArrayOutputStream's code that expands the
buffer, so if you grab the latest code from SVN you shouldn't need to
change the initial size value as the output stream should grow correctly
now.  

If you can try that and let me know if it still has issues that would be
helpful.  

-----------------------------------------
Timothy A. Bish
Sensis Corporation
5717 Enterprise Parkway
East Syracuse, NY 13057
Phone: (315) 634-3027
[EMAIL PROTECTED]
----------------------------------------- 



> -----Original Message-----
> From: Arshad Ahamad [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 26, 2006 8:23 AM
> To: [EMAIL PROTECTED]; activemq-dev@geronimo.apache.org
> Subject: Re: Problem in openwire-cpp API for messages
> 
> 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<IQueue>             queue, queue1 ;
> >  p<ITextMessage>       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

Reply via email to