mibuso.com

Microsoft Business Solutions online community
It is currently Sun May 19, 2013 6:22 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 109 posts ]  Go to page 1, 2, 3, 4, 5 ... 8  Next
Author Message
 Post subject: Job Queue for Unlimited Company
PostPosted: Tue Dec 11, 2007 7:54 am 
Offline
Site Admin

Joined: Sun Nov 07, 1999 8:01 am
Posts: 1900
Location: Wilrijk, Belgium
Country: Belgium (be)
Job Queue for Unlimited Company
The Job Scheduler 4.0 has been replaced in in 5.0 by Job Queue. You can use Job Queue to schedule to run reports, Codeunits, as adjust cost. Job Queue uses NAS to run the job. As you might know NAS can only run for one company. Thus if you have multiple companies, you need one instance of NAS per Company. The following modification allows you to run Job Queue in unlimited companies. Using two license instances of NAS. You only need to install one NAS. The code run NAS itself as second instance connecting to different companies. The only difference Setup wise is the new field "Company Name" in Job Queue Entry Code, where you can select other Companies.

You could run with one instance of NAS and a Navision client, by running CU 448 directly from a client where NAS is installed. NAS service should be stopped. NAS uses windows authentication so make sure have windows authentication.

Feedback is welcome.
Enjoy.

http://www.mibuso.com/dlinfo.asp?FileID=924

Discuss this download here.


Top
 Profile  
 
 Post subject: Can this be used In version 4.0 SP3
PostPosted: Tue Dec 11, 2007 9:22 am 
Offline

Joined: Fri Jun 03, 2005 12:06 pm
Posts: 37
Location: Brisbane
Country: Australia (au)
Hi,

I just wanted to know whether this download can be used in Nav 4.0 Sp3.

Regards,
Guna


Top
 Profile E-mail  
 
 Post subject:
PostPosted: Tue Dec 11, 2007 9:37 am 
Offline

Joined: Wed Jan 11, 2006 8:33 am
Posts: 48
Location: Chennai
Country: India (in)
Mr. Guna,

Why dont you try it yourself and let others know.

Najja


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 11, 2007 10:11 am 
Offline

Joined: Tue Feb 22, 2000 8:01 am
Posts: 911
Location: Glasgow
Country: United Kingdom (uk)
Looks like somebody stolen my work... idea... I've implemented job queue for NAV long time ago. I have proven many times what "Job Queue" is much better than plain "Job Rotator".

_________________
"Make everything as simple as possible, but not simpler."
- Albert Einstein

“A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.”
― Douglas Adams, Mostly Harmless


Last edited by BlackTiger on Tue Dec 11, 2007 10:18 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 11, 2007 10:17 am 
Offline

Joined: Tue Feb 22, 2000 8:01 am
Posts: 911
Location: Glasgow
Country: United Kingdom (uk)
No! It's not my work! Camel notation in code! What could be worse...

Question... How about NAS client licenses if you're executing job for other company?

_________________
"Make everything as simple as possible, but not simpler."
- Albert Einstein

“A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.”
― Douglas Adams, Mostly Harmless


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 11, 2007 11:07 am 
Offline

Joined: Thu Sep 22, 2005 8:45 am
Posts: 125
Location: Göteborg + Skövde
Country: Sweden (se)
BlackTiger:
The big difference between you and ara3n (Rashed) is that Rashed shares his solution to the community =D> and that you only says that you have made a solution.

_________________
Regards
Dan Lindström
NCSD Navision 2.00 since 1999 (Navision Certified Solution Developer)
MBSP Developer for Microsoft Dynamics NAV 2009


Top
 Profile E-mail WWW  
 
 Post subject:
PostPosted: Tue Dec 11, 2007 11:11 am 
Offline

Joined: Tue Feb 22, 2000 8:01 am
Posts: 911
Location: Glasgow
Country: United Kingdom (uk)
danlindstrom wrote:
BlackTiger:
The big difference between you and ara3n (Rashed) is that Rashed shares his solution to the community =D> and that you only says that you have made a solution.


:?:

Sorry, why I have to share personal/commercial development? Call me, pay me, I will do any development for you. Unfortunately I'm not so rich to work for idea... :)

_________________
"Make everything as simple as possible, but not simpler."
- Albert Einstein

“A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.”
― Douglas Adams, Mostly Harmless


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 11, 2007 3:30 pm 
Offline

Joined: Wed Sep 15, 2004 3:39 pm
Posts: 26
Location: Faroe Islands
I took a swift look into the file: "Changes.txt". If NAS is supposed to run this codeunit my guess would be, that you should place all Mesages in a GUIALLOWED context.
The NAS cannot react on GUI-based messages - or is this possible in NAV 5.0 using GetLastError?

Otherwise a very interesting concept :D


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 11, 2007 4:02 pm 
Offline

Joined: Tue Feb 22, 2000 8:01 am
Posts: 911
Location: Glasgow
Country: United Kingdom (uk)
Feldballe wrote:
I took a swift look into the file: "Changes.txt". If NAS is supposed to run this codeunit my guess would be, that you should place all Mesages in a GUIALLOWED context.
The NAS cannot react on GUI-based messages - or is this possible in NAV 5.0 using GetLastError?

Otherwise a very interesting concept :D


All messages from MESSAGE will be placed in system EventLog. No GUIALLOWED check is necessary. GUIALLOWED must be used only to avoid any form and progress dialogs appearance.

_________________
"Make everything as simple as possible, but not simpler."
- Albert Einstein

“A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.”
― Douglas Adams, Mostly Harmless


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 11, 2007 4:05 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Wed Dec 15, 2004 6:11 pm
Posts: 8699
Location: 3rd rock from sun
Country: United States (us)
BlackTiger wrote:

Question... How about NAS client licenses if you're executing job for other company?


You'll need 2 NAS client licenses.

_________________
Rashed.

blog: http://mibuso.com/blogs/ara3n/


Top
 Profile  
 
 Post subject: Re: Can this be used In version 4.0 SP3
PostPosted: Tue Dec 11, 2007 4:07 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Wed Dec 15, 2004 6:11 pm
Posts: 8699
Location: 3rd rock from sun
Country: United States (us)
alwaysguna wrote:
Hi,

I just wanted to know whether this download can be used in Nav 4.0 Sp3.

Regards,
Guna


You need 5.0 executables. Because I'm using getlasterrortext function
as well as CurrentDirectory function.

You can take job queue object and move them to 4.0 db. They are self contained.

_________________
Rashed.

blog: http://mibuso.com/blogs/ara3n/


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 11, 2007 4:09 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Wed Dec 15, 2004 6:11 pm
Posts: 8699
Location: 3rd rock from sun
Country: United States (us)
BlackTiger wrote:
No! It's not my work! Camel notation in code! What could be worse...



Variables such as WasSuccess are used by Navision CU Job Queue Dispacher.

_________________
Rashed.

blog: http://mibuso.com/blogs/ara3n/


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 11, 2007 4:11 pm 
Offline

Joined: Tue Feb 22, 2000 8:01 am
Posts: 911
Location: Glasgow
Country: United Kingdom (uk)
ara3n wrote:
BlackTiger wrote:
No! It's not my work! Camel notation in code! What could be worse...



Variables such as WasSuccess are used by Navision CU Job Queue Dispacher.


It's Pascal notation. NAV's style.

But vars named as "txtSomeVariable" is Hungarian notation. Awful style. I was wrong about Camel notation ("someVariable"). But both are not in NAV coding style.

_________________
"Make everything as simple as possible, but not simpler."
- Albert Einstein

“A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.”
― Douglas Adams, Mostly Harmless


Last edited by BlackTiger on Tue Dec 11, 2007 4:13 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 11, 2007 4:13 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Wed Dec 15, 2004 6:11 pm
Posts: 8699
Location: 3rd rock from sun
Country: United States (us)
BlackTiger wrote:
Looks like somebody stolen my work... idea... I've implemented job queue for NAV long time ago. I have proven many times what "Job Queue" is much better than plain "Job Rotator".


Well there are other solution out there.
Plus there are several threads about running nas in multiple companies.

_________________
Rashed.

blog: http://mibuso.com/blogs/ara3n/


Last edited by ara3n on Tue Dec 11, 2007 4:42 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 11, 2007 4:16 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Wed Dec 15, 2004 6:11 pm
Posts: 8699
Location: 3rd rock from sun
Country: United States (us)
BlackTiger wrote:
ara3n wrote:
BlackTiger wrote:
No! It's not my work! Camel notation in code! What could be worse...



Variables such as WasSuccess are used by Navision CU Job Queue Dispacher.


It's Pascal notation. NAV's style.

But vars named as "txtSomeVariable" is Hungarian notation. Awful style. I was wrong about Camel notation ("someVariable"). But both are not in NAV coding style.


There are only two variable that I used Hungarian notations. I don't like them either. I don't use them.
I was trying to make it easier to read.

_________________
Rashed.

blog: http://mibuso.com/blogs/ara3n/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 109 posts ]  Go to page 1, 2, 3, 4, 5 ... 8  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: