fetch The Data From table through BMP
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Guru_Prasad
Posted On:   Wednesday, February 11, 2004 05:49 AM


Hi,
Iam guru prasad I have a problem in fetching the row from the table through the BMP, Whithout creating the row can't I retrieve the data from the table if so how can I retrieve the data without creating a row when iam executing the code it is raising the NullPointerException without create method. How can I fetch the data without creating a row.
i would prefer to have a code snippet.

Re: fetch The Data From table through BMP

Posted By:   Bhagyashree_Jayaram  
Posted On:   Wednesday, February 11, 2004 08:53 PM

Hi,


How are you making a call to the bean's finder method.These are the steps that you need to follow.



In the home interface you define your finder method(findBy) and the select statement should be implemented in the ejbFindBy method of your bean.



Once this is done you make a lookup for the home and using the home you call the findBy method which would retrive the data from the database table.



Hope this helps...
Bhagya
About | Sitemap | Contact