[jboss-user] [EJB 3.0] - Retrieving data from database

alexrozario do-not-reply at jboss.com
Sat Jun 23 07:30:43 EDT 2007


Hi all,

I have created an entity bean class as Stores.java and Stateless Session bean as SearchSession.java.

And i am using Search.xhtml(facelet) file to retrieve data from table Stores in my local database.

I am using Seam 1.2.1 GA version to configure them

and i am using a query as 
List details =em.createQuery("select s from Stores s").getResultList(); in my Session bean. 

and i am using datatable in my .xhtml file to view the data. 
but it doesn't shows any result. my table has more than 5 records. whats wrong in my coding. how to overcome this..

please help me..

thanks in advance..

i am waiting for your valueable help

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057116#4057116

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057116



More information about the jboss-user mailing list