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

Application exception in ejbSelect

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We can throw application exception from ejbSelect<Method>, I don't know how we can do this, as container implements this method based on ejb-ql in the deployment descriptor and the declaration in the bean class. Can we throw application exception in ejb-ql? Can any one know how we can throw application exception from ejbSelect<Method>.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The ejbSelect methods can be called
1. by the container/find methods /home business methods
in the pooled state or
2.by business methods in the ready state.

All application exceptions are for the benefit of the client
that called the find/home business/business methods from the
Home or component interfaces. The application exception (generally
business logic exceptions)thrown by the select method eg.-FinderException is sent by the container as is to the client so that it can be handled.
The container implements the abstract select methods in the final implementaion of the(abstract) bean class (along with the find methods) using the ejbql queries in the DD at the time of deployment.How the container implements the bean does not affect the kind of exception thrown,
perhaps the client supplied parameters used in the select method.

Malini
 
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Malini,
What were your references when you took the SCBCD exam? Just curious.
 
Malini Raja
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mainly HFEJB,EJB2.0 Specs,Mikalai Zaikin's notes,
Enterprise Javabeans by Richard Monson-haefel,
and last but not least Javaranch.You can find
more here.

http://www.valoxo.ch/jr/SCBCD_Links.html
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic