This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

weblogic 8.1 , Oracle sequence problem.

 
Sagar Kale
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it was silly mistake in deployment descriptor.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic