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

CMP question in Weblogic  RSS feed

 
James Zhang
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was trying to follow an CMP example in "Professional EJB" from Wrox, but obviously the codes provided in the book missed some important points. Here is the scenario:
I have two beans, OrderBean and AddressBean, and OrderBean has a one-to-one relationship with the AddressBean. Everything looks fine unitl I deployed them on my Weblogic 8.1 server when Weblogic generated a deployment file called weblogic-cmp-rdbms-jar.xml, which contains a tag <weblogic-rdbms-relation>. The tag contains <foreign-key-column> and <key-column>, and I am supposed to fill these two, but I don't know how, because my OrderBean only has a CMR field of type AddressLocal (the local component interface for AddressBean)and there is no corresponding field in AddressBean! I also tried to put the corresponding database table columns, and it didn't work either. Anyone has similar problem before?
Thanks for your time and help!
--Jian
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!