Showing posts with label AOS. Show all posts
Showing posts with label AOS. Show all posts

17 Apr 2014

AOS server name + AX 2012

The following code obtains the AOS server name for the current session:



static void getServerNameForCurrentSession(Args _args)  
 {  
   sysClientSessions cliSessions;  
   sysServerSessions svrSessions;  
   ;  
   select svrSessions  
     exists join cliSessions  
       where cliSessions.SessionId == sessionID()  
         && cliSessions.ServerID == svrSessions.ServerId;  
   info(substr(svrSessions.AOSId, 1, strfind(svrSessions.AOSId, '@', 1, strlen(svrSessions.AOSId))-1));  
 }  

15 Sept 2013

Where is my code running


Sometimes you are not for sure if your code is running on the AOS or on the client.
By adding below line in your code. AX will tell you where the code is running.

info(strfmt("%1",xGlobal::clientKind()));

4 Apr 2013

How to get AOS Port number through code + AX 2012

{
    Str PortInfo;

    PortInfo=strfmt("Port number of AOS IS: %1",int2str(Session::getAOSPort()));

    info(PortInfo);
}

Here session is class and getAOSPort is method. You can view port number in message box.

17 Jan 2013

what is AOS

AOS Overview

 
In Microsoft Dynamics AX, there is a 3-tier infrastructure with a database server, an application object server (AOS), and a client. The database server contains the table data. The AOS is used to execute application objects, such as queries and classes. Application objects in the user interface, such as forms and reports, run on the client computer. This topic describes how to develop an application using the different tiers and how record buffers are related to the tiers.
The following illustration shows the three-tier architecture.

Three Tier Architecture Diagram
 
 
 
 

What is the advantage of having Axapta 3-Tier Architecture ?
 

Till AX 3.0, we had the choice to run AX in 2 different tiers - either 2 tier or 3 tier. Since then the ability to run AX in 2-tier is not available.
To me the important benefits are robustness and scalability. For instance AOS (middle tier) can be scaled across many servers; also the SQL server (database tier) can be scaled across database cluster.
Also this architecture has the ability to effectively serve the three different AX clients (Rich, enterprise portal and Integration client)..
 
 
 
 

Create number sequence in D365 FO

Create the data type. Add code in the loadModule method of the appropriate NumberSeqModule subclass. Add a method to the module’s paramet...