Passing FloatSeqHolder through Notification Service

Chul Gwon <[email protected]>
Newsgroups gmane.comp.corba.orbacus
Message-ID <[email protected]>
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,

Chul
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.