Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is updating data allowed using ejbPostCreate()

Sudeep das
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My name is Sudeep and I know you first by your Head First approach with EJB.
First of all Wish u a Very Happy NEW YEAR 2004.
I have got stuck with a very simple problem... pls help me out.
I am using Weblogic 7.0 with Oracle 9i. Trying to insert a row of data which has two values an "integer" and another "clob". There is an issue with Weblogic handling "Clob" using CMPs.
A data in clob can be easily inserted using BMP beans using PreaparedStatement.
As CMP's don't allow me to add data into database from ejbCreate() using SQL statements. I am trying to write the statements inside the ejbPostCreate().
Now my question is. As we already know that ejbPostCreate() runs under the same transaction as ejbCreate(). Will be it valid to enter data using SQL Statements ejbPostCreate().
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!