aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Application exception in ejbSelect Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Application exception in ejbSelect" Watch "Application exception in ejbSelect" New topic
Author

Application exception in ejbSelect

gopi chillakuru
Greenhorn

Joined: Dec 17, 2004
Posts: 14
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>.
Malini Raja
Greenhorn

Joined: Mar 29, 2004
Posts: 6
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


----------------------------------<br />SCJP<br />SCWCD<br />IBM-141 XML& related technologies<br />SCBCD<br />----------------------------------
Thiru Thangavelu
Ranch Hand

Joined: Aug 29, 2001
Posts: 219
Hi Malini,
What were your references when you took the SCBCD exam? Just curious.


Thanks,<br />Thiru<br />[SCJP,SCWCD,SCBCD]
Malini Raja
Greenhorn

Joined: Mar 29, 2004
Posts: 6
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Application exception in ejbSelect