[omniORB] returning a long sequence - is there a limit ?

BaileyK at schneider.com BaileyK at schneider.com
Thu Jan 24 10:18:36 GMT 2008


CosNaming::NamingContext has a list() method that returns an iterator.


---
Kendall Bailey
Engineering & Research
Schneider National, Inc.



                                                                           
             Thomas Lockhart                                               
             <lockhart at fourpal                                             
             ms.org>                                                    To 
             Sent by:                  masterziv at gmail.com                 
             omniorb-list-boun                                          cc 
             ces at omniorb-suppo         omniorb-list at omniorb-support.com    
             rt.com                                                Subject 
                                       Re: [omniORB] returning a long      
                                       sequence - is there a limit ?       
             01/24/2008 09:43                                              
             AM                                                            
                                                                           
                                                                           
                                                                           
                                                                           




> 1) How can I further investigate and solve this problem ?

Since you want to support an unlimited amount of data, the more robust
solution would be to return the result with an iterator. That way both
client and server have some influence over the maximum transfer size
each can handle. The iterator interface can also allow the entire result
to be returned in the first call, if the result is smaller than the
maximum size.

I'm not recalling if there are examples of iterators in standard CORBA
interfaces or in the omniORB example code. If you can not find one then
ask on the list.

hth

                       - Tom

_______________________________________________
omniORB-list mailing list
omniORB-list at omniorb-support.com
http://www.omniorb-support.com/mailman/listinfo/omniorb-list





More information about the omniORB-list mailing list