This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

"EJB" Monson-Haefel JBoss Example ex06_3

Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have just tried the example ex06_3 in Richard Monson-Haefel's EJB JBoss Workbook. I'm using jboss3.2.2-RC4. It failed to deploy until I created the CustomerHomeLocal and CustomerLocal interfaces.
Anybody have any idea why, for this simple CMP example, these two interfaces are now required in addition to the AddressHomeLocal and AddressLocal interfaces? The relationship is "Customer has an Address" not "Address has a Customer".
[ October 31, 2003: Message edited by: Barry Gaunt ]
Peter Otto
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, to get this prgram to work you need to add
1.) com.titan.customer.CustomerHomeLocal defined as follows....
public interface CustomerHomeLocal extends EJBLocalHome {
public CustomerLocal create(Integer id)
throws CreateException,EJBException;
public CustomerLocal findByPrimaryKey(Integer pk)
throws FinderException, EJBException;
2.)Also you need com.titan.customer.CustomerLocal defined as follows.....
public interface CustomerLocal extends EJBLocalObject {
public AddressLocal getHomeAddress();
public void setHomeAddress(AddressLocal address);
3.)Third and lastly, you need to edit the ejb-jar.xml file and ADD two line as follows...
You are right. I have no idea why we need to do this. It just doesn't make sense. Do you think this problem is only for JBoss? I looked at their docs off their web site. (Downloaded it for $10, definelty worth it) and I found no help there as of yet.
I child proofed my house but they still get in. Distract them with this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!