Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Entity Beans in Jboss !  RSS feed

 
shahul hameed
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How the Container knows which table to look for the fields for CMP !
Where do you define it ?
How many descriptors for Entity Beans !
{only ejb-jar.xml + one for the container}
*********************************************************
How I get into this Trouble !
I did a Session Beans by looking at the Wrox Book ! It worked !
(Deployed on Jboss)
And then I did a Entity beans using Wrox !
Find that they have not bothered to give the xml descriptor (ejb-jar.xml)
Referred the Roman's Book ! They have a descriptor for BEA not for Jboss !
Went to Jboss site, they have a descriptor ! but not clear !
 
shahul hameed
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Help
 
Madhu Juneja
Ranch Hand
Posts: 176
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doesn't Jboss have a deployment tool ?
If it does not have then you can use the same fields of table name and fields from the XML descriptor of BEA. These fields are represented as standard tags in all app servers.
 
shahul hameed
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thanks Madhu !
I am hitting the Clue !
Meanwhile ! Can you give me a sample xml descriptor for entity/BEA (Hmmm ! for a multitable scenario, if possible in Entity Beans otherwise a simple Single Table Object)
 
Madhu Juneja
Ranch Hand
Posts: 176
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These are the xml files generated for container managed persistence in weblogic.
ejb-jar.xml :

weblogic-cmp-rdbms-jar.xml :

weblogic-ejb-jar.xml :

May be you need to click on the reply icon to read the xml tags as on this forum all tags with '<' character are not displayed properly.
HTH
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!