hi there been trying to solve this for ages can u help its corba using POA idl and all that stuff plz send me the solutions too.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sohan_domingo
Posted On:   Tuesday, May 18, 2004 02:50 PM

question1.Write client and server for the following IDL. module TelecomEx { enum WarningType { w200, w100, w50, w10 } ; struct Details { string name ; string address ; string telNo ; }; exception InsufficientFundsException { long requestedAmount ; long balance ; }; interface DepositAccount { readonly attribute long balance ; Details getDetails(out long balance) ; void deposit(in long amount) ; void withdraw(in long amount) raises (InsufficientFundsException) ; void applyInterest(in float rate) ; };    More>>





question1.Write client and server for the following IDL.



module TelecomEx {


enum WarningType { w200, w100, w50, w10 } ;


struct Details {
string name ;
string address ;
string telNo ;
};


exception InsufficientFundsException {
long requestedAmount ;
long balance ;
};


interface DepositAccount {

readonly attribute long balance ;

Details getDetails(out long balance) ;

void deposit(in long amount) ;

void withdraw(in long amount) raises (InsufficientFundsException) ;

void applyInterest(in float rate) ;
};




interface CallAccount {

readonly attribute string owner ;

WarningType debit(in long amount) raises (InsufficientFundsException) ;

void credit(in long amount) ;
};



interface Bank {

DepositAccount createDepositAccount(in Details d) ;

CallAccount createCallAccount(in string name) ;

void transferXY(in DepositAccount a1,
in CallAccount a2, in long amount)
raises (InsufficientFundsException) ;
};
};








Question2.


Add to the above so that in the event of the account balance dropping below
10dollars, a message is sent to a callback object on the client side.



interface CallBackClient {
void notify(in WarningType warning) ;
} ;


interface Account {
void register( in CallBackClient cbc) ;
} ;


It is necessary to for the client to register this CallBackClient object
with the Server. Start a number of clients at the same time.
Notification should be sent to each client.


   <<Less

Re: hi there been trying to solve this for ages

Posted By:   Christopher_Koenigsberg  
Posted On:   Tuesday, May 18, 2004 02:53 PM

But what is your specific question? What have you tried already? Post your code, and the error messages you have gotten.

About | Sitemap | Contact