Event based server communication?
absolutelyfreeweb
Member Posts: 104
Hi,
Just a small question, wondering if you know something I haven't heard yet:
If I want the logic to be executed on the server, and the answer returned to the client without polling, what are my options?
e.g. like a web request. Client sends it to the web server, where its application server does the magic, then returning the answer to the client. In Navision, I would like to avoid a NAS first polling for a task, then the client polling for the answer, instead I would like a completely event based client/server communication. Installing extra client stuff isn't really desired either.
Thoughts?
Just a small question, wondering if you know something I haven't heard yet:
If I want the logic to be executed on the server, and the answer returned to the client without polling, what are my options?
e.g. like a web request. Client sends it to the web server, where its application server does the magic, then returning the answer to the client. In Navision, I would like to avoid a NAS first polling for a task, then the client polling for the answer, instead I would like a completely event based client/server communication. Installing extra client stuff isn't really desired either.
Thoughts?
0
Comments
-
In order for something to react to events, that something needs to be running. If it is not an installed polling mechanism of some sort (message queue monitor, TCP/IP socket, etcetera) then how else would you see that happen?0
-
The client is obviously running and I want it to be poked, a wake up call. The polling would burden a heavily used database too much.0
-
I guess because you didn't specify what you mean by "polling" I don't really understand what it is you are looking for. I don't get why you would want to poke a client session. Those serve functional needs of users, and they can start using it any time they want. Maybe you could explain what you need in functional terms, and we can help come up with a solution.0
-
Hi, the functional scenario is I want the nav client to show information from an external system, And I want the retrieval to be done centrally to avoid maintenance problems.
What I meant by polling is, client checking a table, and the nas checking a table.
As I tried to say, I want to avoid polling because
-its not immediate
-it burdens the database from both sides
-think also many concurrent clients
Just see example on first post, for the ideal way I would want it.
Thanks0 -
you can use Navision socket activex component.
Instantiate it at the client site and open a port to listen to. Write the info into a table such IP and port that the client is available on and then the send messages to the port for the client to do something.0 -
OK gotchaabsolutelyfreeweb wrote:What I meant by polling is, client checking a table, and the nas checking a table.
As I tried to say, I want to avoid polling because
I was thinking about not just a table but other polling mechanism, like looking into a folder for files, or checking a message queue
The only event driven ones in C/AL that I can think of are the standard bus adapters. The ones that I've used are the one for message queue, and one for TCP/IP sockets. I don't like the MSMQ one because it is severely limited, and the socket one only goes one way. So as long as your solutoin fits within the limitations of the bus adapters, you should be fine with either one of those.
Check your product disk for a file called "devguide.chm", I think it's somewhere in the commerce gateway folders. This comes with code samples for all communication components.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 323 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

