I am developing small EJB CMP 2.0 application. I have one table named "employeemaster" in my database & for dat table i ve created EJB named "EmpMasterBean" successfully. Now when i m deploying n running EJB, It creates a table named "EmpMasterBean" in my database, which is my bean's name. But I don't want hare to create new table, instead i want to insert data into already existing table "employeemaster" for which i ve created above bean.
Which AppServer you are using? In CMP there will be one more Deploymwnt Descriptor e.g If its weblogic then, name of Deployment Descriptor is weblogic-cmp-rdbms-jar.xml,which specifies Table name & mapping info of cmp fields & db columns etc.
Joined: Nov 07, 2005
Hi, Thanx for trying on this. I got my mistake. I m using JBOSS4.0.3 & I was missing <table-name> tag in my jbosscmp-jdbc.xml file. Now it working fine. Thanx again for trying.