Hi,

I m new to jboss and from documentation and from websites i tried to solve it but 
nothing is working may be there is problem in my implementation.

I m trying to Map my entity bean named 'First' to the table 'New_First' which resides 
on Oracle. Everything works fine for table xyz. I m providing different table name in 
ejb-jar.xml and jbosscmp-jdbc.xml as well.

This is the code of jbosscmp-jdbc.xml
..
java:/ERM
  <datasource-mapping>Oracle8</datasource-mapping>
 

 <enterprise-beans>
  
   <ejb-name>First</ejb-name>
   <table-name>New_First</table-name>
   <cmp-field>
    <field-name>id</field-name>
    <column-name>new_id</column-name>

   </cmp-field>
   <cmp-field>
    <field-name>master_name</field-name>
    <column-name>new_master_name</column-name>

   </cmp-field>
  
 </enterprise-beans>
..


And Here is the total code of ejb-jar.xml

<ejb-jar>
 <display-name>ejb1EJB</display-name>
 <enterprise-beans>
  
   <ejb-name>First</ejb-name>
   <table-name>New_First</table-name>
   firstBean.FirstHome
   firstBean.First
   <ejb-class>firstBean.FirstBean</ejb-class>
   <persistence-type>Container</persistence-type>
   <prim-key-class>firstBean.FirstKey</prim-key-class>
   False
   <cmp-field>
    <field-name>id</field-name>
    <column-name>new_id</column-name>
   </cmp-field>
   <cmp-field>
    <field-name>master_name</field-name>
    <column-name>new_master_name</column-name>
   </cmp-field>
  
  
   <ejb-name>FirstSess</ejb-name>
   firstBean.FirstSessHome
   firstBean.FirstSess
   <ejb-class>firstBean.FirstSessBean</ejb-class>
   <session-type>Stateless</session-type>
   <transaction-type>Container</transaction-type>
  
 </enterprise-beans>
</ejb-jar>


After completion of jboss server starting it looks for table named 'First'.

PLEASEEEEEEEEEE HELPPPPPP!!!!!!!!!!!!!!

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

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


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to