473,406 Members | 2,352 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,406 software developers and data experts.

ASP.NET & Remoting.

Situtation:
I want to send mails from the site on regular basis may be weekly/daily to all subscribed users. This activity should be automated/sheduled.

My Thinking: Possible solution can be that i shall use Remoting. SingleTon. to solve this. this is what i am planning to do.
Step #1
I shall create a remoting class. In the constructor of the class i will start a thread which will be in an infinite loop. I will ask the thread to sleep for 1 hr. After 1 hr. the thread will connect to database , search any pending emails for the day and sends the mail and again goes back to sleep for 1hr.

Step #2
I shall create a virtual directory and host the remoting class there.

Step#3. From the main site in the application onstart event i will call the constructor in an Async way.

What i am thinking is
Right ?
Logical ?
Possible ?

Awaiting for a feedback
Regards,

Nov 18 '05 #1
1 1081
We did the same thing over here. However, we took an easier approach.

We wrote a formless c# windows app (not a console app) to handle the calls to the db, creation of email, logging and notification. Then we added a DTS package to SQL Server to run the executable. Using SQL Servers scheduler, we can schedule to the package (executable) to run at just about any interval we choose.

David Young
"Jignesh" <Ji***********@hotmail.com> wrote in message news:e0**************@tk2msftngp13.phx.gbl...
Situtation:
I want to send mails from the site on regular basis may be weekly/daily to all subscribed users. This activity should be automated/sheduled.

My Thinking: Possible solution can be that i shall use Remoting. SingleTon. to solve this. this is what i am planning to do.
Step #1
I shall create a remoting class. In the constructor of the class i will start a thread which will be in an infinite loop. I will ask the thread to sleep for 1 hr. After 1 hr. the thread will connect to database , search any pending emails for the day and sends the mail and again goes back to sleep for 1hr.

Step #2
I shall create a virtual directory and host the remoting class there.

Step#3. From the main site in the application onstart event i will call the constructor in an Async way.

What i am thinking is
Right ?
Logical ?
Possible ?

Awaiting for a feedback
Regards,

Nov 18 '05 #2

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

Similar topics

6
by: Angelos Karantzalis | last post by:
Hi y'all ... I'm a bit puzzled here about .NET class instancing under COM+ Issue 1: I've a COM+ component, let's call it ... COMDbWrapper that initializes itself from an xml file. The data...
11
by: ThunderMusic | last post by:
Hi, I'm currently stuck with a big problem. I must develop a Windows service and an application to configure it and display what is happening. The problem is not really on the service side, but on...
2
by: Nick | last post by:
Is there a way that if I host my remoted object in IIS (not having to mess with encryption & authentication via a custom sink) that the server can raise events and the clients can detect them? If...
4
by: Peter Wagner | last post by:
Hi There are 2 different .NET Programs A und B. I'll drag a TreeNode from a TreeView in A into a ListView in B. In B I'll extract values from the dropped TreeNode. Unfortunately I don't know...
6
by: Z D | last post by:
Hello, Is it true that I need to push the DLL for my entire class if I wish to use CAO remoting??? Can't I just use an Interface to the class on the client side and instantiate the object in...
4
by: sjoshi | last post by:
Hello All I'm trying this to filter group users bu tI keep getting an unspecified error when invoking FindOne method. Any help is greatly appreciated. public static DirectoryEntry...
5
by: mitch | last post by:
Hello, Basically, I want my application to run only one instance at a time and pass command line arguments to a running instance. I have all of this working, I used the IPC Remoting channel and...
5
by: Nick | last post by:
Hi there, Can anyone tell me what RTD is? And can it be used for simple interprocess communication? I am just interested in sending strings to a previous instance. I am currently using .NET...
1
by: Dan Avni | last post by:
Using VS 2003, i have a web application that has a business layer & a data access layer. on most installations of my web site, the sql server is residing somewhere in the network and i configure...
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: 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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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...
0
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...
0
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,...
0
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...

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.