aspose file tools*
The moose likes JBoss/WildFly and the fly likes Urgent->where the table is stored by default of an cmp entity bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Urgent->where the table is stored by default of an cmp entity bean" Watch "Urgent->where the table is stored by default of an cmp entity bean" New topic
Author

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

sachin sisodia
Greenhorn

Joined: Feb 09, 2003
Posts: 5
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

Joined: May 10, 2000
Posts: 1913
    
    6
Moving to the JBoss forum...
Simon
Darryl A. J. Staflund
Ranch Hand

Joined: Oct 06, 2002
Posts: 303
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
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

Joined: Mar 11, 2003
Posts: 1
Hi,
I guess the table which you tried might have been created and stored in Mater database of SQLServer..Try it out..
 
wood burning stoves
 
subject: Urgent->where the table is stored by default of an cmp entity bean