aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Junc Characters stored in Oracle DB by Entity Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Junc Characters stored in Oracle DB by Entity Bean" Watch "Junc Characters stored in Oracle DB by Entity Bean" New topic
Author

Junc Characters stored in Oracle DB by Entity Bean

Nilesh Soni
Greenhorn

Joined: May 14, 2001
Posts: 21
To All,

I have created one CMP Bean and in that CMP bean, I have one method declaration as follows (which will be implemented by the container).

public abstract void setReturnName(String returnName);

I am calling this method from another method (which is declared and defined in the same CMP) like this.

public boolean changeData(ReturnTypeTO returnType)
{
setReturnName("Return Type");
return true;
}

Now the problem is that in the database, if i look at the value, there are some junc characters are stored (and that is also starting 3 characters only)
I have perfectly defined the field name and everything in DTD.

I am using Oracle 8.1.7.0.0
and we are using classes12.zip for database drivers.


Can somebody throw light in this case...

Thanx...
Brian Tinnel
Ranch Hand

Joined: Aug 25, 2003
Posts: 69
What kind of field are the junk characters in. If it is a CLOB, that could be a problem. I have recently been debugging a problem with my code working on Oracle 9 and it was because I was using a CLOB field. That's just a guess on my part. I really have no other idea.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Junc Characters stored in Oracle DB by Entity Bean
 
Similar Threads
EJB and Oracle LONG converting problem
Weblogic pool connection Vs JDBC Connection
Weblogic Pool connection Vs JDBC Connection.
EJB and Oracle LONG converting problem
ejb2.x finder method not working