aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes weblogic 8.1 , Oracle sequence problem. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "weblogic 8.1 , Oracle sequence problem." Watch "weblogic 8.1 , Oracle sequence problem." New topic
Author

weblogic 8.1 , Oracle sequence problem.

Sagar Kale
Ranch Hand

Joined: May 02, 2008
Posts: 188


Hi,

I am using Oracle sequqnce to generate primary key for CMP EJB 2.0 on weblogic 8.1.

My ejbCreate method is


hobbyId is primary key which I am not setting in ejbCreate method because it will be generated using Oracle Sequence.

I have added following in weblogic-cmp-rdbms-jar.xml



But when I try to create ejb, I get following exception.

How to resovle this error. Also, can we log sql statements sent by weblogic to database?
Sagar Kale
Ranch Hand

Joined: May 02, 2008
Posts: 188
it was silly mistake in deployment descriptor.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: weblogic 8.1 , Oracle sequence problem.
 
Similar Threads
automatic key generation for CMP entity bean(in WSAD/websphere)
Best way to generate PK in EJB
What is use of separate Primary Key Class in Entity Bean?
Mixing JDBC and CMP code -> leaked connections
in my weblogic-cmp-rdbms.xml the tag weblogic-relationship-role therisn't