EJB Finder method problem


EJB programming & troubleshooting: EJB Finder method problem

  1. EJB Finder method problem (2 messages)

    i have a problem in ejbFinder method
    i want to find data on the basis of partyname
    when the ejb-jar.xml file is created by the server then the field name is changed
    ejb-jar.xml field shows partyName
    where as in the data base its name is Party_Name so because of this i couldnt get data from the EJB-QL because it couldnt map the field with the database so
    how can i solve it
    and ejb-jar.xml file is created by the container automatically as i am using CMP Bean
    so tell me the solution
    thank you very much


    Threaded Messages (2)

  2. EJB Finder method problem[ Go to top ]

    Have you mapped your bean field to database column name correctly in your vendor specific rdbms deployment descriptor.
    I mean "weblogic-cmp-rdbms-jar.xml" as in the case of weblogic.
    jbosscmp-jdbc.xml in case of JBoss


  3. EJB Finder method problem[ Go to top ]

    the solution to this problem
    we have to define the EJBQL in the ejb-jar.xml file and in the EJBQL and in the where clause what we have to define is realted to cmp-field pattern
    and we have to define the orion-ejb-jar.xml file too where we have to define the finder-method too in which the query is related to the original parameter
    so this is the solution of finder method