• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

Valentin Crettaz's cheat sheets

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Valentin,

I used your cheat sheets and found them very useful
Just a little curiosity (more than a question since I already passed the exam last week ) :
In the http://www.valoxo.ch/jr/BeanProviderResponsibilities.pdf file , basically your ejbcreate() , activate().. etc methods from the SessionBean or EntityBean interfaces , declare a RemoteException in their throws clause.
If I remember right , you cannot ever throw a RemoteException from within your Bean code.
Is this correct or I�m missing something ?
 
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Victor,

I'm glad you found my cheat sheets useful. As for the RemoteException thing, only the following methods MUST NOT declare it:
- ejbCreate, ejbPostCreate, ejbHome, ejbSelect and the business methods of entity beans
- ejbCreate, and business methods of session beans

An if you look at the EntityBean and SessionBean API, you'll see that all methods have RemoteException in their throws clause even though their use is deprecated. I will probably remove them on the cheat sheets soon. Thanks for the feedback.

Hope this helps
 
Victor Barcan
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Valentin for enlightened me.

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can we have ejbActivate & ejbPassivate declared to be throw RemoteException.
 
You guys haven't done this much, have ya? I suggest you study this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic