Programming Examples

Are you a Programmer or Application Developer or a DBA? Take a cup of coffee, sit back and spend few minutes here :)


Send Message to Microsoft Message Queue (MSMQ) – C# Example

Microsoft Message Queue (MSMQ)

Message Queues allows data exchange between one or more application and in the meantime, it won’t force the application being communicated should be in live connection. Application 1 can send a message and quit or do another task. Application 2 when free looks at the queue and catches the passed-in information.

MSMQ can maintain one or more queue. In the above picture, we can see three queues. We will develop a sample in this article, which will send and receive the information through the MSMQ as shown above. In our example, we will use only one queue, say Q1. However, one can create multiple queues based on the need.

Continue Reading →

Client Activated Dotnet Remote Objects

Client Activated Remote Objects - C# Dotnet Example

In the past articles, we read about “Server Activated” remote objects. We also ran through separate article for Single Call and Singleton on the Server activated remote objects. In this post, we will try how to use the “Client activated” remote objects.

Before we go on Client Activated remote objects, we have to know what is activation and where the object lives. The clear fact whether it is server activated or client activated is that the remote object lives in the “Remote Pool” of the server.  Client activation means, the client sets up the object on the server’s remote pool using the operator new in the client. So, if you are building up a class for the Client Activated Remote object, you have the power of using the overloaded constructors.

Continue Reading →