• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

RMIC -IDL Exception  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • 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


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 ?

Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!