• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RMIC -IDL Exception

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to write a Java RMI-IIOP Server to access from C# Corba client.

I want to generate the IDL with rmic -idl command that contains an exception like :

//IDL file
module myMody
{
interface myInterface
{
exception MyException{};
};
};

But I don't know what to extends in my Java Remote Class to obtain that.

I've tried
public class MyException extends Exception
{
}

But the rmic -idl generated idl for the exception and for all java.lang.Exception

I've tried
public class MyException extends java.rmi.RemoteException
{
}

or

public class MyException extends org.omg.CORBA.UserException
{
}

But the rmic -idl did not generate IDL file for my exception


Does anyone know how I can create an UserException in Java to generate the corresponding IDL without all java.lang classes ?


Thanks
 
Enjoy the full beauty of the english language. Embedded in this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic