Hello Folks,

I'm trying to implement a simple query method in a small EJB component of the 
"Petstore" app.

#1 I've got an 'public abstract int ejbHomeOrderCount()' in my OrderEJB.java

#2 I've got an 'int orderCount()' in my OrderLocalHome.java

#3 I've stuck the following into my ejb-jar.xml:
...
<abstract-schema-name>Order</abstract-schema-name>
... <cmp-field>s ...
< query> (without the space here it doesn't show up on the forum :) haha)
  <query-method>
    <method-name>ejbHomeOrderCount</method-name>
    <method-params></method-params>
  </query-method>
  <ejb-ql>SELECT COUNT(o) FROM Order o</ejb-ql>
< /query>

BUT!... 
JBoss (that rat! ;) ) keeps complaining in an onslaught of errors about:
org.jboss.deployment.DeploymentException: Query method not found: 
ejbHomeOrderCount()

ARGH!!! It's there!

Any help/suggestions are much appreciated. Thanks,
Mike


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

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


-------------------------------------------------------
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to