Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Urgent->where the table is stored by default of an cmp entity bean

 
sachin sisodia
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the JBoss forum...
Simon
 
Darryl A. J. Staflund
Ranch Hand
Posts: 310
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sundara Pandian Ramasamy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I guess the table which you tried might have been created and stored in Mater database of SQLServer..Try it out..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic