I got JBoss DynamicQL working with Xdoclet!!

Here are changes (from my original posts) I had to do....

1) Change the declaration of 'searchProducts()' in my ProductBean to 
'ejbHomeSearchProducts()'.
Note case sensitivity.  This causes a 'searchProducts()' method to be put in 
the ProductLocalHome interface
(er, the @ejb.home-interface tag does).

That got rid of the 'Warning: Each local home method must match a method...' 
error msg at deployment.

2) Change the declaration and use of 'findGeneral()' to 'ejbSelectGeneral()'.  
Xdoclet appears to be looking for specific
function name prefixes and handles them accordingly.  'ejbSelect...()' is one 
of them.

3) Removed the @ejb.finder signature="java.util.Collection ejbSelectGeneral...' 
tag in ProductBean.java.
But I had to leave the @jboss.query  signature="java.util.Collection 
ejbSelectGeneral...' tag in there.

For some reason, Xdoclet was putting two

  |       <query>
  |             <query-method>
  |             <method-name>ejbSelectGeneral</method-name>
  | 
nodes in the ejb-jar.xml file (but only one in the jbosscmp-jdbc.xml file.  
Just declaring the
'public abstract Collection ejbSelectGeneral(...)' method in the bean file was 
enough for Xdoclet to add a single <query...>
node to ejb-jar.xml.

Done!

Well, not quite.  I reeeeeally want to use the SQL LIKE operator with 
parameters.  Guess I need to upgrade to 3.2.6 or 4.0.....


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

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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to