aspose file tools*
The moose likes Other Java Products and Servers and the fly likes Configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Configuration" Watch "Configuration" New topic
Author

Configuration

Devaki Nihar
Greenhorn

Joined: Apr 30, 2005
Posts: 20
I am using orion1.5 .
Can anyone please tell me what configuration i have to do for the finder methods in ejb-jar.xml
and orion-ejb-jar.xml
I recognized 2 ways while studying -
1)
in the <entity> tag of ejb-jar.xml add
<query>
<query-method>
<method-name>findByEmployeeName</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql>
SELECT OBJECT(k) FROM Employee AS k WHERE k.ename=?1
</ejb-ql>
</query>
and no mapping in orion-ejb-jar.xml
2)
in <entity> tag of ejb-jar.xml add
<query>
<query-method>
<method-name>findByEmployeeName</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql></ejb-ql>
</query>

and in <entity-deployments> tag of orion-ejb-jar.xml

<finder-method query="$ename = $1">
<method>
<ejb-name>Employee</ejb-name>
<method-name>findByEmployeeName</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</method>
</finder-method>

which is the correct one?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Configuration
 
Similar Threads
JBOSS CMP finder methods
EJB QL errors using ejbc
finder method
EJB-QL help
WL QL and EJB QL