This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
hello i'm using oracle database 9iAs and oc4j application server. in my application, i need to insert a blob in the database. the ejb entities is a cmp. i implement the blob interface but when i use setBlob(Blob b) i have no error but the blob in the database is null. why?
toutophone toutophone, Thanks for joining JavaRanch, but could you take a quick look at the naming policy and edit your profile accordingly. Now about your question... First you will want to check to make sure your Application Server supports Blobs in CMP. Then you will need to read up on how this mapping is implemented (for example WebLogic maps Blobs to byte arrays). Basically, this is going to be a vendor specific extension. Since you are using Oracle AS, I am going to move this post to the Oracle/OAS Forum for further discussion.