Please post the entire exception stacktrace and the relevant code.
Bob Frapples wrote:
The object I am getting back from the JNDI call is a org.jboss.resource.adapter.jdbc.jdk5.WrappedconnectionJDK5 object.
I'm not completely sure what the issue is, but if you trying to get the real connection to the DB, then you'll first have to call getUnderlyingConnection() on that object, something like this http://community.jboss.org/message/225667#225667
By the way, the type-mapping come into picture only for EJB2.x Container Managed Persistence.