Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional Java Development with the Spring Framework
This is the forum to discuss the Wrox book Professional Java Development with the Spring Framework by Rod Johnson, Juergen Hoeller, Alef Arendsen, Thomas Risberg, Colin Sampaleanu; ISBN: 9780764574832
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Java Development with the Spring Framework section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old August 11th, 2005, 02:49 PM
Registered User
 
Join Date: Aug 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default User-defined type as input for store procedures

Is it possible to call stored procedures that take Oracle user-defined types (STRUCTS and ARRAYS) as input parameters in Spring (as stated on p.210-211, "Passing in a Complex Type as a Parameter")? The connection wrappers returned by the data sources I have tried cause class cast exception in:

oracle.sql.StructDescriptor.createDescriptor()

This seems to be a problem even when you aren't using the Spring framework. If, using JDBC, I get the connection directly from the DriverManager (java.sql.DriverManager.getConnection()), I can call a store procedure that takes UDTs as input. If I take the same code and change it to get the connection from, say, a WebLogic connection pool I get a similar classcast exception with its source in StructDescriptor.

It looks like it is possible to point a Spring app at an unpooled connection. That might solve the problem but, as the authors point out, that is not really an option for a production environment.

David B


Similar Threads
Thread Thread Starter Forum Replies Last Post
ADODB.Connection user-defined type not defined Wall st Guru Excel VBA 2 March 26th, 2014 03:44 PM
Setting variable to user defined type mantle51 SQL Server 2000 3 August 10th, 2007 03:52 AM
User-defined type not defined (Icecream.mdb) dloren01 BOOK: Beginning Access VBA 0 June 22nd, 2005 10:36 PM
Using a user defined type and the Split Function nikotromus Access VBA 2 August 20th, 2004 12:02 PM
Table and User Defined Type with same Name djuricd SQL Server 2000 3 April 20th, 2004 12:33 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.