Two Phase Commit (2PC) protocol can be used to guarantee atomicity and durability of global transactions in distributed environment. In this paper, we adopt optimized 2PC protocol (O2PC), which reduces the number of messages between transaction participants and the coordinator. Based on the protocol, an object-oriented transaction recovery manager, StarOTS is implemented as a CORBA service running on top of a given ORB. We discuss how StarOTS is designed and implemented to ensure atomicity and durability of distributed transactions and how it is integrated with the CORBA component environment to meet the requirements of interoperability, efficiency and reliability. Further, we have constructed a novel dynamic management tool offering flexible control and management to the running transactions without modifying StarOTS. The CORBA component model prototype we implemented and StarOTS integrated together help developers quickly design and implement mission critical distributed transactional applications.