Re: Passing FloatSeqHolder through Notification Service

Chul Gwon <[email protected]> Wed, 13 Apr 2005 12:08:01 -0400 (EDT)
Newsgroups gmane.comp.corba.orbacus
Message-ID <[email protected]>
Digging a bit more, the problem is not that it can't keep up, but rather 
it is throwing an "org.omg.CORBA.BAD_INV_ORDER: Type mismatch" exception 
during the extract_Streamable step.  When I print out the TypeCode for the 
element in filterable_data, it returns "IDL:omg.org/CORBA/FloatSeq:1.0".  
Since I'm trying to cast this into a FloatSeqHolder, I'm not quite sure 
why this error is arising.

Thanks in advance for your help,

Chul

On Tue, 29 Mar 2005, Darren Middleman wrote:

> 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
> 
> 
_______________________________________________
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