1 Reply Latest reply on Apr 12, 2002 10:40 PM by njust_wmh

    can't find table in ejbcreate,why?

    njust_wmh

      when i run a client (standalone application ) of a ejb,i get information like this::
      javax.transaction.TransactionRolledbackException: ejbCreate: Table not found: SAVINGSACCOUNT in statement [insert into savingsaccount values ( '123' , 'Duke' ,'Earl' , 0.00 )];

      but i'm sure the table savingsaccount has been created.

      can you tell me what's wrong ????

        • 1. Re: can't find table in ejbcreate,why?
          njust_wmh

          i have find the reason.

          i use the code like this to get dbconnetion
          private String dbName = "java:comp/env/jdbc/SavingsAccountDB";

          InitialContext ic = new InitialContext();
          DataSource ds = (DataSource) ic.lookup(dbName);

          but the dbName is not right. It should be "java:/InformixDB".