Hello,

What I'm trying to do is :

1) Create my query in my "action class" (String query = "SELECT * from t_myTable")  // 
Ok

2) And then pass this query to the finder  //Cannot figure out how to do that...

I've tried this in my ejbe :

  | @ejb.finder
  |  *  signature = "Collection findDyna(java.lang.String param)"
  |  *  query= ""
  |  * @jboss.query
  |  *  signature = "Collection findDyna(java.lang.String param)"
  |  *  query = "?1" //what to put here ??
  |  *  dynamic="true"
  | 
I also have tried to implement a method in my ejbe, but cannot figure out how to put 
that all together :

  | /** 
  | * @jboss.dynamic-ql
  |  * /
  | public Collection findDyna(String param){
  |     StringBuffer jbossQl = new StringBuffer(param);
  | 
  |     return findDyna(jbossQl.toString());
  | }
  | 
Could you tell me the steps to follow ?

Thanks
Nath.

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

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


-------------------------------------------------------
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