Is there an equivalent to Sybase's MessageHandler in JDBC?
I have a stored proc that sends messages back to the client
via TSQL "print" stmts. How can I capture these messages
in my Java app?
For C programmers, there's a callback function that you register
as the "message" handler. I don't see an equivalent interface
to implement with JDBC. Or perhaps the message comes back to the
caller as a (pseudo)row via some metadata bit?
Any help is greatly appreciated. Thanks,
Frank G.
+=========================================+
| Crossroads Technologies Inc. |
| www.CrossroadsTech dot com |
| fgreco @ REMOVE!cross!roads!tech!dot!com|
+=========================================+
Joe Weinstein - 10 Jan 2004 05:42 GMT
Hi. If the procedure is sending messages back to a jdbc driver
it is likely that you'll find them from the statements and/or
connections via SQLWarning()s. Try the getWarnings() method.
Joe Weinstein at BEA
> Is there an equivalent to Sybase's MessageHandler in JDBC?
>
[quoted text clipped - 15 lines]
> | fgreco @ REMOVE!cross!roads!tech!dot!com|
> +=========================================+