140 likes | 314 Views
COM+. Ye Zhou. MS Windows DNA. Distributed iNternet Application architecture 3-tier model Presentation Business logic Data .Net Framework. Microsoft Transaction Server. Automatic Transaction Management Configurable Security Database Connection Pooling Component State Management
E N D
COM+ Ye Zhou
MS Windows DNA • Distributed iNternet Application architecture • 3-tier model • Presentation • Business logic • Data • .Net Framework
Microsoft Transaction Server • Automatic Transaction Management • Configurable Security • Database Connection Pooling • Component State Management • Support for multiple databases and resources • Process Isolation • Automatic Thread supporting • Integration(Windows, SNA,IIS,MSMQ,SQL..)
Problems in MTS • Only static load balancing supported • Rely on Windows NT platform • No real object pooling (need dispenser)
Microsoft Message Queue • Loosely-coupled Message Oriented Middleware • Store-and-forwarding communication • Defensive communication • Concurrent execution • Journaled communication • Connectionless communication
Advanced Features in MSMQ • Transaction supported • Internet Messaging • Message Queuing Triggers • Group Communication • Programmable management
Programming in MSMQ QUEUEHANDLE hQueue; //open queue MQOpenQueue( wcsFormatName, //queue format name MQ_SEND_ACCESS, //access requested MQ_DENY_NONE, //share mode &hQueue); //queue handle //initialize message property… MQMSGPROPS MsgProps; //send message MQSendMessage( hQueue, //queue handle &MsgProps, //message properties NULL); //transaction //close queue MQCloseQueue(hQueue); //queue handle
COM+ • Full integration of MTS into COM • IMDB • Queued components • Dynamic Load Balancing • A Publish and Subscribe Event Model • Etc …
MTS vs EJB MTS EJB
Other related products • IBM MQSeries • Sun Java Message Service • Sun Java Transaction Service • OMG Object Transaction Service
References [LEI00] Leinecker, Richard , “COM+ Unleashed”, SAMS, 2000 [COM02] http://www.microsoft.com/com [EJB02] http://java.sun.com/products/ejb/ [RAJ02] Raj, Gopalan Suresh, “Web Cornucopia”, http://members.tripod.com/gsraj/