Solved

500pts: Keeping an Oracle connection open in web services?

Posted on 2006-10-24
1
185 Views
Last Modified: 2010-04-16
Hi there,

I wonder if anyone can help?

I have built some web services, and i have been requested to keep a connection open, i always though that Opening a connection and closing it as soon as possible is a better way... anyway...

Because web services are technically web pages, i assume they a stateless ... so what would be the point of keeping a connection open...

and more to the point ... how would i do it?

I hope somebody can help

Thanks in advance

Ian
0
Comment
Question by:ianinspain
1 Comment
 
LVL 14

Accepted Solution

by:
existenz2 earned 500 total points
ID: 17794559
Webservices should be stateless built. How ever you can parts of them statefull by using static properties/classes. Making the SqlConnection static (public static OracleConnection connection = new OracleConnection(); f.e.) will solve these problems and every sql statement will use the same connection.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
User Authentication using Digital Certificate 2 46
Keyboard 2 33
SqlDataBase 7 48
Need to start a web service from Visual Studio 2015 Pro 2 24
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question