Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / January 2004

Tip: Looking for answers? Try searching our database.

Message Handler in JDBC?

Thread view: 
Frank D. Greco - 10 Jan 2004 03:20 GMT
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|
> +=========================================+


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.