aspose file tools*
The moose likes Oracle/OAS and the fly likes CMR problem with OC4J 9.0.3 - Help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "CMR problem with OC4J 9.0.3 - Help!" Watch "CMR problem with OC4J 9.0.3 - Help!" New topic
Author

CMR problem with OC4J 9.0.3 - Help!

Tony Walters
Ranch Hand

Joined: Feb 13, 2003
Posts: 54
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

Joined: Feb 13, 2003
Posts: 54
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

Joined: Jan 27, 2004
Posts: 202
You could've just deleted the post, FYI.
Milan Patel
Greenhorn

Joined: Jul 21, 2009
Posts: 1
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 ?


Milan Patel
SCJP (94%)
SCWCD (92%)
OCA (1Z0-007 :- 92.31%, 1Z0-147 :- 96.97%)
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

You're asking someone who's not been around since 2006.


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CMR problem with OC4J 9.0.3 - Help!