473,549 Members | 2,584 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

COM+ -- AutoComplete

Hi ,

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

I am having a class with TransactionOpti on 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 TransactionOpti on 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 4499
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.co m

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

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

I am having a class with TransactionOpti on 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 TransactionOpti on 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
5244
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 as a basis for binding <enter> in textbox to a button, BUT <enter> in the dropdown autocomplete generated by IE also triggers this event. The...
40
10853
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 without any such attribute and am wondering whether there is another way to do it .... like via CSS or a naming convention or .......
26
4432
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 System.EnterpriseServices;
0
1282
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? For example public class Foo
1
1754
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 groups and tried a bunch of things. Two main areas I keep seeing are, 1. Browser Settings not set correctly. 2. Ability to turn off Autocomplete...
1
5186
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) However there is no such corresponding property for the TEXTBOX ASP.NET Webcontrol in ASP.NET 1.1. I know that there is a AutoComplete Property in...
6
7314
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 use the Tab key to finish the Autocomplete it both selects that item and moves to the next Control in the Tab Order. I personally prefer to use...
0
1107
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 chance to trap this error, because it seems to occur in browseui.dll, which apparently is used by autocomplete. My system is Windows XP SP2 with IE6...
1
3531
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 characters but there is a glitch when I type an hyphen character the autocomplete list starts over or breaks in other words for eg if I want to search...
0
7723
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7817
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6051
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5375
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5092
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3504
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3487
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1949
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
771
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.