Dongfang Tong Middleware tongeasy Product Learning notes [GO]

Source: Internet
Author: User

Dongfang Tong Middleware tongeasy Product Learning notes [goto] in my work, my favorite software is middleware. Technology continues to evolve, and the concept of middleware continues. The middleware I'm talking about is still in the traditional sense. The industry uses a lot of middleware, I am involved in three, there is Bea Tuxedo (currently under the Oracle), Borland Visibroker, as well as the domestic oriental tongeasy. The longest I have used is tuxedo. A year ago a chance, party a ready to test the three middleware who is inferior, I as the head of business development, so I can contact the other two. It is a rare opportunity to think about it now. Now the training tongeasy of the study notes to the sun, save mildew.today in the company listened to the Dongfang Tong Middleware product introduction. A detailed understanding of this middleware product. By listening to lectures, I learned a lot about the knowledge of Oriental Pass. A. Basic Concepts related to Oriental Tong Tongeasy the composition of Dongfang Tong Middleware: composed of three layers. Communication Management module, transaction management module, application development API. u node: is the basic unit of middleware service, independent configuration, start-up, and provide service. Cluster configuration is possible. The configuration is divided into subordinate nodes, and the subordinate nodes invoke the services provided by the ancestor nodes. u client: Divided into node client (fat client) and thin client. u Connection: Divided into regular connection and dynamic link, the connection between the subordinate nodes is often connected; The thin client uses dynamic connection and the proxy node is set when called. u transaction: Divided into global transaction, branch transaction. Orient Pass supports xa two-phase commit, which manages the intermediate state of transactions by the middleware, and also supports non-XA methods that apply their own management transactions .  two. Installation and configuration of the tongeasy Next we are learning tongeasy Installation and configuration, the installation process is very simple, just need to unzip the Tongeasy package can be, in the configuration of four environment variables. System requirements: For AIX, you only need to check the system parameters Maxuproc > , other platforms also need to adjust the shared memory, message queue, semaphore, open files, number of concurrent processes and other parameters. Environment variables: 4 system parameters need to be configuredTongeasyhomedir(point to tongeasy installation directory) Tongeasydir(point to tongeasy configuration file directory etc) tefilesdir( The directory file that points to Tongeasy to send and receive files ) telogdir( directory log that points to the Tongeasy log file ) compilation Environment: The system needs to have CC compiler,C Standard library, multi-threaded support library,PROC compilation. configuration file:Communication Management Module configuration filesrcpara.txt Middleware parameter configuration file tonglink.conf node configuration file route.txt Routing configuration file Transaction Management Moduledbdesc.txt Database configuration file svcdesc.txt Service configuration file Common commands:tminit middleware startup tmend middleware End tlmenu node Configuration tool Loadnode Reloading a configuration file  three. Application Demo introduction today also introduced a synchronous call Demo, to understand the Tongeasy development process. The Configuration service has the following steps:To Configure the database connection configuration file dbdesc.txt Configure the service profile svcdesc.txt Compile the client , the compilation method and the normal PROC program is not different. Compile the service side, you need to use the tebuild command to compile the service  Four. API provided by Tongeasy tongeasy provides different compilation libraries for different databases (oracle,informix,sybase) , but has the same programming interface. For language support, not only a C library is provided , but also a class library for Java calls. The API that the C program will apply to : Te_tpinit () app registration te_tpterm () app logoff Te_tpcall () Synchronous invocation Service Te_tpacall () invoke service asynchronously te_tpgetrply () receive asynchronous request reply Te_tpreturn () service side return Te_tpforword () forwarding request  Five. compared to the TUXEDO of tongeasy in the middleware product, Tongeasy is the Late Show, many noodles have more convenient application than TUXEDO, more flexible design. In particular, it has the concept of node, is the middleware cluster configuration more convenient, his name service to the service logic alias, making the configuration more flexible. At the same time the name service integrates the load balancing function, which is more advantageous to its distributed design structure. compared with TUXEDO , he also has some shortcomings. ①Tongeasy does not support service-level reboots, only supports node-level reboots, which may have some impact on the 7x24 system ②Tongeasy does not support logging by service separately. A log on a node that is logged in a log file. Such a large system can cause log files to be quite large and will not be conducive to finding problems through log files.

Dongfang Tong Middleware tongeasy Product Learning notes [go]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.