I had posted on mibuso a while back on how to use two NAS instances to run job queue for unlimited amount of companies. Here is the link
http://www.mibuso.com/forum/viewtopic.php?f=7&t=22633. You had to purchase an additional NAS user license in order to use it. Dynamics NAV 2009 comes with web service, and you can publish any Code unit or Page by default. You will need to purchase one user but for webservice, but it much cheaper. In this blog, I will show you how to setup JOB QUEUE to schedule to run jobs across companies. The advantages of using Web Services is that you can run multiple jobs at the same time for multiple companies. What I’ve experienced with NAV 2009 Web Service is that once you call a web service function, you can disconnect and Service Tier will finish the job and commit the transaction. When you install NAS the Startup Parameter is “JOBQUEUE” without the double quotes.
In addition you don’t have to modify any processing/posting jobs that have dialog windows displayed. The Service tier simply ignores them. For example you can run adjust cost report without modifying any objects from Job queue. In addition, the solution I’ve created does not modify any existing objects!!!
Here are the steps. Import the fob. NAS-JobQueue-WebService . the zip file has a new Codeunit 5000. Open Job Queue Entry Card and Setup to run this job
In Parameter String field you will need to specify the Company you want to run this separated by comma the object type, and the object ID.
For example
CRONUS,Report,795
Or
CRONUS,Codeunit,50010
Next we need to publish the new Codeunit as a webservice. In Object designer find the table Web Service 2000000076 and run it.
Make sure you have the correct Case for Service Name.
Next Make sure NAV Web Service is running.
To make sure that web service is published you can open Internet Explorer and type this address.
http://localhost:7047/DynamicsNAV/WS/KRONUS/Codeunit/RunJob. Make sure it’s IE and not Firefox. For Firefox you have to enable Kerberos. You can search the web on how to do that. If your webservice is on a different box than where the NAS is running then you need to change the URL from localhost to the computer name.You will also need to change the new codeunit 50000.
Below is a screenshot of the code unit. The whole Codeunit is less than 60 lines of code and it’s self explanatory.

Like
Report
*This post is locked for comments