473,385 Members | 2,044 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Connection contexts in SQLJ routines

Hi,

The Information Center (V8 FP4) states that "Each SQL statement must
explicitly indicate the Connection Context object, and that context must be
explicitly instantiated in the Java method" to avoid unexpected failures.

Can someone give exemples of unexpected failures ? Is it in link with the
DB2 Connection Concentrator only ?

Thanks for your help,

Jean-Marc
Nov 12 '05 #1
2 1253
If you don't get your own context, then threads end up sharing the
'default' one (I'm presuming you're running the default of threadsafe
java). You can get a thread stealing another threads result set cursor,
or closing it or...

Jean-Marc Blaise wrote:
Hi,

The Information Center (V8 FP4) states that "Each SQL statement must
explicitly indicate the Connection Context object, and that context must be
explicitly instantiated in the Java method" to avoid unexpected failures.

Can someone give exemples of unexpected failures ? Is it in link with the
DB2 Connection Concentrator only ?

Thanks for your help,

Jean-Marc

Nov 12 '05 #2
Hi Sean,

Thanks for your reply.

Jean-Marc

"Sean McKeough" <mc******@nospam.ibm.com> a écrit dans le message de
news:41********@news3.prserv.net...
If you don't get your own context, then threads end up sharing the
'default' one (I'm presuming you're running the default of threadsafe
java). You can get a thread stealing another threads result set cursor,
or closing it or...

Jean-Marc Blaise wrote:
Hi,

The Information Center (V8 FP4) states that "Each SQL statement must
explicitly indicate the Connection Context object, and that context must be explicitly instantiated in the Java method" to avoid unexpected failures.
Can someone give exemples of unexpected failures ? Is it in link with the DB2 Connection Concentrator only ?

Thanks for your help,

Jean-Marc

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Janick | last post by:
With DB2 7.2 we used to call methods from other SQLJ Stored Procedures, as it was not possible to call SPs via the SQL Call-statement from within SPs. So we always had a method like this: ...
0
by: Janick | last post by:
With DB2 7.2 we used to call methods from other SQLJ Stored Procedures, as it was not possible to call SPs via the SQL Call-statement from within SPs. So we always had a method like this: ...
10
by: Raquel | last post by:
UDB PE 8.1 on Win XP. ok, this function caused a lot of grief today. My stored procedures are java stored procedures, all FENCED and directly placed in \sqllib\function directory (not built into...
12
by: Rhino | last post by:
I am having an odd problem: the sqlj command on my system doesn't work. I am running DB2 (LUW) V8 (FP8) on WinXP. I haven't done an sqlj program since Version 6 of DB2 (LUW) so I checked the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.