This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes RMIC -IDL Exception  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMIC -IDL Exception  " Watch "RMIC -IDL Exception  " New topic
Author

RMIC -IDL Exception

m lefebvre
Greenhorn

Joined: May 14, 2007
Posts: 1
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMIC -IDL Exception
 
Similar Threads
ant rmic task, and running out of stack space
Generating code from IDL for EJB Access
Exercise 5-4
throw in finally clause
Strut2 exception handling