hello guys, i m new to the ejb and writting the cmp entity bean. i m using jboss and sql server 2000.I intiallized the standardjaws.xml as follow:
<type-mapping>MS SQLSERVER</type-mapping> <debug>false</debug> <default-entity> <create-table>true</create-table> <remove-table>false</remove-table> <tuned-updates>true</tuned-updates> <read-only>false</read-only> <time-out>300</time-out> <row-locking>false</row-locking> <read-ahead>false</read-ahead> </default-entity> <enterprise-beans> <entity> <ejb-name>Props</ejb-name> <remove-table>true</remove-table> </entity> </enterprise-beans> when i deploy the .jar file the jboss console gives the following message: file:/C:/jboss/jboss3/server/default/deploy/Props.jar 13:32:06,064 INFO [EjbModule] Creating 13:32:06,095 INFO [EjbModule] Deploying Props 13:32:07,564 INFO [JDBCInitCommand] Created table 'Props' successfully. 13:32:07,580 INFO [EjbModule] Created 13:32:07,595 INFO [EjbModule] Starting 13:32:07,627 INFO [EjbModule] Started 13:32:07,627 INFO [MainDeployer] Deployed package: file:/C:/jboss/jboss3/server /default/deploy/Props.jar Props.jar is successfully deployed and table created with the name of the "Props".bt the question is, where the table is created. i searched this table bt i didn't get this table in sql server. Does anyone here be able to provide any suggestion? thanx in advance cheers sachin
Hi there, Is it possible the table is being created in the default Hypersonic database (DefaultDS)? Take a check to make sure. Darryl
sachin sisodia
Greenhorn
Joined: Feb 09, 2003
Posts: 5
posted
0
hi daaryl thanx to reply me as u specify that deafult table is being created in deafult hypersonic database. (i serached that table bt i didn't get that in my PC )bt i want to make my own data base table which is sql server that why i explicitly mentioned it into the jaws.xml. 1.how to check that data is being stored into the databse or nt 2. Can we use access as a data base 3. where we have to mention the diectory name for the data base. suppose i want to use the table c:\Props.mdb table, then what i have to do, is there any other .XML file where we have to mention all these. I would be interested if u has a definitive answer. Thank you very much for your time! regrads sachin