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

transactional file copy

All,

I have a byte[] array that I save as a file to disk, is there anyway of
saving the file as a transaction. For example I save the file to disk and
virus scan it, if no virus is found I commit the transaction, if a virus is
found I abort the transaction and the file is never written. Is this
possible to do with COM+ if not can someone suggest an alternative method.

Thanks
Msuk
Nov 16 '05 #1
2 2788
One thing to note is that COM+ transactions require that the participating
systems also be transaction aware. So in your case you would need a FS and
an AV software that was transaction enabled. IMHO COM+ will not work in this
situation, you would be better off writing your own transaction code.

--
Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
"msuk" <ms**@discussions.microsoft.com> wrote in message
news:B7**********************************@microsof t.com...
All,

I have a byte[] array that I save as a file to disk, is there anyway of
saving the file as a transaction. For example I save the file to disk and
virus scan it, if no virus is found I commit the transaction, if a virus is found I abort the transaction and the file is never written. Is this
possible to do with COM+ if not can someone suggest an alternative method.

Thanks
Msuk

Nov 16 '05 #2
It is possible to write your own compensating resource manager that will
work with COM+ transactions, but it is a pain, and I wouldn't recommend it.

Not that this is any comfort, but Longhorn will offer a transactional
filesystem. There was a great demo of NTFS transactions during Tech Ed (and
I'm not talking about Win FS either).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Sijin Joseph" <si*********@hotmail.com> wrote in message
news:eG**************@tk2msftngp13.phx.gbl...
One thing to note is that COM+ transactions require that the participating
systems also be transaction aware. So in your case you would need a FS and
an AV software that was transaction enabled. IMHO COM+ will not work in
this
situation, you would be better off writing your own transaction code.

--
Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
"msuk" <ms**@discussions.microsoft.com> wrote in message
news:B7**********************************@microsof t.com...
All,

I have a byte[] array that I save as a file to disk, is there anyway of
saving the file as a transaction. For example I save the file to disk
and
virus scan it, if no virus is found I commit the transaction, if a virus

is
found I abort the transaction and the file is never written. Is this
possible to do with COM+ if not can someone suggest an alternative
method.

Thanks
Msuk


Nov 16 '05 #3

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

Similar topics

1
by: Ralph Freshour | last post by:
Does anyone have any examples of using Transactional processing of MySQL with PHP? I'm not sure if the BEGIN statement needs to be in front of my SELECT statement or processed before hand by...
0
by: John Smiths | last post by:
Ha...sussed it. In my throw statement I was referencing a property of the class. It didn't like it. Thanks to all those who replied.....;>) >-----Original Message----- >I've followed...
1
by: Pradeep | last post by:
Hi, In the Web application I am working on, data is read from a SQL Server database. At any time, there are about 15 people browsing the web. The SQL Server database is updated with new...
0
by: Richard | last post by:
hi, I am using SQL SERVER 2000. My query is, Can I restore my 60 transactional log file backup in one sql statement,giving condition where it is suppose to start and end.
0
by: prashant | last post by:
Hi, I am trying to set up Transactional replication with immediate updation. The configuration is as follows: 1. Publisher is SQL server 2000 Enterprise Edition, and Distributor is on the...
2
by: DickChristoph | last post by:
Hi I tried posting this query in microsoft.public.sqlserver.programming but got no response. I am new to replication but I am trying to setup up a transactional replication of tables from one...
24
by: Ian Boyd | last post by:
i accidentally ran an UPDATE statement without the WHERE clause on a customer's live customers table. After saying "oh shit" many many times, i closed the ad-hoc query tool, hoping DB2 would see my...
9
by: Michael Sparks | last post by:
Hi, I'm interested in writing a simple, minimalistic, non persistent (at this stage) software transactional memory (STM) module. The idea being it should be possible to write such a beast in a...
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:
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.