• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Application exception in ejbSelect

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic