[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jacorb-developer
Subject:    [jacorb-developer] Trading Service
From:       Øystein_Arntsen <oysteiar () simula ! no>
Date:       2004-02-24 14:49:35
Message-ID: 200402241549.35563.oysteiar () simula ! no
[Download RAW message or body]

Hello,

I'm trying to figure out whether the JacORB Trading Service could be used in a 
research project I'm in, and have some problems with understanding 
everything.

I've been looking at the LoadTest in the org/jacorb/trading/test/ folder and 
have some questions:

Please correct me if I'm wrong, but as I understand it the type "Orchideen" is 
added to the ServiceTypeRepository with the properties "Art" and "Preis". And 
also an Interface Name: "IDL:Orchid:0.1"(is this an actual idl-file?). Then 
the value of each property is set and exported (can this value be anything?).

I had some problems with the ImportThread which queries the Trader. First I 
had problems with the query:
m_lookup[n].query(m_type, _constraint, _preference, _policies, _desired_props, 
20, _offers, _iter, _limits);
Because the _desired_props argument caused a nullpointerexception. I solved 
this by setting:
_desired_props.__default();
(Are not the SpecifiedProps all_dummy()-methods implemented?).

However, now I get a problem when the a thread checks for correct offers: 
_offers.value[_j].properties[0].value.extract_string();
This causes an ArrayIndexOutOfBoundsException. 
(Is not the OfferSeqHolder _offers initiated correctly in the ImportThread 
example?)

I understand that the trader haven't been changed much in recent years. Does 
this mean that it is very stable? Or has it just not been used very much? I'm 
having trouble finding example code using the Trading Service.

Any help would be appreciated!

Øystein

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic