Bill,

You can call static methods, but it is advised not to do so, especially with
server applications.

In my own testing when you mark a server class as "Requires Transaction" or
"Requires New Transaction", you need to instantiate the object and call the
class method normally, and not as a static method.  If you don't, the
component will NOT be able to enlist in a distributed transaction, even
though it appears that it is doing so.

I found there are some examples on the internet that are coded the wrong way
(use of static methods), and that gives false information.

Thanks,

Robert Hurlbut
http://weblogs.asp.net/rhurlbut

Bill Bassler writes:

I forgot to included the error message in my initial post.
It was: "MTS object not found".

1. The main questions I'm asking is ... can I use static methods from a
Serviced Component? It appears that I can (because it static implementation
functioned "properly" for a time but what are the potential issues
regarding things like proxies and MTS context?

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
Some .NET courses you may be interested in:

NEW! Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at http://discuss.develop.com

=================================== This list is hosted by DevelopMentor� http://www.develop.com Some .NET courses you may be interested in:

NEW! Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to