Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RemoteException in bean interface

 
Shoaib Khanzada
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

methods define in bean interface can throw RemoteException or not?

Shoaib
 
P Chittaranjan
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I am not sure whether you are talking about business interface.
If your business interface is writen for remote client view(annotated with @Remote) , the methods of the business interface can throw RemoteException.

Thanks,
Chittaranjan
 
Sudhakar Reddy Kurakula
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

As far as I know , we should not throw RemoteException in bean class.

Cheers
Sudhakar Reddy
 
P Chittaranjan
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

It is not the bean class. It is the bean interface we are talking about.
If you extend java.rmi.Remote interface to the business interface , you can mention RemoteException in the throws clause of the business method.

Thanks,
Chittaranjan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic