File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CMR problem with OC4J 9.0.3 - Help!

 
Tony Walters
Ranch Hand
Posts: 54
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hiya
I'm trying to deploy a CMR M:M using OC4J 9.0.3 and a mySql database. I have a Sessin Facade UserManager bean that controlls access to a User bean, a UserInfo bean, and a Role bean. The User bean and a UserInfo bean are using CMR in a 1:1 relationship. This worked fine. Then I added a Role bean in a M:N relationship with the User bean. That works okay apart from one of the methods where I add a Role to the User. Trying this produces the following exception:
java.lang.IllegalStateException: getEJBObject not allowed or not successful
I have tried all sorts, and its day 3 now, so I'm beginning to get extremely tired of chasing down this error. Has anyone got M:N (or 1:N) relationships working with OC4J (I am not using JDeveloper).
 
Tony Walters
Ranch Hand
Posts: 54
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Scrub that last mail. Finally figured it out. OC4J requires that certain methods be required to participate in a transaction. I added this and it worked fine.
Ta x
 
Billybob Marshall
Ranch Hand
Posts: 202
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could've just deleted the post, FYI.
 
Milan Patel
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am facing the same problem while integrating WFMCOpen in OC4J.
java.lang.IllegalStateException: getEJBObject not allowed or not successful [2]

Can you tell me which were the methods you added ?
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're asking someone who's not been around since 2006.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic