• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EJB 2.x Client view for EJB 3 bean

 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Guys,

I have an EJB 3 Stateless session bean instance and I have a client that is written to EJB 2.x Stateless session bean. Now as per the promise of EJB 3, this same client written for EJB 2.x should also be suitable for EJB 3 Stateless bean. So in such a case, how would I handle my RemoteException in my client (originally built for accessing EJB 2.x) which is targetting a EJB 3 Stateless bean because in my EJB 3 Remote Interface I do not have to explicitly say that I throw RemoteException?
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jothi,
I was under the impression that the container will add the remoteexception as needed (through byte code manipulation.) Are you saying it doesn't do that?
 
Joe San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The container certainly does the byte code enhancement, but that is during deployment. How can I handle RemoteException in my client when the methods in the interface that is marked @remote does not throws RemoteException. I mean how to add a catch block to handle RemoteException when my @Remote interface methods does not throw them during compilation time?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic