I have a Web Application deployed on WAS 6.1.it uses Hibernate for Persistence.
When I am using Struct Descriptor and creating objects in Java they are being shown as ???.
I was able to fix this issue by adding orai18.jar in TomCat but in WAS I am not able to fix it.
Below is my code.
Connection conn1= session.connection(); //This is the Proxy Connection from Hibernate
Connection conn = BorrowedConnectionProxy.getWrappedConnection(conn1); Extracting from the Proxy connection
Connection nativeConnection = (Connection)WSJdbcUtil.getNativeConnection((WSJdbcConnection)conn);//getting the Native connection.In this case it comes as LogicalConnection
STRUCT rowStruct = new STRUCTcount;
List<STRUCT> allRows= new ArrayList<STRUCT>();
dataDTO = (EsnDataDTO)datalist.get(i);
//I even tried this row[i]=new CHAR(dataDTO.getEngineSerialNumber(), CharacterSet.make(CharacterSet.WE8ISO8859P9_CHARSET));
rowStruct[i] = new STRUCT(structDesc,nativeConnection,row[i]);
/* Step 6 */
allRows.add(rowStruct[i]); //At this point when I inspect rowStruct variable I can see data as ??? instead of values.
Can you please provide any pointers for the same.orai18 jar is not working..
WAS6.1 and Jdk 1.5 is the runtime environment