help - OAF question!



hi


if you know a bit about OAF perhaps you could read on and help me with some 
difficulties I'm encountering ....


basically, I am coding with OAF for the first time, and  I am unable to activate 
my server .  I am using the online liboaf documentation as a guide, together 
with the test server provided in the OAF CVS, but I may be doing something way 
off base. I've briefly outlined the OAF calls I am using below.  Any help on 
this would be much appreciated.

Server (binary called feedback-server):
- following call to oaf_init(), and creation of instance of servant, the 
following call is made:
oaf_active_server_register("OAFIID:Feedback:afd9e479-24b6-4c24-8945-168da0cd01b0
", feedback);

Client (binary called feedback-client):
- following call to oaf_init(), I have tried to create an instance of the client 
object by:
1. 
feedback_client = oaf_activate("repo_ids.has('IDL:Feedback:1.0')", NULL, 0, 
NULL, &ev); (to activate by query)
or
2. 
feedback_client=oaf_activate_from_id("OAFIID:Feedback:afd9e479-24b6-4c24-8945-16
8da0cd01b0", 0, NULL, &ev) (to activate by IID)

In both cases it fails to create the client object.

my oafinfo file is as follows:
<oaf_info>

<oaf_server iid="OAFIID:Feedback:afd9e479-24b6-4c24-8945-168da0cd01b0" 
type="exe" location="feedback-server">
<oaf_attribute name="repo_ids" type="stringv">
	<item value="IDL:Feedback:1.0"/>
</oaf_attribute>
</oaf_attribute name="description" type="string" value="Feedback server"/>
</oaf_attribute name="name" type="string" value="Feedback server"/>
</oaf_server>

</oaf_info>


cheers
Mary 




~ I speak for myself, not for my employer ~
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Mary Dwyer
Desktop Applications & Middleware Grp
Sun Microsystems Ireland
Tel: +353-1-8199222 (xt 19222)
Fax: +353-1-8199078
email: mary dwyer ireland sun com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=








[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]