Hi ,

    I am developing a BMP in jonas .
    From this BMP i am inserting data into three tables.
    yesterday i came across some problems.

    ************
     (Sorry for long description of problem , please bare me)
    1) I created one BMP by using EJBWizard .
         When ejbclient calls this bean
          The error i am getting is ....
         "error in  EntityContextImpl.storeIfModified()
           can not commit transaction "

         i went trough the EJBServer.err.traceout
         the error is
         in prepared statement the index is not set 16
         (I have 16 coloums in my table )

         Here i came to know that there is no problem into the
         create method . the problem is in ejbStore()
         there the wizard generated the query in which
         i am having the where  caluse
         the last set parameter of the stament in ejbStore()
         was stmt.setInt(+1,var);
        then i made it stmt.setInt(17,Var)

        it works . it added the record into the database

        I Just want to know that for a creation of the bean
        What are the callback method a container should call. ?
        and in what sequence ?

    2) I have one more problem that my table is having 16 refrences
         that means one master is having 16 details table.
          ( I am using sybase 11.0.3.3 on linux)
         When i trying to insert data into the database
          it gives me error that there are too many refrences to the table.
          maximum allowed refrences are 16

           What exactly this error mean ?
            How can i overcome with this error ?

     3)  Can i have a BMP without mapping to any database. ?
           I dont want any database table to be mapped to this BMP.
           I want to use this bean  as an cacheing the most required data
           from different tables in forms of vectors .
           Can i have empty create method for BMP ?

Thanks in advance
Ritesh.







----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to