• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

ejb database mapping

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In EJB, where is the mapping of database table and entity beans done? I am using Jboss, and from what I have read, the mapping should be somewhere in jbosscmp-jdbc.xml. But I dont have that file in my project.

Actually I have a project in which I have to make some enhancements, and I have deployed the code in my local machine. And surprisingly, without the required mapping file, it is able to do all the database related operations. Is there any other file or any other way in which we can mention it? OR maybe I am looking at the wrong place.
 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Patt Rick can you let me know which ejb version you are playing with ???

If you are using EJB3.0 then with the help of annotations you are defining your mapping of Entity beans with tables...

Cheers !!!
Sumit Malik
 
Patt Rikk
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Its 1.1 and the database is Oracle 9i
 
Sumit Malik
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Patt Rick do check all files in META-INF folder where you can provide you mapping file of entity beans(fields) with database..

I hope this link would be bit useful for you....

Cheers !!!
Sumit Malik
 
Patt Rikk
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have only 2 files in my META-INF folder.
ejb-jar.xml which defines all the ejbs used and jboss.xml which maps the ejb with the jndi name.
Nowhere do I find a mention of the database mapping with the Entity Beans.
 
Fire me boy! Cool, soothing, shameless self promotion:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic