I need to store huge data (which is a xml data) in a CLOB datatype which is running on JBoss server.Iam successful in writing the code but my code has a big limitation that it can store upto 32523 (approx) characters.But,my application will be receiving the xml's of upto 2 GB (Approximately). But,iam unable to find the alternate for this.
When iam using to create CLOB object directly,it is giving Class Cast exception,thats the reason, i have tried using the above code.
I have tried to create clob in the following way which is giving Class cast exception.
Hence i tried using WrappedConnection of JBoss
But still throwing class cast exception.
Did anyone had this kind of issue/problem of storing more than 2 GB data into CLOB datatype?Is there any another alternate for this?
Please let me know