473,385 Members | 1,772 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.

threadsafe ASP, retrieving Identities, DB2 on the iSeries -- OI My Head!

Hi. I have been posting like a looney on an issue I am working on. I will
reiterate the background since you all do not want to remember my issues!

I have an ASP app (biggish). We are creating the first of many JSP apps.
Until such time as we re-engineer our ASP apps for our new JSP / Java /
Websphere environment, we need a session bridge.

The services are always initiated from within ASP where they are
authenticated and authorized. The fiddle in the ASP app and make a request
of the JSP app. Here is the ASP side of the "bridge" when the JSP services
is requested:

- Store all session info in a database.
- Encrypt (if necessary, kinda anal) some unique id which identifies the
client and store as a domain session cookie.
- Redirect to the JSP service
- Read (decrypt, if necessary) cookie and retrieve session info from db.

My issue is what to use as the unique id. What I *really* want is the
identity from my DB2 table upon insert. So off I went to aspfaq.com. I see
this article:

http://www.aspfaq.com/show.asp?id=2174

Let's assume for the moment that I can get the identity column in DB2 to
work and can retrieve a value after insert. The docs say that the function
which is used is "non-deterministic function that returns the most recently
assigned value for an identity column." And goes on to explain that
basically it is similar to SQL Servers @@IDENTITY. Which cannot be
guaranteed to be the last insert.

The project architect knows that a Java method can be made threadsafe by the
simple inclusion of the "sync" keyword in the method declaration. He thinks
there has to be equivalent in ASP. I do not think so without implementing
com objects and using COM+, which I am not inclined to do.

Am I correct that a page or sub or something cannot be indicated as
threadsafe in native ASP?

(Please note that the architect in question explained to me that
"threadsafe" in the Java method example used above means that until the
first user is done with the method then second user will wait and use it
next. If it means more or something else, then I confess to being utterly
confused. I guess I am anyway.)

Thanks

S


Jul 19 '05 #1
0 1330

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

Similar topics

6
by: Thad Rizzi | last post by:
My webserver is an iSeries and I want to run some PHP scripts on it using SQL to access data on the iSeries. Does anyone have any exapmles or resources on the most effective way to do this? I...
4
by: erkki | last post by:
Hi, I have to move iSeries library to new DB2 database. Is there any easier way to do this moving operation than exporting all tables in iSeries into text files and then import them into DB2...
1
by: Yanik Reid | last post by:
When I run the following vb.net code, I'm not able to acces the my database AMFLIB. I use to be able to access AMFLIB with the old ODBC driver from IBM iSeries Access but now I want to use the...
17
by: Sulu's Beard | last post by:
Hey gang, I'm evaluating the CA ERWin product for an upcoming data warehousing project. I'm most excited about the reverse engineering aspect of this system. I've sucessfully tested it on a...
3
by: Laurence | last post by:
Hi there, Does somebody know the efficent way to connect DB2/400? Through iSeries Access ODBC/OLEDB driver or DB2 Connect? Which will more fast and efficent? In addition, does DB2 Connect use...
3
by: Diffident | last post by:
Hello All, Following is a static method. Can you please tell me if this is threadsafe...why? If it is not threadsafe...why? Thank you. public static string...
2
by: chmmr | last post by:
Hello, I would like to ask if there are any differences between DB2 in these versions (e.g. support of triggers, Java stored procedures and such). Also, does anyone know from which DB2 AS/400...
1
by: Chevylover54 | last post by:
We have been using ODBC connections that are in the registry of the computer. However these connections aren't in by default so when a new user uses the Access program or when a current user goes to...
6
by: Al G | last post by:
Can someone tell me what I need to get connected to our AS400? I am trying to write an app in VS2005(Data source, Gridview) that requires data from files on our AS400. I've downloaded DB2, and...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.