Probelm Containing to Sybase Database frrom J2EE Web Application

This is a discussion on Probelm Containing to Sybase Database frrom J2EE Web Application within the JDBC JAVA forums in Framework and Interface Programming category; Hi, I get the following error when I connect to the Sybase database from my web-app. I put Set chained off in the procedure and nothing happenend. There seems to be a probelm in the Java Side. Exception : ------------ com.sybase.jdbc2.jdbc.SybSQLException: Stored procedure 'p_inter_status_dz' may be run only in unchained transaction mode. The 'SET CHAINED OFF' command will cause the current session to use unchained transaction mode. Note: My Stored Procedure call is surrounded with a try/catch/finally, always closing the connection in the finally. Regards, Hemanth http://www.javaprogrammingworld.com -- Message posted via JavaKB.com http://www.javakb.com/Uwe/Forums.asp...bases/200601/1...

Go Back   Application Development Forum > Framework and Interface Programming > JDBC JAVA

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 01-16-2006, 04:41 AM
hemanthjava via JavaKB.com
Guest
 
Default Probelm Containing to Sybase Database frrom J2EE Web Application

Hi,
I get the following error when I connect to the Sybase database from my
web-app. I put Set chained off in the procedure and nothing happenend. There
seems to be a probelm in the Java Side.

Exception :
------------

com.sybase.jdbc2.jdbc.SybSQLException: Stored procedure 'p_inter_status_dz'
may be run only in unchained transaction mode. The 'SET CHAINED OFF' command
will cause the current session to use unchained transaction mode.

Note: My Stored Procedure call is surrounded with a try/catch/finally, always
closing the connection in the finally.

Regards,
Hemanth
http://www.javaprogrammingworld.com

--
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.asp...bases/200601/1
Reply With Quote
  #2  
Old 01-16-2006, 10:57 AM
joeNOSPAM@BEA.com
Guest
 
Default Re: Probelm Containing to Sybase Database frrom J2EE Web Application

Show the code. You probably set autoCommit(false) to do a transaction.
That
turns chained mode back on. Sybase retains the odd behavior of only
allowing
procedures to run (by default) in the chained/unchained mode during
which they
were created. The real solution is to use Sybase's sp_procxmode() to
tell the
DBMS to allow your procedure(s) to run in anymode.
HTH,
Joe Weinstein at BEA Systems

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 06:51 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.