• 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
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

Relationship problem when upgrading to 8.1

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I have an application I have migrated from EJb 1.1/Weblogic 7 to EJB 2.0/Weblogic 8.1. I have two CMP EB's, Customer and Person. The Customer has a FK relationship (in the database) to Person (the Customer table has a person_id column), so the Person EJB must be committed first when creating a customer.
Under the previos installation, this worked fine. Now, sometimes it works, and sometimes not. When it does not, I am getting a FK constraint violation error telling me that (when inserting the Customer) that the Person does not exist.
I am not sure if this is a mistake on the ejb-jar DD or one of the WLS DD's. I can put up a snipit if it will help. Thought someone might have a suggestion of where to begin looking for my mistake.
Thanks for any help.
 
Ted Bell
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If it helps, all methods are declared with transaction required:

[ January 23, 2004: Message edited by: Art Vandelay ]
 
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
did build the relationship under ejbPostCreate method?
It would be easyer to help if u could post the error message and a fragment of the client code wich calls the create methods(problably under some java class or session facade).
regards.
 
I'd appreciate it if you pronounced my name correctly. Pinhead, with a silent "H". Petite ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic