My Message Queuing Service was not at all starting i installed/uninstalled the component but still it was not getting started. Searched on google groups but couldn't get anything which was near to my problem.
I had took a backup of the storage folder (system32\msmq\storage) before and later on i found that i was not able to delete this folder, it throwed error : Access denied. I couple of times restarted my system but still Access denied. Finally I went to the security of the folder and gave the logged on user full rights over the folder. I was able to delete, but my message queuing service got detached from the services list. :-((
Luckily, I had took a backup :-) before I did the above exercise, then I re- created a storage folder under system32\msmq and copied the contents and bingoo!!! i could find the MSMQ Service under Services node and then i started it and it started without any errors!!
Greetings! Welcome to my Dynamics AX 7 and related MS Technologies blog.
Total Pageviews
Search This Blog
Showing posts with label MSMQ. Show all posts
Showing posts with label MSMQ. Show all posts
Friday, December 7, 2007
Thursday, November 22, 2007
Dynamics Ax 4.0 and MSMQ
Writing to a Queue using .Net System.Messaging Assembly
Pre-Requisites:
1. Create a private queue using Computer Management->Message Queuing->Private Queues.
2. In AOT, References, add reference to System.Messaging assembly.
This job sends a message to the created queue:
static void JobMSMQSend(Args _args)
{
System.Messaging.MessageQueue mqsend;
System.Messaging.Message mesg;
;
mqsend = new System.Messaging.MessageQueue('.\\private$\\ax2web');
mesg = new System.Messaging.Message();
mesg.set_Label('AXMesg');
mesg.set_Body('First Message from AX!');
mqsend.Send(mesg);
}
Pre-Requisites:
1. Create a private queue using Computer Management->Message Queuing->Private Queues.
2. In AOT, References, add reference to System.Messaging assembly.
This job sends a message to the created queue:
static void JobMSMQSend(Args _args)
{
System.Messaging.MessageQueue mqsend;
System.Messaging.Message mesg;
;
mqsend = new System.Messaging.MessageQueue('.\\private$\\ax2web');
mesg = new System.Messaging.Message();
mesg.set_Label('AXMesg');
mesg.set_Body('First Message from AX!');
mqsend.Send(mesg);
}
Monday, October 15, 2007
MSMQ Exchange with AX
MSMQ Adapter in Dynamics Ax helps to receive from and send messages to queues. (A Brief on installation steps - Refer Administration Help for a detailed setup of MSMQ)
Install and configure MSMQ
1. Install MSMQ on a Windows Server 2003 computer.
2. Create a queue. A queue for inbound messages can be either private or public; a queue for outbound messages must be public.
3. Configure the queue for sending or receiving documents.
Install and configure the MSMQ adapter
1. Configure global settings.
2. Create the local endpoint.
3. Create the adapter.
4. Create the channel. The channel associates the adapter with an MSMQ queue.
5. Enable the actions.
6. Create the endpoint. The endpoint is the external entity that participates in the document exchange in addition to the local endpoint.
7. Create the endpoint action policy. This step associates an endpoint with an action.
8. Create the endpoint action data policy.
9. Configure the AIF services.
Demo:
A. Create a public queue - AXOUT

B. Create a purchase order in Axapta and post it as Purchase Order.

C. Go to Inquiries->Purchase Order and Send an electronic copy. An XML of the Purchase Order is generated and the AIF Framework sends it to MSMQ Adapter.

D. Purchase Order Document is transferred to MSMQ queue – AXOUT.
Install and configure MSMQ
1. Install MSMQ on a Windows Server 2003 computer.
2. Create a queue. A queue for inbound messages can be either private or public; a queue for outbound messages must be public.
3. Configure the queue for sending or receiving documents.
Install and configure the MSMQ adapter
1. Configure global settings.
2. Create the local endpoint.
3. Create the adapter.
4. Create the channel. The channel associates the adapter with an MSMQ queue.
5. Enable the actions.
6. Create the endpoint. The endpoint is the external entity that participates in the document exchange in addition to the local endpoint.
7. Create the endpoint action policy. This step associates an endpoint with an action.
8. Create the endpoint action data policy.
9. Configure the AIF services.
Demo:
A. Create a public queue - AXOUT

B. Create a purchase order in Axapta and post it as Purchase Order.

C. Go to Inquiries->Purchase Order and Send an electronic copy. An XML of the Purchase Order is generated and the AIF Framework sends it to MSMQ Adapter.

D. Purchase Order Document is transferred to MSMQ queue – AXOUT.

Subscribe to:
Posts (Atom)