473,394 Members | 1,642 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,394 software developers and data experts.

COM+ -- AutoComplete

Hi ,

Need to get some basic info regarding AutoComplete Attribute in COM+ .

I am having a class with TransactionOption set to Required , now for
this class , can i mark all the methods with AutoComplete attribute ,
irrespective of the fact , whether i do implement Try .. Catch block or
not , as some of the methods are just meant for intermediary calculation
and are private , or i just need to mark one method that's public as
AutoComplete , as this one is supposed to be called from outside and it
internally calls all other methods .

Also , if i have class with TransactionOption set to NotSupported , then
does it makes sense to mark any methods as AutoComplete , as i think in
that case Transaction context doesn't even exists , but just wanted to
be sure .

any pointer regarding the same will be great .

thanks ,

Mrinal
Nov 21 '05 #1
2 4488
Mrinal,

The only methods you need to (and can, really) mark as AutoComplete are
the ones that implement your interface's contract which is registered in
COM+. This will cause your transaction to auto-commit or auto-fail
depending on whether or not an exception was thrown which was not handled in
your method.

If you place the attribute on other methods, then this could be a
problem, since you could end up committing the same transaction before you
really want to.

If you mark your class as NotSupported, then you might still want to
mark your methods with AutoComplete. If you are using JIT activation, then
you need to attach the AutoComplete attribute to your methods in order to
make sure your object is activated and deactivated on every call.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mrinal Kamboj" <mr***********@oracle.com> wrote in message
news:6u*************@news.oracle.com...
Hi ,

Need to get some basic info regarding AutoComplete Attribute in COM+ .

I am having a class with TransactionOption set to Required , now for this
class , can i mark all the methods with AutoComplete attribute ,
irrespective of the fact , whether i do implement Try .. Catch block or
not , as some of the methods are just meant for intermediary calculation
and are private , or i just need to mark one method that's public as
AutoComplete , as this one is supposed to be called from outside and it
internally calls all other methods .

Also , if i have class with TransactionOption set to NotSupported , then
does it makes sense to mark any methods as AutoComplete , as i think in
that case Transaction context doesn't even exists , but just wanted to be
sure .

any pointer regarding the same will be great .

thanks ,

Mrinal

Nov 21 '05 #2
Nicholas ,

Thanks for the help , it has cleared my doubt .

Mrinal

Nicholas Paldino [.NET/C# MVP] wrote:
Mrinal,

The only methods you need to (and can, really) mark as AutoComplete are
the ones that implement your interface's contract which is registered in
COM+. This will cause your transaction to auto-commit or auto-fail
depending on whether or not an exception was thrown which was not handled in
your method.

If you place the attribute on other methods, then this could be a
problem, since you could end up committing the same transaction before you
really want to.

If you mark your class as NotSupported, then you might still want to
mark your methods with AutoComplete. If you are using JIT activation, then
you need to attach the AutoComplete attribute to your methods in order to
make sure your object is activated and deactivated on every call.

Hope this helps.

Nov 21 '05 #3

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

Similar topics

4
by: bc | last post by:
Hi, Is it possible to detect if the IE autocomplete function in a current context such as a textbox is activated (ie. dropdown with previously entered info is visible)? Problem: I use a script...
40
by: Alex | last post by:
Hello, does anybody know how to turn off the autocomplete feature for a certain text field? I am aware of the "autocomplete" attribute, but I have seen other implementions achieving it...
26
by: Lasse Edsvik | last post by:
Hello I'm trying to build a simple COM+ app in vs.net using C# and i cant register it in component manager..... what more is needed than this: using System; using...
0
by: Thorsten Ottosen | last post by:
Hi, I'm using the AutoComplete attribute to control transactions. What happens if I call functions with the AutoComplete attribute from within other functions with the AutoComplete attribute?...
1
by: thubba2000 | last post by:
We have a web application developed using IBuySpy. In older versions, Autocomplete on all web forms works. In our latest version, it stopped working on all clients. I have gone through all the...
1
by: rbg.net | last post by:
I know that there is a autocomplete property for the HTML "INPUT type=text" control which if set to OFF, disables autocomplete of the input textbox (doesn't remember previously entered values) ...
6
by: ezyeric13 | last post by:
I have a series of ComboBox's Bound to a DataGridView and I turned the AutoComplete on for them so they list all the items in a certain collumn of the DataGridView. The problem is that when you...
0
by: =?ISO-8859-15?Q?Mathias_W=FChrmann?= | last post by:
Hi everbody, everytime I use autocomplete feature for textbox or combobox, my application crashes with a Win32-Error exactly at the point, where the autocomplete should kick in. I have no...
1
by: =?Utf-8?B?UmV5?= | last post by:
I have a textbox and linked that with the autocomplete extender I have created the webservice and the WebMethod and returns a ToArray to the textbox. Everything works when I type normal string...
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: 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: 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
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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.