This works for me:
define a jboss-query for the EB with args query String and Object array for the 
parameters:
/**
 * @jboss.query dynamic="true" signature="java.util.Collection 
ejbSelectGeneric(java.lang.String query, java.lang.Object[] params)"
 */

create a method for the home interface which takes the same args as the defined query 
and calls the query method:
/**
 * @ejb.home-method
 */
public java.util.Collection ejbHomeDynamicQuery( String query, Object[] params ) 
throws javax.ejb.FinderException
{
        return ejbSelectGeneric( query, params );
}

This method you call from you app-code:
Collection c = home.dynamicQuery(query.toString(), new Object[] {});


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

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


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to