How to work with single module and two interfaces in it.
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   naresh_kumar
Posted On:   Tuesday, May 29, 2001 07:15 AM

I am having two interfaces in a module like module{ interface x{ String getFullPath }; interface y{ x add(in String asd); }; }; when i am using this way and working , Form my client I am passing a string which is file ,and servant takes this and checks whether the file exists,if exists it goes to another class for getting fullpath and passes a file. After gettting to the Servant the return object should be "x", So I am typecasting ,but I am getting class cast exception. So if any one can please send me the code of having 1 module and two interfaces please do mail me. Thank You.    More>>

I am having two interfaces in a module
like
module{
interface x{
String getFullPath
};
interface y{
x add(in String asd);
};
};

when i am using this way and working ,
Form my client I am passing a string which is file ,and servant takes this and checks whether the file exists,if exists it goes to another class for getting fullpath and passes a file.

After gettting to the Servant the return object should be "x", So I am typecasting ,but I am getting class cast exception.
So if any one can please send me the code of having 1 module and two interfaces please do mail me.

Thank You.

   <<Less
About | Sitemap | Contact