AL> InitialContext ic=new InitialContext();
AL> FooHome fh=(FooHome)ic.lookup("fooHome");
AL> QueryHome qh=(QueryHome)fh;
AL> Sring ejbql="SELECT OBJECT(e)FROM EmployeeBean e WHERE e.name='rob'"
AL> Query query=qh.createQuery();
AL> query.setMaxElements(10)
AL> Collection results=query.find(ejbql);

Wow... sorry, it's EJB-QL. I was sleeping ;)

-- 
Best regards,
 Alex Loubyansky




-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to