www.StudyJava.org

Pure Java

It is currently Thu Sep 09, 2010 12:05 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: RMIC -IDL Exception
PostPosted: Thu May 17, 2007 7:05 am 
Offline

Joined: Mon Apr 23, 2007 11:08 am
Posts: 29
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


 
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Google
 




Powered by phpBB © 2002, 2006 phpBB Group
[ Time : 0.059s | 12 Queries | GZIP : Off ]