Re: Passing FloatSeqHolder through Notification Service

Darren Middleman <[email protected]> Tue, 29 Mar 2005 20:32:49 -0330
Newsgroups gmane.comp.corba.orbacus
Organization IONA | Making Software Work Together TM
Message-ID <[email protected]>
Hi Chul,

On Wed, Mar 23, 2005 at 11:15:34AM -0500, Chul Gwon wrote:
> 
> Hi -
> 
> I am currently using JDK-1.5 with OB-4.2 and OBNotify-2.0.0 on a RH9
> platform.  Using a push-consumer/push-supplier model, I was trying to pass
> a FloatSeqHolder through the Notification Service, and in order to do
> this, I have been doing the following on the supplier side:
> 
>   org.omg.CosNotification.Property[] filterableData =
>       new org.omg.CosNotification.Property[5];
>   ...
> 
>   org.omg.CosNotification.Property property2 = 
>       new org.omg.CosNotification.Property("data", orb.create_any());
>   ...
> 
>   org.omg.CORBA.FloatSeqHolder fData = 
>       new org.omg.CORBA.FloatSeqHolder(new float[1000]);
> 
>   filterableData[2] = property2;
>   filterableData[2].value.insert_Streamable(fData);
> 
> 
> and on the consumer side, i've been doing attempting to do the following:
> 
>   org.omg.CORBA.FloatSeqHolder fData = 
>      (org.omg.CORBA.FloatSeqHolder)event.filterable_data[2].value.extract_Streamable();
> 
> I am trying to pass data at a 2Hz, but it seems like the 
> extract_Streamable method is not able to keep up at this rate (I tried to 
> also unmarshal filterable_data[2] directly to a Streamable object rather 
> than casting it to a FloatSeqHolder and it still could not keep up).  
> 
> My questions are whether this is the correct way to be passing a 
> FloatSeqHolder through the Notification Service (or whether there is 
> possibly a better way) and if so, whether the extract_Streamable() method 
> call has known issues regarding performance?
> 
> Thank you in advance for your help,
> 

I was wondering if you could provide a bit more detail about the problem
you are seeing.  What do you mean that the extract_Streamable() method
can't keep up?  Is the data lagging behind or are you not getting the 
output you are expecting?

Regards,
Darren

-- 
Darren Middleman, Software Engineer
Team Orbacus - Your CORBA Source
Email: mailto:[email protected]
WWW: http://www.orbacus.com/
_______________________________________________
OB-Users Mailing List - [email protected]
http://mail.ooc.nf.ca/mailman/listinfo/ob-users
Visit our support FAQ before you send a message.
http://www.orbacus.com/faq/support.html