• 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
  • Frits Walraven
  • fred rosenberger
  • salvin francis

Business interface should not throw java.rmi.RemoteException

Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Environment: Websphere 7 + RAD 7.5

I have the following signature in Remote interface.

List<TaskDetail> findTaskByUser(Integer userId) throws Exception, RemoteException;

But RAD 7.5 gives the compilation error:JSR 220: EJB 3.0 Simplified API, 3.3: Methods of a business interface should not throw java.rmi.RemoteException.

So I chnaged to:
List<TaskDetail> findTaskByUser(Integer userId) throws Exception;

When I run the application Websphere throws Exception:
com.ibm.ejs.container.EJBConfigurationException: Method findTaskByUser of interface todo.facade.rmi.TaskFacadeBrokerRemote must throw java.rmi.RemoteException

Can someone tell why this conflict and how do fix this ?

That is a really big piece of pie for such a tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic