How to avoid class cast exception in this case.
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   naresh_kumar
Posted On:   Tuesday, June 5, 2001 09:05 PM

Hello , I think I got what you want to explain, My problem in CORBA,I hope you will help me out. In IDl I am having two interfaces one of the interface has a method whose return type is another interface name, FOR EXAMPLE Module { interface adc { |||||| ||||||------ SOME METHODS --------- } interface xyz { adc get(in String_token); } } I hope you understand. On the server side ,I am having 4 servants, out of which 1 extends xyzPOA (here the get Method is Defined) other three extend adcPOA (here in all these 3 .java files the methods of inte   More>>

Hello ,
I think I got what you want to explain,


My problem in CORBA,I hope you will help me out.

In IDl I am having two interfaces one of the interface has a method whose return type is
another interface name,
FOR EXAMPLE
Module
{
interface adc
{
||||||
||||||------ SOME METHODS
---------
}
interface xyz
{
adc get(in String_token);
}

}

I hope you understand.

On the server side ,I am having 4 servants, out of which
1 extends xyzPOA (here the get Method is Defined)
other three extend adcPOA (here in all these 3 .java files the methods of interface adc are defined.)

How can I register all these three servants.

When i am invoking the get method the get method calls one of the three classes which are servants,
when I am casting to adc ,I am getting class cast Exception.
I think I am missing something,
So Please tell me how can I register all the three SERVANTS.
Does narrow method can be used here.

Thanks & Regards

   <<Less
About | Sitemap | Contact