I am using JBoss for an enterprise application development.I am accesing the EJB 
called "QuestionBean" from a Servlet.
I have mapped QuestionBean to PostgreSQL.My application gets deployed Successfuly.But 
when i execute the application it searches for a table called "questionbean" in 
Postgre database.
As I have turned off the creation of the table by JBoss it gives me an exception.
My jbosscmp-jdbc.xml contains following:

<jbosscmp-jdbc>
   
   
   <enterprise-beans>
      
         <ejb-name>QuestionBean</ejb-name>
              java:/PostgresDS
              <datasource-mapping>PostgreSQL</datasource-mapping>
              <create-table>false</create-table>
               <table-name>newquestion</table-name>
          <cmp-field>
            <field-name>questionid</field-name>
            <column-name>question_id</column-name>
             ......... so on..

I don't want jboss to create a table when i execute the application but rather 
whatever data i enter through EJb should go into a table "newquestion" which is 
already present in the database.
Do i need to make any changes in this file or in any other file?
Do i need to make any config settings in web.xml or jboss-web.xml for datasource?



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822482#3822482

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822482


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to